wrong colors applying watermark

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
bartroby
Posts: 1
Joined: 2014-02-21T06:35:05-07:00
Authentication code: 6789

wrong colors applying watermark

Post by bartroby »

Hi,

we used ImageMagick in order to apply an image as watermark over a set of images (jpeg, png, ecc).
The watermark is 75% smaller than the original image.

Applying this image-watermark over some jpeg images, the colors of the image-result are different compared with the original image, also into the area outside of the watermark.
Why? How can we avoid to change colors?

We used the following command:

for /f %%A in ('convert %1 -ping -format "%%[fx:(h*0.75)/1637*100]" info:') do set y=%%A%%
composite -watermark 10%% -gravity center ( logo_opacita_50.png -resize %y% ) %1 newImg/%1

Thanks,
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: wrong colors applying watermark

Post by fmw42 »

you will need to post a link to your two images and output that look wrong. you can upload your images to any free hosting servers such as dropbox (public folder) and put a link here.

I suspect one of the images may be cmyk or have an alpha channel.
Post Reply