emma57573 Posted April 1, 2009 Share Posted April 1, 2009 What the following bit of code does is create a thumbnail of 190x190 then it will crop it to 170x150 in proportion Its working great but some of the file sizes are still coming out quite large and eating on load times/Bandwidth Now I should be able to get a size of about 8 - 12kb for each of these images as they are only small but I cant find any code that will compress the file size to a size that I specify. Ive found loads of resizing commands but I cant find a command to specify a size to compress to. Can anyone help me out? exec("convert -size 190x190 $path1 -thumbnail \"170x150^\" -gravity center -extent 170x150 $path2"); Quote Link to comment https://forums.phpfreaks.com/topic/152002-imagemagick-file-size-help/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.