On 19 Nov 2007, at 09:51, Mark Dodwell wrote:

I'm using magick to create an image of the first page of a PDF document. I use the following command:

convert -resize 150x -crop 150x150! -gravity center -strip -colors 128 -resample 72x +repage 'file.pdf'[0] 'file.gif'

This has worked perfectly for me apart from 1 exception. For one PDF, I end up with an animated gif containing two frames. So, it seems to be ignoring the [0] part?

In the animated GIF - the first frame is correct, but the second is the part of the image that did not make it inside the crop region specified.

Any ideas?

Just to let you know I managed to 'fix' this by adding the following option:

  -delete '1-9999'

Be good to know if there is a better solution?

~ Mark



_______________________________________________
Magick-developers mailing list
Magick-developers@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-developers

Reply via email to