Page 1 of 1

Watermarking + file size

Posted: 2016-06-14T07:28:35-07:00
by pagmed
Trying to watermark a PDF with this command
composite -dissolve 25% -gravity center -density 150 "Watermark.png" "Input.pdf" "Output.pdf"

I get the desired output with density 150.
When the density is reduced, it distorts the output but the file size is acceptable
When the density is 150, output is acceptable but the file size is not acceptable. 30 MB files converted to a 160 MB file.

Any thoughts will be appreciated.

Peeyush

Re: Watermarking + file size

Posted: 2016-06-14T08:11:41-07:00
by snibgo
If your input PDF file contains vector data (eg ordinary text), IM will rasterize it (convert it to dots). This will increase the filesize.

If you want to keep the PDF as vector, IM is the wrong tool.