문제

When I use this command to trim a PDF file:

convert -fuzz 1% -trim +repage multi0.pdf multi0new.pdf

The result is very disappointing and the trimmed image size becomes more than 10 times lower than the source.

Is there any way to make a clean image trimming without loss of quality?

(here it is, before and after)

도움이 되었습니까?

해결책

You probably have to use the -density option with a higher value than the default of 72 dpi. Try 300 for a start:

convert -density 300 -fuzz 1% -trim +repage multi0.pdf multi0new.pdf

Note that higher density values will increase the output file size.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top