Page 1 of 1

duplicate label:

Posted: 2010-07-10T10:50:40-07:00
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!

Re: duplicate label:

Posted: 2010-07-10T11:39:08-07:00
by snibgo
Use "+set label" before "-mode Concatenate".

See http://www.imagemagick.org/Usage/montage/#label

Re: duplicate label:

Posted: 2010-07-10T18:05:44-07:00
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

Re: duplicate label:

Posted: 2010-07-28T20:36:00-07:00
by jcr
Thank you very much for your explanation. I did not know about this meta-data and all is clear now.