Вопрос

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