Re: [GM-help] cropping gif seems not perform like the right way
Swiss army knife of image processing
Brought to you by:
bfriesen
From: Bob F. <bfr...@si...> - 2013-04-19 13:38:00
|
On Fri, 19 Apr 2013, Feng Liyuan wrote: > I have two images > > http://gist.qiniudn.com/dura_logo.jpeg > /usr/bin/gm mogrify -thumbnail '73x73^' -gravity center -crop '73x73+0+0' dura_logo.jpeg > It is correct. > Inline image 2 > > > http://gist.qiniudn.com/dura_logo.gif > /usr/bin/gm mogrify -thumbnail '73x73^' -gravity center -crop '73x73+0+0' dura_logo.gifIt comes a white image. > Inline image 3 It should help to add +page after the -crop operation. GIF saves crop offsets and these offsets may be causing your GIF viewer to display in an unexpected way because the image content is outside of the viewing area. % gm convert dura_logo.gif -thumbnail '73x73^' -gravity center -crop '73x73+0+0' -verbose info:- |grep 'Page geometry' Page geometry: 73x73+73+0 % gm convert dura_logo.gif -thumbnail '73x73^' -gravity center -crop '73x73+0+0' +page -verbose info:- |grep 'Page geometry' [ Now no Page geometry output ] Bob -- Bob Friesenhahn bfr...@si..., http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ |