I have been dealing with this problem for several hours. I can not crop / resize the image correctly.
Source Image Size 900x398 px
Target Dimension650x178 px
but the return dimension 647x178 px. I do not understand. This is the command I use:
/usr/bin/convert jpg:"/location/20-prefab_woningen.jpg" -auto-orient -shave 0x78 -resize 650x174 -colorspace RGB "location/new.jpg" &&exit
Is this a common mistake? I can not find anything on the Internet. The version of ImageMagick does not seem to matter both in the local and on the server, but I get the same results.
source
share