Page 1 of 1

Montage labels - way to alternate color?

Posted: 2011-08-28T01:57:42-07:00
by WokYai
Hi,

I'm using montage to create something like contact sheets of images, which I label using '-label %t\n%wx%h'. Occasionally the filenames are long enough to cause adjacent labels to come close enough that they nearly overlap. Is there a way to alternate the color of the text such that adjacent labels aren't the same color? I naively tried inserting '-fill white' and '-fill yellow' between the source images, but that just resulted in all labels being whatever color was specified last.

Thanks for any help.

Jason

Re: Montage labels - way to alternate color?

Posted: 2011-08-28T14:54:50-07:00
by fmw42
Can you post a link to an example result you currently have and to your exact command line?

One thought, though I can see some potential issues, might be to make two montages with alternate skipped images using a null: for place holders. Do it on a transparent background. Then composite the two montages together to fill in and flatten against whatever background color you want. Don't know it this will cause trouble or not with long text string filenames or not.

Also note that you can space out the images using -geometry. That may be a better way to just keep the text from nearly overlapping.

See http://www.imagemagick.org/Usage/montag ... ry_spacing