[Resolved] Problem with gif to png bitmap

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?".
Post Reply
sonicntayls
Posts: 2
Joined: 2013-05-21T18:16:45-07:00
Authentication code: 6789

[Resolved] Problem with gif to png bitmap

Post 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.
Last edited by sonicntayls on 2013-05-22T06:42:54-07:00, edited 1 time in total.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Problem with gif to png bitmap

Post 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
sonicntayls
Posts: 2
Joined: 2013-05-21T18:16:45-07:00
Authentication code: 6789

Re: Problem with gif to png bitmap

Post by sonicntayls »

Thank you very much! The second command you suggested worked out perfectly.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: [Resolved] Problem with gif to png bitmap

Post by anthony »

Also see information about resizing GIF animations
http://www.imagemagick.org/Usage/anim_mods/#resize
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply