Code: Select all
exec("convert -resize 500x700! -quality 50 input.pdf output.png");
Thanks!
Code: Select all
exec("convert -resize 500x700! -quality 50 input.pdf output.png");
Code: Select all
exec("convert input.pdf -resize 500x700! -strip -quality 50 output.png");
-quality 50 is meaningful only to JPEG images. for PNG -quality uses very different values.virtual wrote:I'm converting a PDF into PNG's using the following command:
However, the quality always seems to be set to 100 (the file size is 280kb!). Is there a way I can get the output.png to be < 100kb whilst also resizing?Code: Select all
exec("convert -resize 500x700! -quality 50 input.pdf output.png");
Thanks!