VitalSource-Grabber icon indicating copy to clipboard operation
VitalSource-Grabber copied to clipboard

Problems can not remove the watermark painted with gradient

Open fofwisdom opened this issue 4 years ago • 4 comments

Hello! Vital Source recently patched the color of the watermark to be gradated. So when I used the remover, only part of the text was erased. I'm looking for advice if I should use the convert command multiple times. Remove watermarks - 01 - before Remove watermarks- 02 - after

fofwisdom avatar Jul 24 '20 05:07 fofwisdom

e6e6e6 8%, bdbdbd 8%. If I do it twice the text damage will be large, but the watermark will be erased cleanly. 7

bdbdbd 16% Watermark remains after 1 run. 😵

We need a way to reduce the damage to the character. 🤔

fofwisdom avatar Jul 24 '20 05:07 fofwisdom

Step 1: Prepare a blank page with only the watermark and save it as a temp.png Screen Shot 2020-07-24 at 08 48 56

Step 2: Replace row 22 in process.sh with: convert $f /Users/xxx/VitalSource/temp.png -compose DivideSrc -composite ../clean/$f

jankais3r avatar Jul 24 '20 06:07 jankais3r

Brilliant! So many thanks.

fofwisdom avatar Jul 24 '20 07:07 fofwisdom

Unfortunately, this no longer works. Vitalsource has added variable watermarks that flip their gradient (bottom -> top) and also move around the page. If the watermark matches the page, removal is great but if it's offset or inverted, it turns out badly.

mchangrh avatar Jan 14 '23 11:01 mchangrh