Possible bug / weird behaviour with montage of png

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
susundberg
Posts: 1
Joined: 2013-02-28T01:14:37-07:00
Authentication code: 6789

Possible bug / weird behaviour with montage of png

Post 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!
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Possible bug / weird behaviour with montage of png

Post by snibgo »

Your ancient IM version dates from a time when it was confused about colour spaces. Try the current version.
snibgo's IM pages: im.snibgo.com
Post Reply