I’m doing some txt->image generating using “convert” of ImageMagick. But it outputs only rasterized images, which saved in .eps is a bit useless. Is there any alternative to “convert” so that I can write bash scripts which, by parsing text files, gives me a vector output?
I’m doing some txt->image generating using convert of ImageMagick. But it outputs only rasterized
Share
Found an answer. It’s not a one-liner, but still does the job.
First, you have to render the text and measure it’s dimensions – use conjure on a template file, i.e.:
If the text is too big decrease if it’s too small increase it.
After receiving font size create an SVG file containing invisible rectangle with the dimensions given and text centred in it. Then convert it using Inkscape to .eps
TA-DA