<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 09:01:08 +0000</lastBuildDate>
    <item>
      <title>(DOS Batch) Automatically trim/remove white/black/any borders from images - mld15</title>
      <link>https://snipplr.com/view/52310/automatically-trimremove-whiteblackany-borders-from-images</link>
      <description>&lt;p&gt;Worked great for trimming margins in scanned comics and books, much easier and faster than complex photoshop scripts. :)&#13;
&#13;
1. Download &amp; install ImageMagick from http://www.imagemagick.org/script/binary-releases.php#windows. &#13;
This is a command line utility to work with images. No ads, toolbars and other crap. It is freeware and open source.&#13;
You need file named ImageMagick-&lt;version&gt;-windows-static.exe&#13;
&#13;
2. Create new file conv.bat with this snippet inside in a folder with images and launch it.&#13;
This will automatically trim all images in this folder and all its subfolders.&#13;
&#13;
3. Optionally you can set different extension if you need to crop something other than jpegs's, and increase color tolerance - to detect larger borders. There are also other settings, like cropping only borders of certain color - you can read full documentation at http://www.imagemagick.org/Usage/crop/#trim .&#13;
&#13;
It will also work on Linux and Mac since ImageMagick is a crossplatform tool, but you will have to modify .bat file to be compatible with Bash syntax.&lt;/p&gt;</description>
      <pubDate>Tue, 19 Apr 2011 21:01:59 UTC</pubDate>
      <guid>https://snipplr.com/view/52310/automatically-trimremove-whiteblackany-borders-from-images</guid>
    </item>
  </channel>
</rss>
