title: Image Magick: Image optimization for websites
body: <p>I have a camera which produces photographs of 3008x2000 pixels. I use Image Magick to scale and resize the photos to be put up on my website. The size of the images I am using on the website is 602x400. I use this command to reduce the size:</p>
  
  <pre><code>convert DSC_0124.JPG -scale 20% -size 24% img1.jpg
  </code></pre>
  
  <p>This produces an image which is 602x400 pixels in size. But the file size will be always above 250KB. More images on a single html page means the page will be heavier and loading time will be longer. Are there any features in image magic that will help me to keep the file size as small as possible, possibly, below 100KB. But the image size should be the same, that is, 602x400px. I have achieved similar optimisation with <a href="http://seamonster.codeplex.com/">SEAMonster</a> tool for MS Windows. As it doean't have a commandline alternative, it wouldn't be of much help when there are hundreds of images to be converted.</p>