Convert GIF to PNG
Turn GIF images into PNG files. Every frame becomes one PNG, drawn in full as it shows in the animation, with transparency kept, or only the first frame when frames is first.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop GIF files on the dialor turn it to pick what to do
Every GIF frame as a PNG.Each frame is drawn in full, with transparency kept.
What you get
A PNG for every frame of the GIF, drawn in full as it shows in the animation. Transparency is kept. A GIF that does not move gives one PNG.
Set Frames to first to get only the first frame as a still picture. The default is all, which converts every frame.
Size and color options
Set Max width or Set Max height to shrink the PNGs. The shape is kept, anything smaller than the limit stays as it is, and nothing is enlarged. Both accept values from 1 to 20000.
Turn on Grayscale to turn colors into shades of gray, which often makes the file smaller. Set Rotate to turn the result clockwise by 90, 180 or 270 degrees.
When it stops
If the GIF cannot be parsed, the conversion stops with
input_corrupted. No PNG is made from that file.To go the other way, use PNG to GIF.
GIF and PNG.What each format is, and the options this conversion takes.
- 01 · frames
Frames
Which frames of an animation to convert.
firstOnly the first frame, as a still picture.allEvery frame.
- 02 · grayscale
Grayscale
Turns colors into shades of gray, which often makes the file smaller.
- 03 · max_height
Max height (px)
Shrinks anything taller than this, keeping its shape. Anything shorter stays as it is, so nothing is ever enlarged.
1 to 20000 - 04 · max_width
Max width (px)
Shrinks anything wider than this, keeping its shape. Anything narrower stays as it is, so nothing is ever enlarged.
1 to 20000 - 05 · rotate
Rotate
Turns the result clockwise by a quarter, a half or three quarters.
90 · 180 · 270
The formats
GIF
Indexed-color images with simple animation. Limited to 256 colors per frame.
- Extensions
- .gif
- MIME type
- image
/gif - Kind
- Images
PNG
Lossless raster images with an alpha channel. Screenshots, icons and graphics with sharp edges.
- Extensions
- .png
- MIME type
- image
/png - Kind
- Images
In your code.The same GIF to PNG conversion through the API, for your app or your agent.
$ cv convert photo.gif photo/ --to png$ cv convert photo.gif photo/ --to pngQuestions.What people ask about GIF to PNG.
Many. Each frame becomes its own PNG. Set Frames to first if you want only the first frame.
Yes. A GIF with a single picture gives one PNG.
Yes. Each frame keeps its transparency.
The file could not be parsed. The conversion stops with input_corrupted and gives no PNG.