Convert pdf to a thumbnail

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
kloeten
Posts: 2
Joined: 2016-09-14T07:51:23-07:00
Authentication code: 1151

Convert pdf to a thumbnail

Post by kloeten »

Hello,

I try to convert a pdf to a thumbnail, but I can't manage it.

I did this:

Code: Select all

convert ak.pdf -trim -resize 250x250^  ak.png
and got this:

http://sb.brod-is.de/test/ak.png

That's fine, but now I would like to crop it to a thumbnail 250px300px like this:

Image

Code: Select all

convert ak.pdf -trim -resize 250x250^ -crop 250x300+0+0 akcr.png
but the result is this:
Image

What am I doing wrong?

Thank you in advance for your help!
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert pdf to a thumbnail

Post by snibgo »

Insert "+repage" after the trim.
snibgo's IM pages: im.snibgo.com
kloeten
Posts: 2
Joined: 2016-09-14T07:51:23-07:00
Authentication code: 1151

Re: Convert pdf to a thumbnail

Post by kloeten »

You made my day! Thank you very much :-)
Post Reply