  
<div id="snippet_213" class="snippet">
  <h2><a href="/snippets/213-Bulk-resizing-images-with-Imagemagick-" title="Bulk resizing images with Imagemagick. - Shell Script (Bash) - imagemagick, bulk resize">Bulk resizing images with Imagemagick.</a></h2>
  <div class="details">
    <a style="background-color: #FFFF94;" href="http://snippets.aktagon.com/languages/131-Shell-Script-Bash-">
      Shell Script (Bash)</a> posted about 1 year ago by marko
          
  </div>

  <div class="body">
    <p>Quick and dirty, but handy one-liner that resizes all *.jpg files in the current directory.
<pre class="active4d"><span class="line-numbers">   1 </span> <span class="Keyword">for</span> image <span class="Keyword">in</span> *.jpg<span class="Operator">;</span> <span class="Keyword">do</span> convert <span class="Variable"><span class="Variable">$</span>image</span> -resize 800x600 800x600-<span class="Variable"><span class="Variable">$</span>image</span><span class="Operator">;</span> <span class="Keyword">done</span>
</pre></p>
  </div>

  <div style="font-size: 0.8em;margin:0.5em;">
    
      Tagged <a href="/tags/113-imagemagick">imagemagick</a>, <a href="/tags/495-bulk-resize">bulk resize</a>
    
    
  </div>
</div>






