Page 1 of 1

Watermark visible in every editor/image viewer except Photoshop

Posted: 2019-04-17T07:34:50-07:00
by tiropo
It’s a tiff image. It has a watermark shown in GIMP, Krita and multiple image viewers, except PS.

Original image:
https://www.dropbox.com/s/gevzn497odwsk ... l.tif?dl=0

Watermark:
https://www.dropbox.com/s/lafuqplsoh1fm ... 2.png?dl=0

Result:
https://www.dropbox.com/s/fa7uoko0uzrk6 ... t.tif?dl=0

I’m using .net API via Combine, but reproduced even in CLI with command:
magick original.tif watermark.png -gravity center -composite result.tif

In console such message shown:
magick: Incompatible type for "RichTIFFIPTC"; tag ignored. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/1000.

Do you have any ideas why this happens?

Tried different watermarks – same result.

Re: Watermark visible in every editor/image viewer except Photoshop

Posted: 2019-04-17T10:12:52-07:00
by fmw42
It works for me with slight modifications using IM 7.0.8.40 Q16 Mac OSX. ImageMagick converts the TIFF file into two files, I think, because it contains background transparency. This is just the way ImageMagick handles TIFFs. They are nearly the same, except the first is very slightly larger than the second.

This shows the tiny print watermark for me in the top left corner, which is wrong.

Code: Select all

magick -quiet original.tif watermark2.png +repage -gravity center -compose over -composite result1.tif
This shows it centered properly.

Code: Select all

magick -quiet original.tif[0] watermark2.png +repage -gravity center -compose over -composite result1.tif
You might want to use larger type in the watermark image or enlarge it.

Re: Watermark visible in every editor/image viewer except Photoshop

Posted: 2019-04-17T11:30:15-07:00
by snibgo
As Fred hints, original.tif contains two images. So the OP command ...

Code: Select all

magick original.tif watermark.png -gravity center -composite result.tif
... reads these two images, then a third image "watermark.png". The "-composite" operation places the second image over the first, using the third as a mask. I don't suppose this is what you want.

"original.tif[0]" will use just the first image, and composite the watermark over it.