user180574
user180574

Reputation: 6094

How to deal with padding in convert?

I am using convert from PDF to PNG.

$ convert -density 203.294113 -resize 6000x3300\> src.pdf[0] dst.png

But when the image is created, it has a white margin added around the origin pdf page and I don't know how to eliminate it (it doesn't matter whether "density" and "resize" are used). Thanks a lot for the help.

Upvotes: 1

Views: 294

Answers (1)

wedens
wedens

Reputation: 1830

you can use -shave to remove border with specific size or -trim to auto-trim image

Upvotes: 2

Related Questions