Page 1 of 1

Montage -label with accents (unicode)

Posted: 2015-04-28T01:39:19-07:00
by sergioimc
Dear all,

I've tried searching within the forum with no success. We are using the command montage to print to a pdf a contact sheet with many images. Also we use the option label to print out a description extracted from EXIF information:

montage.exe"" -font Arial -verbose -label %[EXIF:ImageDescription] -tile 4x3 -define jpeg:size=200x200 -geometry 300x300+40+40 " &sObjFolder&"\*.JPG "&sObjFolderTemp&"\contact.jpg

But when the image description has accents, these characters aren't printed off properly.

Any idea on how to correct it? I need to use montage instead of draw...

thank you very much for your help!

Re: Montage -label with accents (unicode)

Posted: 2015-04-28T02:01:28-07:00
by snibgo
In questions, please ALWAYS state what version of IM, and what your environment is.

From your backslashes, perhaps you use Windows. But the ampersands suggest something else.

EDIT: And a sample image that shows the problem would also help. Put it somewhere like dropbox.com and paste the URL here.

Re: Montage -label with accents (unicode)

Posted: 2015-04-28T02:09:24-07:00
by sergioimc
Hi, ok, sorry. I'm using ImageMagick-6.9.1-2 on windows 7. The sample can be found here: https://www.dropbox.com/s/ti47hfczxh8um ... s.pdf?dl=0

for example, look at the phrase "Espíritu de la noche blanco", where the accent is not printed.

thank you

Re: Montage -label with accents (unicode)

Posted: 2015-04-28T02:30:33-07:00
by snibgo
The uploaded file, contactos.pdf, doesn't contain EXIF:ImageDescription.

Re: Montage -label with accents (unicode)

Posted: 2015-04-28T02:33:30-07:00
by sergioimc
Hi the image uploaded is the final pdf. Here you can find an image used to generate this PDF: https://www.dropbox.com/s/b3boyv1b486bz ... 1.jpg?dl=0

thank you!

Re: Montage -label with accents (unicode)

Posted: 2015-04-28T03:17:34-07:00
by snibgo
It seems to work fine for me, IM v6.9.1-0 on Windows 8.1.

Code: Select all

montage -verbose -label %[EXIF:ImageDescription] -geometry 300x300 x.jpg esparitu.jpg
esparitu.jpg is:
Image

You might check that your font contains all the glyphs you need. From memory, the default Arial font on Win7 omitted many characters.

Re: Montage -label with accents (unicode)

Posted: 2015-04-28T03:21:05-07:00
by sergioimc
Hi,

in fact it is not working well, sorry if a I haven't explained well the problem, it should be ESPÍRITU, and prints ESPÃ.RITU.

thank you very much

Re: Montage -label with accents (unicode)

Posted: 2015-04-28T04:47:41-07:00
by snibgo
In that case, I don't know. Sorry.