Page 1 of 1

convert text with images in it to image

Posted: 2018-03-18T15:43:22-07:00
by Unregistered User
Hi,

i have a long text which can have multiple images in it (for example smilies). The text with images should be converted to an image, and wordwrapped in case it surpasses a specified length.
At the moment i'm using

Code: Select all

convert -fill black -size 200x200 caption:"a very long text" output.png
to print the text, however it doesn't seem to be possible to add images to the text-flow with this method.

Simply appending text-pieces and images doesn't work, since i'm working on multiple autowrapped lines. (with the +append operation)
Using svg doesn't seem to be a good solution, since it doesn't have native autowrap support and you can't insert images in the text
And pango doesn't support images in the text.

i need:
- a text with images inside over multiple auto-wordwrapped lines to be printed as an image
- with the usual imagemagick stuff like:
-- custom colors
-- custom background
-- custom font
-- the option to add outlines

i don't need:
- any fancy makeuplanguage options


Has anyone a solution?

Thanks in advance.