Watermark visible in every editor/image viewer except Photoshop

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
tiropo
Posts: 1
Joined: 2019-04-17T05:53:10-07:00
Authentication code: 1152

Watermark visible in every editor/image viewer except Photoshop

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

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

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

Post 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.
snibgo's IM pages: im.snibgo.com
Post Reply