Non-English text in -title

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
hch

Non-English text in -title

Post by hch »

Hi,

it seems I'm unable to place a title with accented characters on a montage-d image. Although perfectly valid in Latin-2 (console/DOS box codepage in my Windows), the text seems to be converted to Latin-1 :( .

"-title" unconsistently does not allow to use @ to link to a (unicode) file with the text, which would be (uncomfortable but realizable) solution.

Any idea? TIA,
H.

IM 6.3.7 run on Win/XP SP2 Pro/Czech/patched.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Non-English text in -title

Post by Bonzo »

I could not find any info on -title; have you tried -annotate ?

convert -size 300x40 xc:lightblue -fill black -font verdana.ttf -pointsize 30 -gravity NorthWest -annotate +0+0 "IiIiGgÜüIiSsÖöÇç" turkish.jpg
hch

Re: Non-English text in -title

Post by hch »

Thanks for your reply.

> I could not find any info on -title

Interesting tip... First I took a look at http://www.imagemagick.org/Usage/montage/ and it was there. It works, at least sort of, so I blindly used it. It is also mentioned in the option reference (for montage, too), but not in montage's private option list.

> have you tried -annotate ?

Yes, I did, but w/o much success with montage (convert works OK). I got no text at all. Maybe my insuffucience, I'll experiment with it later, if there's no better way.

IMHO the right solution is replacing -title argument processing with IM's standard text argument handler used for -annotate and other commands.

Are there any other ideas?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Non-English text in -title

Post by anthony »

Bonzo FYI... The -title option is only used in "montage".

Sorry, it is also using for window title in "display" :-)
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply