Page 1 of 1

using -shave or -trim drastically reduces image quality

Posted: 2011-11-29T20:35:14-07:00
by bastardo
I have a pdf file which is a book scanned at 300 dpi black & white, 1 bit per pixel. I can never get the paper aligned just so in the scanner, so I get a bit of a border I'd like to trim off. So, I run:

convert in.pdf -shave 20x20 out.pdf

which certainly does shave 20 pixels off of each side of each page in the pdf. However, the resulting images are seriously degraded. After the shave the text is so degraded it is unreadable.

How can I do the convert and maintain the image quality?

Re: using -shave or -trim drastically reduces image quality

Posted: 2011-11-30T19:18:09-07:00
by fmw42
what is your version of IM an platform? can you post a link to your input image?