How to combine density/resize converting pdf->jpg?
Posted: 2011-04-15T05:01:44-07:00
Hi!
Due to the fact that I slowly but surely go crazy trying out what I have to set in which way I decided to simply ask, even if it will be a really easy solution.
First of all my environment:
ImageMagick: 6.6.9-4 2011-04-01 Q16
GhostScript: 9.02
OS: Windows 7 Pro x64
What I want to do:
I have some pdf-files that I should convert to jpg-images, but two things I have to keep in mind converting them:
1. they have to have 300dpi
2. they have a maximum size of w: 990px an h: 1400px.
As far as I have seen the pdfs have transparent background, but I don't even know if that has to do with my problem. If I convert it with
all is good, except the imagesize. If I change it to:
I have the right dpis, the right size BUT the formerly transparent background went black. So... any ideas what I can do? And yes, if I scale down the images from my first convert-call, the image is OK. But somehow it has to go in one statement, right?
Due to the fact that I slowly but surely go crazy trying out what I have to set in which way I decided to simply ask, even if it will be a really easy solution.
First of all my environment:
ImageMagick: 6.6.9-4 2011-04-01 Q16
GhostScript: 9.02
OS: Windows 7 Pro x64
What I want to do:
I have some pdf-files that I should convert to jpg-images, but two things I have to keep in mind converting them:
1. they have to have 300dpi
2. they have a maximum size of w: 990px an h: 1400px.
As far as I have seen the pdfs have transparent background, but I don't even know if that has to do with my problem. If I convert it with
Code: Select all
convert -density 300 test.pdf -quality 85 testpic.jpg
Code: Select all
convert -density 300 test.pdf -resize 990x1400 -quality 85 testpic.jpg