Guys,
I see ImageMagick is capable to generate image using Pango formatted text, which looks like quite a good approach.
Just want to know if there’s anything else out there, what’s the most recommended way of doing this.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
imagemagickis probably the easiest, butghostscriptcan also be used to render images with text.Here’s a little postscript program that displays some text.
Using
ps2epswill calculate the Bounding-Box and add this information as a comment conforming to the Document Structuring Conventions.Then imagemagick’s
convertutility can render this as an image.The
ps2epsis necessary so the final image is cropped to the interesting part, rather than at the bottom of a page-sized image.Here’s a typescript of the whole sequence.
0>is the command prompt.