ImageMagick: Using -size and -quality in the same command?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
someberry
Forum Contributor
Posts: 172
Joined: Mon Apr 11, 2005 5:16 am

ImageMagick: Using -size and -quality in the same command?

Post by someberry »

I'm converting a PDF into PNG's using the following command:

Code: Select all

exec("convert -resize 500x700! -quality 50 input.pdf output.png");
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?

Thanks!
Post Reply