I need to crop a number of images in jpeg
format by 20 pixels on the right side losslessly on Linux.
I checked jpegtran
, but it needs the file size in pixels before cropping, and I don't know how to build a batch file with that.
How can I losslessly crop 20 pixels from the right side of images programmatically?