Possible composite bug [solved]

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
Firzen
Posts: 2
Joined: 2015-09-14T06:15:42-07:00
Authentication code: 1151

Possible composite bug [solved]

Post by Firzen »

Hello,

I need to watermark some grayscale images with composite utility. I am using following command:

Code: Select all

composite -compose atop -gravity SouthEast watermark.png butterfly.jpg output.jpg
Image

Problem is that created output image is brighter and maybe more contrast than original. Images just does not look same. With color (RGB) images is everything ok, only grayscales are the problem. My sample images are here:

watermark.png - https://www.dropbox.com/s/xo5lxzbua6e7t ... k.png?dl=0
butterfly.jpg - https://www.dropbox.com/s/2zj6n5tg7ou6h ... y.jpg?dl=0
output.jpg - https://www.dropbox.com/s/v16im3ld79xcd ... t.jpg?dl=0

Information about my system:

Code: Select all

firzen@phoenix:~$ composite --version
Version: ImageMagick 6.7.7-10 2014-03-08 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP    

firzen@phoenix:~$ uname -r
3.16.0-4-686-pae
firzen@phoenix:~$ arch
i686
firzen@phoenix:~$ lsb_release -a | grep Desc
Description:    Debian GNU/Linux 7.7 (wheezy)
Is there something wrong with my command, or this is bug? Thanks in advance.
Last edited by Firzen on 2015-09-17T00:52:41-07:00, edited 1 time in total.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Possible composite bug

Post by snibgo »

Firzen wrote:ImageMagick 6.7.7-10
That's the problem. I suggest you upgrade to a more recent version.
snibgo's IM pages: im.snibgo.com
Firzen
Posts: 2
Joined: 2015-09-14T06:15:42-07:00
Authentication code: 1151

Re: Possible composite bug

Post by Firzen »

Thanks for your answer, but I finally found solution that works even with my version of ImageMagick, which is important for me.

Working command is:

Code: Select all

composite -compose atop -gravity SouthEast -colorspace RGB watermark.png butterfly.jpg output.jpg
It is a bit slower, and so I use it only with grayscale images.
Post Reply