Here is a tiny command line program to crop and convert images. It uses gdk_pixbuf to do all the heavy lifting:
Code: Select all
imgcrop (simple image cropper/converter) v.0.1a by vovchik, Oct 2018
---
Input formats supported: pnm, pbm, pgm, ppm, tga, xpm, tiff, pcx, gif,
xbm, wmf, icns, bmp, png, jpg, svg and ico.
Output formats supported: png, jpg, bmp, tiff and ico.
Input parameters: oldname newname x_start y_start width height
---
Example: imgcrop test.jpg test1.png 5 5 240 240
or
imgcrop test.png -size (shows dimensions)