Convert GIF to JPG

Turn GIF images into JPEG files. Every frame becomes one JPEG at quality 90 unless asked otherwise, drawn in full as it shows in the animation, 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

JPG pictures from your GIF frames.Each frame becomes its own JPG at quality 90, unless you choose otherwise.

  1. What you get

    Every frame of the GIF becomes one JPG, drawn in full as it shows in the animation. A GIF with several frames gives you several files.

    Set Frames to first to get only the first frame as a still picture. The default is all.

  2. What changes

    JPG cannot be transparent, so transparent areas become white. Set Background to fill them with another color, written as #RRGGBB.

    JPG compression is lossy, so some detail is lost compared with the GIF. The animation is not kept, since each JPG is a single picture.

  3. Options

    Set Quality to a value from 1 to 100. Higher keeps more detail and makes a bigger file, and above 90 the file grows quickly while the picture barely changes.

    Set Max width or Max height to shrink large frames. Smaller frames stay as they are, so nothing is enlarged. Rotate turns the result clockwise by 90, 180 or 270 degrees.

    Turn on Grayscale to turn colors into shades of gray, which often makes the file smaller. Turn on Strip metadata to remove EXIF and other metadata, including the color profile.

  4. When it fails

    A file that cannot be parsed stops with input_corrupted. That means the GIF itself could not be read.

    To go the other way, use JPG to GIF.

GIF and JPG.What each format is, and the options this conversion takes.

  1. 01 · background

    Background

    The color that fills transparent areas, for formats such as JPEG that cannot be transparent. Write it as #RRGGBB, such as #ffffff for white.

    default #ffffff
  2. 02 · frames

    Frames

    Which frames of an animation to convert.

    • first Only the first frame, as a still picture.
    • all Every frame.
    first · all default all
  3. 03 · grayscale

    Grayscale

    Turns colors into shades of gray, which often makes the file smaller.

  4. 04 · 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
  5. 05 · 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
  6. 06 · quality

    Quality

    How much detail lossy compression keeps. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.

    1 to 100 default 90
  7. 07 · rotate

    Rotate

    Turns the result clockwise by a quarter, a half or three quarters.

    90 · 180 · 270
  8. 08 · strip

    Strip metadata

    Removes EXIF and other metadata, such as the camera, the time and the GPS position a photo was taken at, and the color profile. The file gets a little smaller and says less about where it came from.

The formats

From · GIF

GIF

Indexed-color images with simple animation. Limited to 256 colors per frame.

Extensions
.gif
MIME type
image/gif
Kind
Images
To · JPG

JPEG

Lossy photo compression that every device and browser opens. Small files, no transparency.

Extensions
.jpg .jpeg .jfif .jpe
MIME type
image/jpeg
Kind
Images

In your code.The same GIF to JPG conversion through the API, for your app or your agent.

terminal
$ cv convert photo.gif photo/ --to jpeg
$ cv convert photo.gif photo/ --to jpeg

Questions.What people ask about GIF to JPG.

01OF 04

Yes, by default. Each frame becomes its own JPG. Set Frames to first if you want only the first frame.

They become white. Set Background to another color in #RRGGBB form to fill them differently.

Not exactly. JPG is lossy, so some detail is lost. The default is quality 90, and you can change it with Quality.

The file could not be parsed, so there was nothing to convert.

More conversions.Other ways in and out of GIF and JPG.