Answer the question
In order to leave comments, you need to log in
How to convert .PNG to .AI
Good day
People tell me how to overtake a .PNG file to .AI on the server.
I use GraphicsMagick for image processing, but this is the thing:
gm convert in.png out.ai
produces a result that cannot be opened in the same Illustrator and weighs only 505 bytes, at the same time the same file is saved in .ai from illustrator weighs 90Kb but also opens.
In terms of technology priority levels, this is the alignment:
PHP / GM another
Python
console script
something else ...
Now I found this: smallestbusiness.com/convert-qr-codes-from-png-to-ai-file-format/ I'm trying to run ...
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Use imagemagick
www.imagemagick.org/script/index.php
convert image.png image.ai
Just checked and it works.
But I hope you understand that it will still be a raster
You can use the Potrace console utility, which is used by Inkscape and is available for Linux, Windows, OS X, and most Unixes. She doesn’t know how to issue AI, but she does SVG, and this is a web standard.
But in my opinion, using an advanced vectorizer for such purposes is overkill. Since this is a QR code, it usually consists of a grid of squares of the same size, so it will be enough to run over the entire picture in PHP with an equal step, and if the pixel is black, draw a square in SVG in this place. But if the QR code is embellished, then only a vectorizer can help.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question