Answer the question
In order to leave comments, you need to log in
How to read a vector image using PHP?
Situation: You have Adobe Photoshop at hand (i.e. a license for it only ). Well, all sorts of open source solutions, like nconvert.
I would like to: With the help of any PHP features, get information about vector data of any of the supported formats of this product (psd, eps, are there any other vector formats?). In extreme cases, use the console utility (*.exe, *.bat) to convert to another format that is easier to read.
Has anyone experienced something similar? I found only this: https://www.kingsquare.nl/php-psd-reader but the class is a solid shit code and can only be converted into pictures. Those. if you dig up its sources, you can only tear out information about pixels.
In principle, even a link to the manual will do, where you can read about the psd device - I'll try to write a lib myself.
Z.Y. On the Internet, I found psd-tools for python ( https://pypi.python.org/pypi/psd-tools). Apparently, with it you can get complete information about the PSD. But I would like to solve the problem using PHP. Python for emergencies.
Answer the question
In order to leave comments, you need to log in
Use export to SVG and already use it in PHP
hackingui.com/design/export-photoshop-layer-to-svg
svg.scand.com
https://gumroad.com/l/Zeick
You need to understand what is an open / public format and a closed one and what follows from this .. Convert to svg if possible and use https://code.google.com/p/phpsvg/ for example
So far I have done this:
1) In Photoshop "Export" -> "Illustrator" (saves in * .ai)
2) Here is the self-made code for reading ai: https://gist.github.com/SerafimArts/01be7b01e9d118...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question