Page 1 of 1

[Resolved] Problem with gif to png bitmap

Posted: 2013-05-21T18:33:41-07:00
by sonicntayls
This is my first time using this program, I was introduced to ImageMagick via a Rainmeter page Here: http://docs.rainmeter.net/tips/animated-gif-files
As such I followed those directions it offers towards the bottom.

I downloaded and used the version ImageMagick-6.8.5-7-Q16-x86-windows.zip
I used the basic command structure it lists: C:\PathToImageMagick\convert.exe +append C:\PathToGif\YourGif.gif C:\PathToDesiredOutput\YourBitmap.png
Using of course my target gif and desired png name. It functioned correctly in that it found the correct gif and png destination, however the bitmap is very wrong in that many of the 'frames' are missing most of the image. Does ImageMagick have its own frame limit regarding gif conversion? It was a very fairly large gif at 360 frames, is in black in white, originally has transparency in the background, and is about 673k in size. This was basically an experiment so any of these factors can be changed if they are what is causing the problem, as well as the number of frames.

This is a screencap of part of the png after conversion, the whole thing is generally like this. Image
It is supposed to be an hourglass animation with 1 frame per 60 seconds/minutes and 5 frames in between, making 360 total.

Like I said I can make the size of the image, both memory and dimension wise, smaller if that is causing the problem, as well as remove the transparent background. I just want to find out what it is that is causing the problem for sure.

Re: Problem with gif to png bitmap

Posted: 2013-05-21T18:50:29-07:00
by fmw42
IM 6 command syntax should be

convert input command output

see http://www.imagemagick.org/Usage/basics/#cmdline


try

convert input.gif +append result.png

or if the gif is an animation that has been optimized, then try

convert input.gif -coalesce +append result.png

Re: Problem with gif to png bitmap

Posted: 2013-05-22T06:42:27-07:00
by sonicntayls
Thank you very much! The second command you suggested worked out perfectly.

Re: [Resolved] Problem with gif to png bitmap

Posted: 2013-05-28T20:55:35-07:00
by anthony
Also see information about resizing GIF animations
http://www.imagemagick.org/Usage/anim_mods/#resize