title: Batch resize images into new folder using ImageMagick
body: <p>I have a folder of images over <code>4MB</code> - let's call this folder <code>dsc_big/</code>. I'd like to use <code>convert -define jpeg:extent=2MB</code> to convert them to under <code>2MB</code> and copy <code>dsc_big/*</code> to a folder <code>dsc_small/</code> that already exists.</p>
  
  <p>I tried <code>convert dsc_big/* -define jpeg:extent=2MB dsc_small/</code> but that produces images called <code>-0</code>, <code>-1</code>, and so on.</p>
  
  <p>What do I do?</p>