I'm trying to remove the white background from an animated .gif, but this keeps happening:
Any ideas?
imagemagick crashing on me
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: imagemagick crashing on me
You need to give us more information. What is your version of IM and platform (I presume windows)? If you are running from the command line, then ImageMagick Studio should not be involved. I am not a Windows user, so you may need help from some one who knows more about Windows.
Can you make a single gif image (not animation) into transparency using the same command you show? You may need to coalesce the frames of the gif, process them as above and then reconstitute your animation.
Also see
http://www.imagemagick.org/Usage/anim_opt/#opt_trans
Can you make a single gif image (not animation) into transparency using the same command you show? You may need to coalesce the frames of the gif, process them as above and then reconstitute your animation.
Code: Select all
convert 0.gif -coalesce -transparent white -layers optimize output.gif
http://www.imagemagick.org/Usage/anim_opt/#opt_trans
Re: imagemagick crashing on me
Hey thanks for helping =)fmw42 wrote:You need to give us more information. What is your version of IM and platform (I presume windows)? If you are running from the command line, then ImageMagick Studio should not be involved. I am not a Windows user, so you may need help from some one who knows more about Windows.
Can you make a single gif image (not animation) into transparency using the same command you show? You may need to coalesce the frames of the gif, process them as above and then reconstitute your animation.
Also seeCode: Select all
convert 0.gif -coalesce -transparent white -layers optimize output.gif
http://www.imagemagick.org/Usage/anim_opt/#opt_trans
I'll need to research what coalesce is, but I ended up with this after using that script:
For now at least it isn't crashing =P
I'm using windows 7, and I downloaded IM about two weeks ago, so it should be the most recent version?
Is there any other way to run it? I haven't seen any imagemagick interfaces so I assumed everyone just used the command line =Ofmw42 wrote: If you are running from the command line, then ImageMagick Studio should not be involved.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: imagemagick crashing on me
It is your frame disposal. Try adding -dispose previous. And perhaps your should also try adding -layers optimize.
See
http://www.imagemagick.org/Usage/anim_basics/
http://www.imagemagick.org/Usage/anim_basics/#dispose
http://www.imagemagick.org/Usage/anim_basics/#coalesce
http://www.imagemagick.org/Usage/anim_opt/
http://www.imagemagick.org/Usage/anim_mods/
try
What is your exact version of IM?
See
http://www.imagemagick.org/Usage/anim_basics/
http://www.imagemagick.org/Usage/anim_basics/#dispose
http://www.imagemagick.org/Usage/anim_basics/#coalesce
http://www.imagemagick.org/Usage/anim_opt/
http://www.imagemagick.org/Usage/anim_mods/
try
Code: Select all
convert 0.gif -coalesce -transparent white -dispose previous -layers optimize output.gif
Re: imagemagick crashing on me
And you probably want to upgrade to the latest version. I think you have installed the version that has a bug in the gif writer.
Re: imagemagick crashing on me
dlemstra wrote:And you probably want to upgrade to the latest version. I think you have installed the version that has a bug in the gif writer.
woah I just needed to updatefmw42 wrote: What is your exact version of IM?
I guess I picked a bad date to start using Imagemagick.
No more crashes =) thanks again