How to Make a GIF From Images and Keep the File Size Small

A GIF made from five phone photos can easily end up heavier than the photos themselves. That surprises a lot of people, because a GIF looks so simple. The reason is that every frame is stored as a full picture with its own colour table, and GIF compression is old and not very efficient. So if you want to make a GIF from images that still loads quickly in a chat, an email or a blog post, it pays to plan the size before you press the button, not after.
This guide walks through the whole route on DoraPDF: build the animation with the GIF Maker, then make the GIF smaller with Compress GIF if it is still too heavy.
What decides how big a GIF gets
Four things matter, roughly in this order:
- Pixel size. A 640 px wide GIF has almost twice as many pixels per frame as a 480 px one. Width is the single biggest lever you have.
- Number of frames. Ten frames cost about twice as much as five. Each extra photo adds a full frame.
- How busy each frame is. Flat graphics, screenshots and text compress well. Grainy photos, gradients and leaves on a tree do not.
- Number of colours. A GIF frame can use up to 256 colours. Fewer colours means smaller files, at the cost of some banding on smooth areas.
Keep these in mind and you can usually hit your target size on the first try.
Step 1: Prepare your images
Pick the frames first. For a product spin, a before and after, or a short tutorial, three to eight images is usually plenty. More frames rarely make the result clearer; they mostly make it heavier.
Try to keep all images the same shape. The GIF Maker takes its height from the first image, and any image with a different shape is fitted inside the frame with white space around it. If your photos are a mix of portrait and landscape, crop them to the same ratio first, or accept the white bars.
If your source photos are huge, that is fine; they get scaled down to the GIF width anyway. You only need the Image Resizer if you want to crop or prepare the frames for another use as well.
Step 2: Build the GIF
- Open the GIF Maker and add at least two images. They play in the order you add them, so add them in sequence.
- Set the Frame delay in milliseconds. The default is 500 ms (half a second per image). For a slideshow of photos, 800 to 1500 ms feels calmer. For a quick flip-book effect, 100 to 200 ms works.
- Choose a Width: 320, 480 or 640 px. For chat stickers and inline email images, 320 or 480 px is enough. Choose 640 px only when detail really matters.
- Leave Loop forever ticked if the animation should repeat. Untick it for a GIF that plays once and stops.
- Click Make GIF. You get a preview and an
animation.gifdownload.
Check the file size of the download. If it is already small enough for where it is going, you are done.
Step 3: Shrink it if it is still too big
Open Compress GIF and drop in the file. You have three controls:
- Colours: 128 (best look), 64 (balanced) or 32 (smallest). Start with 64. Drop to 32 for screenshots, icons and cartoons, which usually still look fine.
- Size: keep, 75% or 50%. Cutting the width to 75% removes almost half the pixels.
- Frames: keep all, or keep every 2nd frame. The tool doubles the delay of the frames it keeps, so the animation runs at the same overall speed, just less smoothly.
The result shows how much smaller the file got. If it says the file is no smaller, the original was already well optimised; try fewer colours or the 50% size instead.
A practical size plan
Every app has its own limits and they change, so check the place you are posting. As a rough way to think about it:
- For email, aim for a GIF well under 1 MB. Large inline images make emails slow to open on mobile data.
- For a website or blog, smaller is always better for loading speed. If the animation is long, a short video may be the better format.
- For chats, most apps accept bigger GIFs, but a small one starts playing sooner for the person receiving it.
A good habit: build the first version at 480 px with the frames you really need, then compress at 64 colours. Only go further if you must.
Common problems and fixes
White bars around some frames. Your images have different shapes. Crop them all to the same ratio and build again.
Colours look blotchy or banded. That is the 256-colour limit, made stronger by compression. Use 128 colours, or pick frames with fewer smooth gradients (skies and skin tones show banding first).
The animation is too fast or too slow. Rebuild with a different frame delay. Remember that 1000 ms equals one second.
The GIF is still huge. Reduce frames and width before you reduce colours. Two fewer frames often saves more than any colour setting.
It should play only once but keeps looping. Make sure "Loop forever" is unticked when you build it. Note that a few apps loop every GIF anyway, whatever the file says.
Privacy
Both tools run entirely in your browser. Your images are read and encoded on your own device, and the finished GIF is created there too, so nothing is uploaded to our server.
FAQ
How many images can I use in one GIF? You need at least two. There is no fixed maximum, but every extra frame makes the file bigger and the build slower, so keep it to the frames that tell the story.
Can I make a GIF with a transparent background? The GIF Maker fills each frame with a white background. Compress GIF keeps transparency that already exists in a GIF you upload.
Will compressing a GIF ruin the quality? Each setting trades a little quality for size. Try 64 colours and 75% size first and compare. Most GIFs look nearly the same.
Is a GIF or a video better? For a few frames, a GIF is simple and plays everywhere. For anything longer than a few seconds, a video is usually much smaller for the same quality.
Try the tools from this guide — free
Keep reading
How to Make a GIF from Photos Online for Free (No Watermark, No App)
Turn a handful of pictures into an animated GIF: set the speed, pick a size and choose whether it loops. Free, no watermark, runs in your browser.
GuideCompress GIF Online: Reduce GIF File Size for Chats, Email and Websites
Shrink a big animated GIF by cutting colours, scaling it down or dropping frames, and keep the animation playing. Free, no upload, see the % saved.
GuideProduct Photos With a White Background for Your Online Store (Free, From Your Phone)
Make clean white-background product photos for Shopify, Etsy, Daraz or Amazon: shoot, remove the background, resize and compress, all free in your browser.