Download Assets
Download Assets
This tutorial includes 1 sample image, 1 sample PSD and 1 PDF guide. Downloads are free with a PHLEARN account.
- Download the sample images and PSDs from every free tutorial on PHLEARN
- New free tutorials published every week
- One free account — sign up once, then download anything
Free PDF Guide · 4 Pages
This Tutorial as a Step-by-Step PDF
Walks through all five stages: Select Subject and the Polygonal Lasso, Generative Fill prompts like white marble display front view, Image > Apply Image for one layer per background, Window > Timeline > Create Frame Animation at 0.5 to 0.7 seconds, and Save for Web (Legacy) as a GIF under 1 MB. Keep it next to your keyboard.
description
Create animated GIFs in Photoshop out of one product shot and a handful of generated backgrounds. The product stays put, the scene behind it changes, and the whole thing loops.
Isolate the product once, generate as many backgrounds as you want behind it, commit each variation to its own layer, then let the Timeline panel turn those layers into frames. Export as a GIF and you have something that holds attention in a feed far longer than a still.
Enjoying This Free Tutorial?
We publish a new free tutorial every week, each one with sample images and PSDs you can download and follow along with. Sign up and they land straight in your inbox, along with early word on sales, events and subscriber-only offers.
How to Create Animated GIFs Using AI in Photoshop
A product photographed once can be shown in a dozen different settings. Generative Fill will build those settings for you, and Photoshop’s Timeline will cycle through them as a looping GIF — the product staying perfectly still while the world behind it changes.
It is an effective format for product listings, social posts and email headers, and the whole thing is built from one photograph. The workflow has one genuinely awkward step in the middle, which is covered below.

Isolate the Product
-
Run Select, then Subject
Photoshop finds the product automatically.
-
Refine with the Polygonal Lasso
Hold Alt or Option to subtract areas that were wrongly included, Shift to add areas that were missed. Backspace removes your last placed point, and Enter completes the selection.
-
Inverse the selection
Select, then Inverse. You now have the background selected rather than the product — which is what Generative Fill needs to work on.
The edge does not need to be perfect
This is worth knowing because it saves a lot of time. Generative Fill rebuilds the area right up to your selection boundary and blends into it, so small imperfections in the cutout get absorbed into the generated background rather than showing as a hard line.
Spend your effort on the obvious errors — a chunk of background included in the product, or a piece of the product cut off — and do not labor over pixel-level accuracy.
Generate the Backgrounds
With the background selected, click Generative Fill and describe the setting you want. Generate several completely different options rather than variations on one idea — the animation is more interesting when the settings contrast.
Prompts that work well for product displays follow a simple pattern: material, then the word display, then the viewing angle. So:
white marble display front view · rustic wood display front view · broken stone display front view · fresh plants natural rustic display front view
Always specify the angle
Adding front view is the single most useful part of these prompts. Without it, the AI frequently generates a surface seen from above or at an angle, which does not match a product photographed straight on — and a mismatched perspective is the fastest way to make a composite look wrong.
Naming the viewing angle forces the generated setting to agree with how the product was actually shot.
Generate as many as you need, discarding the ones that do not work. Aim for four or five strong options; more than about six makes for a large file and a GIF that loops too slowly to hold attention.
Commit Each Variation to Its Own Layer
This is the step that trips people up. Generative Fill puts all three of its variations inside a single generative layer, switched between in the Properties panel. The Timeline cannot animate that — it needs each background to exist as its own separate layer.
So each variation has to be flattened out:
-
Select the variation you want in the Properties panel
Make sure the composite on screen shows exactly what you want in this frame.
-
Create a new empty layer at the top of the stack
This is where the snapshot will land.
-
Go to Image, then Apply Image, and click OK
This copies the entire visible composite onto your new layer as flat pixels.
-
Name the layer and repeat
Switch to the next variation, add another new layer, run Apply Image again.
You end up with one flattened layer per background, each showing the product in a different setting. Delete the generative layers once you have them all, and use the Clone Stamp — press S — to tidy up anything a generation left messy.
Create Animated GIFs in Photoshop: Build the Animation
-
Open Window, then Timeline
Click Create Frame Animation. This is the frame-based mode, not the video timeline.
-
Set the first frame
Make only your first background layer visible.
-
Add a frame for each remaining layer
Click the new-frame icon, then toggle visibility so only the next background shows. Repeat for each.
-
Set the frame duration
Select all frames and set the delay. Around 0.5 to 0.7 seconds works well.
-
Set looping to Forever
The dropdown at the bottom left of the Timeline. Miss this and the GIF plays once and stops.

