ImageMagick get web-optimized pictures
<p>i'm using imagemagick to get 3 versions of an uploaded picture.</p>

<p>The problem is that the 3 new pictures aren't optimized for web like <strong>save for web and devices</strong> in Photoshop.
The difference is big. ImageMagick generates files which are 5 times bigger than a web-optimized picture from photoshop.</p>

<p>Can you help me to improve this issue?</p>

<p>This is the ImageMagick-Part:</p>

<pre><code>exec($imageMagickPath." uploads/foto.jpg -resize 514x uploads/fl-foto.jpg");
exec($imageMagickPath." uploads/fl-foto.jpg -resize 320x320 uploads/hl-foto.jpg");
exec($imageMagickPath." uploads/fl-foto.jpg -resize x96 -gravity center -crop 96x96+0+0 +repage uploads/th-foto.jpg");
</code></pre>

<p>Of course, I want to use these 3 images on the frontend, but they are to big and slow down the entire page.</p>

<p>Any suggestions?</p>

<p>Thx in advance!</p>
