title: Keep Same Filename When Converting Using ImageMagick
body: <p>I'm trying to convert several hundred specifically named .jp2 files in a directory to .jpg files using ImageMagick from the terminal. </p>
  
  <p>For example, I want A.jp2, B.jp2, C.jp2 to become A.jpg, B.jpg, C.jpg.</p>
  
  <p>I tried the following command:</p>
  
  <pre><code>convert *.jp2 *.jpg
  </code></pre>
  
  <p>However, this gave me the following files:</p>
  
  <ul>
  <li>*-0.jpg</li>
  <li>*-1.jpg</li>
  <li>*-2.jpg</li>
  <li>etc.</li>
  </ul>
  
  <p>How can I keep the names of the original files when I convert them?</p>