Getting the timing right
Too fast and the settings blur together without registering. Too slow and people scroll past before the loop completes. Half a second per frame is a good default — long enough to read each background, short enough that five frames cycle in under three seconds.
Press play in the Timeline to preview before exporting.
Export the GIF
-
Go to File, then Export, then Save for Web (Legacy)
This is still the dialog that handles GIF properly.
-
Change the format from JPEG to GIF
Top right of the dialog.
-
Set colors to 256 and the reduction to Perceptual
Perceptual prioritizes colors the eye is most sensitive to and generally gives the best result.
-
Reduce the dimensions
600 x 600 or 750 x 750 is plenty for web use.
-
Check looping is set to Forever
There is a second looping control in this dialog, separate from the Timeline one.
-
Save
Preview it in a browser before using it anywhere.
Keeping the file size down
GIFs get large quickly, and the two things that drive the size are dimensions and frame count. Aim to stay under 1MB for anything going into an email or a web page.
Dimensions have the biggest effect by far — halving the pixel size cuts the file dramatically. Dropping one frame is the next best lever. Reducing the color count helps too, though below 128 colors you start to see banding in smooth gradients, which generated backgrounds tend to have plenty of.
Why This Works So Well for Products
The product itself is never regenerated. It stays exactly as photographed across every frame — same lighting, same detail, same color — while only the environment changes. That is what keeps the animation believable, and it is why this technique suits product work far better than it would suit portraits or scenes where the subject needs to interact with its surroundings.
It also means one good product shot can carry an entire campaign’s worth of settings, which is a meaningful saving when the alternative is building or hiring each set.
Quick Reference: Keys, Menus and Settings
- Isolate the productSelect Subject; L Polygonal Lasso, Alt/Option to subtract, Shift to add, Enter/Return to finish
- Select the backgroundSelect > Inverse, or the inverse button in the contextual task bar
- New backgroundsGenerative Fill: material + display + front view; variations in the Properties panel
- One layer per backgroundNew blank layer, then Image > Apply Image, OK
- Fix a flawS for the Clone Stamp, Alt/Option-click to sample
- FramesWindow > Timeline > Create Frame Animation; plus icon per frame; 0.5 to 0.7 seconds each
- ExportFile > Export > Save for Web (Legacy): GIF, Perceptual, 256 colors, 600 x 600, Looping Forever

Free Downloads
Follow Along on the Same Photo
Get the product photo, the finished animated PSD and the 4-page PDF guide that walks through every stage. Free with a PHLEARN account.
Animated GIFs With AI: Common Questions
Can I make an animated GIF from just one photo?
Yes. Generative Fill builds several new backgrounds behind the product, and the Timeline cycles through them. The product stays exactly as photographed in every frame.
Does my product selection need to be perfect?
No. Generative Fill rebuilds right up to the selection and even made a new base and shadow for the bottle. Clean up obvious mistakes with the Polygonal Lasso, holding Alt/Option to subtract and Shift to add.
Why inverse the selection before Generative Fill?
Generative Fill works on what is selected. After Select > Inverse (or the inverse button in the contextual task bar), everything except the product is selected, so only the background is replaced.
What prompts work for product backgrounds?
Material, then display, then the angle: “white marble display front view”, “rustic wood display front view”, “fresh plants natural rustic display front view”. Click Generate as many times as you like.
Why add “front view” to the prompt?
It tells the AI the product was shot from the front, so it sits on a surface. Without it the AI often assumes a shot from above. If yours was shot from above, type “top view”.
Why can’t I animate my Generative Fill variations?
All the variations live on one generative layer, and the Timeline needs separate layers. For each one, pick it in Properties, add a new blank layer and run Image > Apply Image with the default settings.
How do I turn layers into GIF frames?
Open Window > Timeline and choose Create Frame Animation. Click the plus icon for a new frame, then turn on the next background layer; layer visibility is what changes between frames.
How long should each frame last?
Select every frame with Shift-click and set the delay. At 0.5 seconds the preview felt a little fast, so the tutorial changed every frame to 0.7 through Other.
How do I keep the GIF file size down?
In File > Export > Save for Web (Legacy), set the format to GIF and lower the image size. Five frames went from about 1.2 MB at 800 x 800 to 717 KB at 600 x 600, under the 1 MB target.
Are the sample files free?
Yes, with a free PHLEARN account. You get 1 sample image, 1 sample PSD and 1 PDF guide: the product shot, the finished animated document and a 4-page step-by-step guide.
From the Magazine View all
Stories, interviews and guides for photographers, new every week.
EditingLightCraft vs Lightroom: I Edited the Same RAW Files in BothThe free clone on the same RAW files: what matches, what breaks and who should switch.
InspirationRare Historical Photos: 13 of the Rarest Pictures Ever TakenFrom the earliest surviving picture of a person to the last passenger pigeon: who took each one and why it survives.
EditingArtCraft: Photoshop Cloned by AI in Two Weeks. Is It Legal?ArtCraft cloned Photoshop and Lightroom with AI and gave them away. Any good? Legal? Safe?
Master Photoshop, Lightroom and Photography
Join PHLEARN PRO for $12.99 a month, or $99.99 a year (save 36%). Cancel anytime, with a 30-day money-back guarantee.
