trim +repage animated gif issue

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
coloring
Posts: 82
Joined: 2015-08-27T10:17:36-07:00
Authentication code: 1151

Re: trim +repage animated gif issue

Post by coloring »

@snibgo as expained in 1st post I want to trim the image to remove the "boring bits" and make it as small as possible
I don't want to have useless empty borders
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: trim +repage animated gif issue

Post by snibgo »

Frame 118 (counting from 1) has noise at the top left. So this make that area not boring. It doesn't have a useless empty border.
snibgo's IM pages: im.snibgo.com
coloring
Posts: 82
Joined: 2015-08-27T10:17:36-07:00
Authentication code: 1151

Re: trim +repage animated gif issue

Post by coloring »

I could only find 117 frames
I checked the last one and it had no such noise

Could you please elaborate on your results?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: trim +repage animated gif issue

Post by snibgo »

coloring wrote:here's an example
https://www.sendspace.com/file/dj05ql

the source is 304x411 and the result is 374x415
That file is example.zip, which contains input.gif, which contains 127 frames.
snibgo's IM pages: im.snibgo.com
coloring
Posts: 82
Joined: 2015-08-27T10:17:36-07:00
Authentication code: 1151

Re: trim +repage animated gif issue

Post by coloring »

Oh my bad you're completely right, one of the frame has a couple of garbage pixels :[

Oh well not an issue in imagemagick at all then, good job spotting this, this is most impressive

case closed I guess, thanks for the help, ansd sorry for having overlooked these evil pixels :shock:
Post Reply