[magick-users] hex code + text in output from convert?
Jeff Lacki
jeep at rahul.net
Thu Aug 6 06:54:21 PDT 2009
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
More information about the Magick-users
mailing list