Page 1 of 1

Possible composite bug [solved]

Posted: 2015-09-14T07:07:29-07:00
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.

Re: Possible composite bug

Posted: 2015-09-14T07:33:59-07:00
by snibgo
Firzen wrote:ImageMagick 6.7.7-10
That's the problem. I suggest you upgrade to a more recent version.

Re: Possible composite bug

Posted: 2015-09-17T00:52:22-07:00
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.