I found the solution, here it is:
Resize the image to the new size, crop it with specified x/y offset and then rebuild it completely as an image
Code: Select all
/usr/local/bin/convert from.gif -resize 427x238 -crop 180x180+124+67 +repage to.gif
Code: Select all
/usr/local/bin/convert from.gif -resize 427x238 -crop 180x180+124+67 +repage to.gif