Remove 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
galv
Posts: 62
Joined: 2010-05-23T17:35:59-07:00
Authentication code: 8675308

Remove watermark

Post by galv »

Is there a way to remove a watermark? If yes, can it also be automated? By 'automated' I mean without knowing the watermark's rgb color.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Remove watermark

Post by fmw42 »

Nothing automatic in IM that I know about. One can do Inpainting to remove a constant color watermark using thinks like -morphology commands. Anthony has a script to that where the watermark is made transparent. see http://www.imagemagick.org/Usage/script ... l_shepards and viewtopic.php?p=41498#p41498 and inpaint at http://gmic.sourceforge.net/reference.shtml
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Remove watermark

Post by anthony »

Large semi-transparent watermarks are harder as removing them often makes the the results worse than not removing them.

What you really want to do is some how figure out a way to brighten/darken/enhance/decontrast, the specific pixels in the watermarked area to try to return them to a more 'normal' state. No solution is perfect, and varies depending on exactly how the watermark was added.

Also it may be that some color information was lost during the watermarking, so restoration may never be perfect even with a exact understanding of the watermarking process. However it should be possible to get a partial solution.

Of course without an example, time, and willpower, nothing will be possible.

If you do find some partial solution, please let us know. Lots of people would be interested, especially video enthusiasts.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply