Problem with Montage and Text Images Doubling

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
Seesen
Posts: 1
Joined: 2015-05-23T19:40:56-07:00
Authentication code: 6789

Problem with Montage and Text Images Doubling

Post by Seesen »

When using montage and created text images, the text is always doubled in some strange way. Here is a simple example in bash.

Code: Select all

convert -size 256x180 label:A A.PNG
wait
montage A.PNG A.PNG B.PNG
This is what happens http://imgur.com/K8CuOoz. Why does it do this and is there a way to fix or work around it?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Problem with Montage and Text Images Doubling

Post by snibgo »

Your "label:" has added metadata to the image, which montage uses. You can change or remove it with "-set label".

Code: Select all

montage a.png a.png -set label "" b.png
EDIT: Instead of ...

Code: Select all

-set label ""
... it may be better to use:

Code: Select all

+set label
snibgo's IM pages: im.snibgo.com
Post Reply