title: ImageMagick command to convert and save with same name
body: <p>I am using ImageMagick <strong>convert</strong> command for making thumbnails &amp; save the converted images in another directory, one by one, in PHP.</p>
  
  <p>But, cant figure out how to keep the the image name in the converted image.</p>
  
  <pre><code>&gt; convert 1.JPG -resize 120X120 thumb/*.JPG
  </code></pre>
  
  <p>need to keep the output file names same as the input. Please help.</p>