Montage -label with accents (unicode)

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
sergioimc
Posts: 4
Joined: 2015-04-28T00:54:57-07:00
Authentication code: 6789

Montage -label with accents (unicode)

Post 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!
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Montage -label with accents (unicode)

Post 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.
snibgo's IM pages: im.snibgo.com
sergioimc
Posts: 4
Joined: 2015-04-28T00:54:57-07:00
Authentication code: 6789

Re: Montage -label with accents (unicode)

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Montage -label with accents (unicode)

Post by snibgo »

The uploaded file, contactos.pdf, doesn't contain EXIF:ImageDescription.
snibgo's IM pages: im.snibgo.com
sergioimc
Posts: 4
Joined: 2015-04-28T00:54:57-07:00
Authentication code: 6789

Re: Montage -label with accents (unicode)

Post 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!
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Montage -label with accents (unicode)

Post 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.
snibgo's IM pages: im.snibgo.com
sergioimc
Posts: 4
Joined: 2015-04-28T00:54:57-07:00
Authentication code: 6789

Re: Montage -label with accents (unicode)

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Montage -label with accents (unicode)

Post by snibgo »

In that case, I don't know. Sorry.
snibgo's IM pages: im.snibgo.com
Post Reply