Free online tool

Upload a file

Drop your file hereTap to choose a file

or click to browse, or paste from the clipboard

← Back to Blog

How to Make a GIF from Pictures: Frame Order, Timing and Size

To make a GIF from pictures, put the photos in the order they should play, fit them to one frame size, give each frame a display time (the frame delay) and choose how many times the animation plays, then save the sequence as an animated GIF. Around 100 milliseconds per frame reads as motion, while 700 to 1,500 milliseconds suits a photo slideshow.

Zutilium's Animated GIF Maker does all of this in one step for 2 to 20 JPG, PNG, WebP, AVIF or TIFF images.

How to make a GIF from pictures with Zutilium

  1. Open Animated GIF Maker and drop your pictures on the upload area, or click Choose files. You can add 2 to 20 images of up to 10 MiB each.
  2. Check the order in the file list, which plays from top to bottom. Move a picture with its ↑ and ↓ buttons, remove one with ×, or append more with Add more files.
  3. Set GIF width (px) and GIF height (px). The default frame is 480 × 480, and each side can be up to 1,024 pixels.
  4. Enter a Frame delay (milliseconds) from 20 to 10,000 in steps of 10. It applies to every frame, and the default of 200 shows five pictures per second.
  5. Choose Playback: Loop forever, Play once, Play twice or Play three times.
  6. Pick Image fitting, either Fit with padding or Fill and crop, and a Background of White or Black for padding and transparent areas.
  7. Click Convert to GIF, then Download when "Your GIF is ready" appears.

Watch the downloaded GIF in a browser to check the order, the speed and the edges of each frame. The file list shows names rather than thumbnails, so number your files first with leading zeros (01, 02 … 12). That keeps them in the same order everywhere, including command lines, where 10.jpg sorts before 2.jpg.

Your pictures are uploaded to Zutilium's server for the conversion, and the finished GIF is a temporary download, so save it promptly. Transparent areas are filled with the chosen background; the GIF has no transparency.

Choose the frame delay and loop count

The frame delay is how long each picture stays on screen. Frames per second equal 1,000 divided by the delay, and one pass through the animation lasts the number of frames times the delay: 8 pictures at 500 ms play for 4 seconds.

What you are making Frame delay Speed
Stop-motion or drawn frames 80 to 120 ms About 8 to 12 frames a second
Burst photos of an action 100 to 200 ms 5 to 10 frames a second
Product photos or a slideshow 700 to 1,500 ms 0.7 to 1.5 s per picture
Before and after (2 frames) 1,000 to 2,000 ms 1 to 2 s per picture
Step-by-step screenshots 2,000 to 4,000 ms Time to read each step

GIF stores every delay in hundredths of a second, as the GIF89a specification defines, which is why the tool asks for multiples of 10 ms. Film-style 24 frames per second (41.7 ms) can't be stored exactly, so use 40 ms, which gives 25.

Hold one picture longer

Animated GIF Maker uses one delay for every frame. To keep a picture on screen longer, such as the last shot of a sequence, add copies of it in a row: three copies at 500 ms hold it for 1.5 seconds. Copies count toward the 20-picture and pixel limits.

Loop forever, play once or a set number of times

Playback counts total plays, but the file itself stores repeats: Play twice is saved as one repeat and Play once has no loop block. Browsers read one repeat as two plays and a missing block as one, as Mozilla's bug report on loop counts records. A GIF that stops keeps its last frame on screen, so end on the picture you want people to see. Not every app honors a finite play count, so test the GIF where you plan to post it.

Fit pictures of different sizes into one frame

Every picture is resized to the same frame. Fit with padding shows the whole picture and fills the leftover space with the background color. Fill and crop covers the frame and trims the overflow equally from both sides. Photos are turned upright using their orientation tag first, and pictures smaller than the frame are scaled up, which softens them.

Here is what happens to 12-megapixel phone photos (4032 × 3024):

Photo Frame Fit with padding Fill and crop
Landscape 480 × 480 480 × 360, 60 px bars top and bottom 80 px cut from left and right
Portrait 480 × 480 360 × 480, 60 px bars left and right 80 px cut from top and bottom
Landscape 640 × 480 Exact fit Exact fit
Portrait 640 × 480 360 × 480, 140 px bars each side Middle 56% of the height kept

Set the frame to the shape most of your pictures share: 640 × 480 for landscape phone photos, 480 × 640 for portrait ones. For a mix, a square frame with Fit with padding keeps every picture whole.

Keep the GIF small and within the limits

In GIFs from this tool, every frame is a complete picture with up to 256 colors and its own palette. File size therefore grows with the number of frames and with width × height, and grainy, detailed photos take more space than plain backgrounds.

Limit Value
Pictures 2 to 20
File size 10 MiB each, 100 MiB in total
Picture size 25 megapixels each, 100 megapixels in total
Frame 1 to 1,024 px per side
Output Width × height × frames up to 8 million pixels
Encoding time 60 seconds

The output budget limits the frame size for a given number of pictures:

Frame size Most pictures
480 × 480 or 640 × 480 20
640 × 640 19
800 × 600 16
1024 × 768 10
1024 × 1024 7

Worked example: 12 phone photos

Take 12 photos of 4032 × 3024 pixels for a slideshow. Each holds 12,192,768 pixels, so the 12 add up to 146 million, past the 100-million limit; only 8 full-size photos fit (97.5 million). Shrink them first, for example to 1,600 × 1,200 with Bulk Image Compressor by setting Max width (px) and Max height (px) to 1600. The 12 photos then hold 23 million pixels, and the smaller files stay well inside the 100 MiB upload total.

