Page 1 of 1

Possible bug / weird behaviour with montage of png

Posted: 2013-02-28T04:32:18-07:00
by susundberg
Hello!

I am having bit of trouble getting a montage from set of png images. The images are algorithm output (done with libpng) with different parameters, and i would like to have single 6x8 tiled image from those.

The weird behaviour / bug: when doing "montage -geometry +1+1 out/*.png target.png" i get bad colors. When omitting the -geometry parameter the colors look ok. I have tried using -colors and -colorspace but they seem to have little if any effect. Any idea what is going on here?

The set i have trouble with is availalbe via dropbox: https://www.dropbox.com/sh/4nr4a003cspe ... C4t/images. There are two images: outputs with '-geometry +1+1' and with no '-geometry' and a package containing the source images.

To see the problem, please compare the bottom row of the output. I would have guessed that -geometry does only affect on spacing, not on the colors too.

The system i am running:

Code: Select all

Version: ImageMagick 6.7.7-10 2012-08-17 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP    
And its installed with Ubuntu 12.10 package manager.

I got the wanted picture later done by using different program to produce .bmp images from the output and montaging those, but as my algorithm produces directly only .png images i would love to know how to get this done properly.


Thanks!

Re: Possible bug / weird behaviour with montage of png

Posted: 2013-02-28T04:42:37-07:00
by snibgo
Your ancient IM version dates from a time when it was confused about colour spaces. Try the current version.