duplicate label:

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
jcr

duplicate label:

Post by jcr »

Hello,

I am running the following command:
montage -fill "#000ff0" -background white -font 'American-Typewriter-Light' -pointsize 25 label:"beach" label:"bull run" label:"farm" label:"fighters" -mode Concatenate -tile 1x4 button_navigation_normal.png
To my surprise, "beach" is printed twice. Just like bull run, farm and fighters.

Any idea why it is so and what I should do to get rid of that repeat?

Thanks!
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: duplicate label:

Post by snibgo »

Use "+set label" before "-mode Concatenate".

See http://www.imagemagick.org/Usage/montage/#label
snibgo's IM pages: im.snibgo.com
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: duplicate label:

Post by anthony »

More specifically label: not only draws the string in an image, but also sets the 'label' meta-data for that image. Montage uses label meta-data for labeling the images it displays.

Another alternative is to use +append to append the images together, in convert.

Code: Select all

 convert ....font and color settings... \
             label:"beach" label:"bull run" label:"farm" label:"fighters" \
             +append  button_navigation_normal.png
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
jcr

Re: duplicate label:

Post by jcr »

Thank you very much for your explanation. I did not know about this meta-data and all is clear now.
Post Reply