In a 480 × 480 frame, the 12 frames use 2.8 million of the 8 million output pixels. At 750 ms per frame, one pass lasts 9 seconds.

If the finished GIF is too large to post, GIF Compressor can cut the palette to 128, 64 or 32 colors, and Animated GIF Resizer makes the dimensions smaller. For more ways to shrink it, see the guide to reducing GIF file size.

Make a GIF from images on iPhone, Android, Mac or Windows

Android and iPhone: Google Photos

In Google Photos, tap Create, then Animation, select your photos and tap Create at the top. Google's creations help page calls the result a quick-moving GIF and says you can't change its speed. The steps are the same in the iPhone app.

Samsung Galaxy: Gallery

Select the photos in Gallery, tap More (three dots) and choose Create GIF; on some versions it is Create, then GIF. Samsung's Gallery GIF guide says you can change the playback speed and photo order before saving; menus vary by model and software version.

iPhone, iPad and Mac: Shortcuts

The Shortcuts app includes a Make GIF action. Apple's Shortcuts guide describes a shortcut in which Get Latest Photos picks your most recent photos and Make GIF turns them into an animated GIF. End yours with Save to Photo Album to keep the result. Make GIF has its own settings for time per photo and looping.

Windows and Mac: PowerPoint

Put one picture on each slide, choose File > Export > Create an Animated GIF and set the seconds to spend on each slide. On a Mac, choose File > Export and set the file format to Animated GIF. Microsoft's animated GIF instructions say the GIF always loops and that you need PowerPoint for Microsoft 365, PowerPoint 2024 or PowerPoint 2021 for Mac.

Command line: ImageMagick

ImageMagick, a free command-line tool, can also build the GIF with a separate delay per frame (on ImageMagick 6, type convert instead of magick):

magick -delay 50 -loop 0 01.jpg 02.jpg 03.jpg -delay 200 04.jpg -auto-orient -resize 480x480 -gravity center -background white -extent 480x480 slideshow.gif

-delay counts hundredths of a second, so frames 1 to 3 show for 0.5 s and frame 4 for 2 s, and -loop 0 repeats forever, as the ImageMagick option reference explains. -resize 480x480 fits each photo inside the frame and -extent pads it, like Fit with padding; -resize 480x480^ gives a fill-and-crop result instead.

Troubleshooting

"The sequence exceeds 100 million source pixels"

Your pictures are too large in total; nine or more 12-megapixel photos trigger it, and so do five or more of the 24-megapixel photos recent iPhones take. Resize them first, as in the worked example.

"Unable to read an image. Upload valid still images of at most 25 million pixels each"

One file is damaged or larger than 25 megapixels, such as a 48- or 50-megapixel shot. The 24-megapixel photos recent iPhones take by default fit, up to four per GIF because of the 100-megapixel total. Save a smaller copy and add that instead.

HEIC photos from an iPhone are refused

HEIC photos, saved by the iPhone camera's High Efficiency setting, aren't accepted. Convert them to JPG with HEIC Converter and set Max Width to 1920px, which keeps each file well under the 10 MiB limit (the GIF is at most 1024 pixels wide anyway). For new photos, choose Most Compatible under Settings > Camera > Formats to save JPEGs, as Apple's HEIF guide explains.

"Upload still images. Animated and multiple-page inputs are not supported"

One file is an animation or a multi-page document, such as an animated WebP or a multi-page TIFF. Export a single still image from it first.

"Use dimensions from 1 to 1024 pixels and at most 8 million output pixels across all frames"

A side is over 1,024 pixels, or the frame is too big for the number of pictures. Lower the width and height using the frame size table above, or use fewer pictures.

Colors look banded or shift between frames

With 256 colors per frame, smooth gradients such as skies show visible steps, and because each frame gets its own palette, a color can shift slightly from one frame to the next. Plain backgrounds hold up best; when color matters more than compatibility, use a short video.

"GIF encoding timed out"

Encoding stops after 60 seconds. Use fewer pictures or a smaller frame.

Frequently asked questions

How many pictures do you need to make a GIF?

Two is the minimum for an animation, as in a before-and-after GIF. Animated GIF Maker takes 2 to 20 pictures per GIF. Slideshows usually use 5 to 10, and stop-motion needs more.

How do I combine images into a GIF without losing quality?

Some loss is unavoidable with photos, because each GIF frame holds at most 256 colors. Keep the frame no larger than your smallest picture so nothing is enlarged, and match the frame shape to your pictures so nothing is cropped. If color accuracy matters more than compatibility, share a short video instead.

How long should each frame of a GIF be?

Use 80 to 200 milliseconds per frame for motion, 700 to 1,500 milliseconds for a slideshow and 2 seconds or more for text people need to read. The default in Animated GIF Maker, 200 milliseconds, shows five pictures per second.

Can each frame in a GIF have a different duration?

The GIF format allows it, but Animated GIF Maker applies one delay to every frame. To hold one picture longer, add copies of it in a row, or use ImageMagick, which accepts a separate delay for each frame.

Is an animated GIF maker different from a video to GIF converter?

Yes. An animated GIF maker turns separate still pictures into frames, while a video converter samples frames from a clip; for that, see how to make a GIF from a video. If your frames sit in one grid image, the sprite sheet to GIF guide covers that case.