Convert PNG to GIF
Turn PNG images into GIF. Same size, reduced to a palette of 256 colors with dithering, so gradients look grainy.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop PNG files on the dialor turn it to pick what to do
A GIF at the same size as your PNG.The picture keeps its width and height but drops to 256 colors.
What you get
One GIF with the same width and height as the PNG. The colors are reduced to a palette of 256 colors, and dithering is used to approximate the colors that are left out.
Because of the dithering, gradients look grainy.
Transparency
Transparency is kept, but GIF allows only two states. Each pixel is either fully clear or fully solid, so partly see-through pixels end up as one or the other.
Options
Set Max width or Max height to shrink a large image. Anything smaller than the limit stays as it is, so 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.
For more ways to change a PNG, see resize PNG.
When it stops
The conversion stops with
input_corruptedwhen the file could not be parsed.
PNG and GIF.What each format is, and the options this conversion takes.
- 01 · grayscale
Grayscale
Turns colors into shades of gray, which often makes the file smaller.
- 02 · 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 - 03 · 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 - 04 · rotate
Rotate
Turns the result clockwise by a quarter, a half or three quarters.
90 · 180 · 270
The formats
PNG
Lossless raster images with an alpha channel. Screenshots, icons and graphics with sharp edges.
- Extensions
- .png
- MIME type
- image
/png - Kind
- Images
GIF
Indexed-color images with simple animation. Limited to 256 colors per frame.
- Extensions
- .gif
- MIME type
- image
/gif - Kind
- Images
In your code.The same PNG to GIF conversion through the API, for your app or your agent.
$ cv convert photo.png photo.gif$ cv convert photo.png photo.gifQuestions.What people ask about PNG to GIF.
Yes. The width and height stay the same unless you set Max width or Max height. Those only shrink images that are larger than the limit.
A GIF holds 256 colors, so the conversion reduces the palette and uses dithering. This makes gradients look grainy.
Yes, but each pixel is either fully clear or fully solid. There are no partly see-through pixels in the GIF.
The file could not be parsed, so the conversion stops with input_corrupted.