I do the following to add text to an image
in my C program:

sprintf(cmd, "convert -font %s -pointsize %d -fill black -draw \"text 40, 40 
\'%s\n%s\' \" %s %s",
        (variables not shown)
system(cmd);

When I look at the output jpg file, I sometimes see
additional hex code prior to the text:

0x00000000: 65646e65 73646179 202d2020 382f3035 2f303920 Wednesday - 8/05/09
(pattern is simimliar on each additional line, hex, then
text on right side).

Can anyone tell me why this is happening and or how to fix
it?

I am escaping ' and " characters before its inserted
into the %s strings above.

Thanks

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to