I have a 1400x1400 image in which I want to trim 4 pixels to the left, 1 at the bottom and, to keep square proportions, 3 from the top. The problem is, whenever I perform a crop with
jpegtran, pixels get removed from the bottom-right, no matter what I do. For instance, testing just the left part, I tried:
jpegtran -perfect -crop 1396x1400+0+0 -outfile crop.jpg image.jpg
but that just removes 4 pixels from the right;
jpegtran -perfect -crop 1396x1400-4+0 -outfile crop.jpg image.jpg
and that again removes 4 pixels from the right;
jpegtran -perfect -crop 1396x1400+4+0 -outfile crop.jpg image.jpg
and that does not remove any pixels at all; more in general,
jpegtran -perfect -crop 1396x1400+x+0 -outfile crop.jpg image.jpg jpegtran -perfect -crop 1396x1400-x+0 -outfile crop.jpg image.jpg
x between 0 and 4, does respectively remove 4-x and x pixels from the right. With
x higher than 5, obviously gives an error. I couldn't achieve any left trim. Can anyone help me?
libjpeg-turbo version 1.4.2 (build 20151205) on an Arch Linux x86_64 system.