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?".
I'm trying to convert each page of a pdf file to a low resolution jpg and a high resolution one. I'm using
Code: Select all
convert -scale 2000x1000 file.pdf hi-res%d.jpg
convert -scale 1000x500 file.pdf lo-res%d.jpg
It does creates a 1000x500 and 2000x1000 jpg for each page of the pdf, but both images are identical in definition. I mean, the hi-res image is just a pixelated scaled-up version of the lo-res one, even the text, wich should not be afected by resolution as far as I know.
Is there just a limit in the resolution that can be achieved converting a pdf into jpg??
It just worked perfetcly. Thanks
When trying to convert a pdf to jpgs with "convert -density 400 energia.pdf -scale 2000x1000 hi-res%d.jpg
", I encounter the following errors:
Magick: Postscript delegate failed `energia.pdf': No such file or directory @ er
Magick: missing an image filename `hi-res%d.jpg' @ error/convert.c/ConvertImageCom
The trouble is my pdf do exist and is right beside convert.exe and well hi-res%d.jpg is missing since its supposed to create those... I guess. I don't know what I'm understanding wrong here because it seems really easy.
Thanks to anyone that can help me !
Sorry, stupid me, it's all because I didn't had Ghostscript installed properly.
- Posts: 1
- Joined: 2014-09-05T04:00:37-07:00
- Authentication code: 6789
it wont work for me either... i am resorting to using to using http://pdfjpg.net/
which allow for resolution scaling but id like to set the parameters myself ..
does anyone have a link to an easy tutorial how to do this?
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
The most important control is "-density N" which must come before the input filename, because it is an option to the delegate that rasterises the PDF.