Page 1 of 1

Imagemagick - add a text and a picture as watermark to a pdf with opacity

Posted: 2016-04-17T23:56:55-07:00
by suman114
I am trying to add water mark as follows. But the image is fully solid. Can I make it semi-transparent or have some opacity?
The command is follows.

Code: Select all

convert file/location.pdf null: logo.png -gravity center -quality 100 -fill "rgba(180,180,180,0.80)" -pointsize 18 -weight bold -annotate +0+50 'Something Stupid here' -compose multiply -layers composite destination.pdf
Can anyone help me pipe composite to this or fix this command?

Re: Imagemagick - add a text and a picture as watermark to a pdf with opacity

Posted: 2016-04-18T06:36:04-07:00
by snibgo
Which image is the watermark you want to make transparent? If it is logo.png, then:

Code: Select all

convert file/location.pdf null: ( logo.png -alpha set -channel A -evaluate Multiply 0.8 +channel ) -gravity center -quality 100 -fill "rgba(180,180,180,0.80)" -pointsize 18 -weight bold -annotate +0+50 'Something Stupid here' -compose multiply -layers composite destination.pdf
If using bash, escaps the parentheses like this: \( \).