How to crop white margins from photo?

fCoder Home - Image Converters - 2JPEG

Use option "-acropm(R,G,B)" to crop white margins. Margins color is specified in brackets, letters mean channels: R - red, G - green, B- blue.

Example*:

2jpeg.exe s="C:\Images\*.*" d="C:\out" -acropm(255,255,255)

The program will automatically find on image a rectangle containing pixels with color different from color specified in "-acropm" option. After this it will crop the margins.

* This example works the same way with 2GIF, 2TIFF, 2Bitmap, 2TGA, 2PNG and 2WBMP.