Side-by-side before and after portraits of a woman with wavy brown hair, freckles, and red lipstick, showing a color grading comparison
  • How to Create a .gif and upload it to Instagram

  • Aaron Nace
    by Aaron Nace
    August 19, 2015
  • Add to
    favorites

Download Assets

This tutorial includes 1 PDF guide. Downloads are free with a PHLEARN account.

  • Download the sample files from every free tutorial on PHLEARN
  • New free tutorials published every week
  • One free account: sign up once, then download anything
Download

Free PDF Guide · 3 Pages

This Tutorial as a Step-by-Step PDF

This guide walks through making a before and after GIF: Image > Apply Image for the after layer, a 1,000 x 1,000 pixel document, Window > Timeline with Make Frames From Layers, 2 second frames set to Forever, Save for Web as GIF, and File > Export > Render Video for Instagram. Use it on any retouch.

Download the PDF Guide · 0.3 MB

description

A looping before and after sells retouching work in a way a single still cannot. This tutorial stamps an “after” snapshot with Apply Image, moves both states into a square document aligned together, builds a two-frame timeline animation set to loop forever, and exports it twice — a GIF for the web and an H.264 video for Instagram.

Create gif

Showing off retouching work often means more than a single finished photo, and a looping before and after is one of the most effective ways to display it. This tutorial builds a before and after from a finished PSD, animates it in Photoshop’s timeline, exports it as both a GIF and a video, and walks through the extra steps needed to get that video onto Instagram.

Creating an “After” Snapshot With Apply Image

Apply Image flattens every visible layer onto a single new layer without merging the original file, which is exactly what’s needed to create a clean “after” snapshot on top of the untouched “before.”

  1. Start With a Finished, Layered Retouch

    Open a finished PSD with all of its retouching layers intact, such as frequency separation, color work, dodging and burning, and sharpening.

  2. Create a New Layer on Top of Everything

    Add a new, empty layer above every existing layer in the document.

  3. Use Apply Image to Flatten a Copy Onto It

    Go to Image > Apply Image, set Layer to Merged, Channel to RGB, Blending to Multiply, and Opacity to 100, then click OK to stamp a flattened copy of everything onto the new layer.

Moving the Before and After Layers Into a New Document

Dragging just the original background layer and the new flattened layer into a fresh square document keeps the before and after isolated from the rest of the retouching layers.

  1. Create a New Square Document

    Press Cmd/Ctrl+N and create a new 1,000 by 1,000 pixel document, a square format that fits Instagram.

  2. Select the Background and Flattened Layers

    Cmd/Ctrl-click to select both the original background layer and the new flattened “after” layer in the source document.

  3. Drag Both Layers Into the New Document

    Click and drag both selected layers from the original document over into the new square document.

Aligning the Before and After Layers Together

Moving and scaling the before and after layers together, rather than one at a time, keeps them perfectly aligned so the animation doesn’t shift position when it switches between them.

  1. Select Both Layers Before Adjusting

    Hold Shift and click to select both layers together before making any position or size changes.

  2. Move or Scale Both Layers Simultaneously

    Press Cmd/Ctrl+T to transform both selected layers at once, resizing or repositioning them identically.

Why Both Layers Must Move Together

Moving or resizing only one of the two layers would cause the image to visibly shift or change size the moment the animation switches between before and after, breaking the illusion of a clean comparison. Keeping both layers selected and transformed together guarantees they stay perfectly registered to each other throughout the animation.

Creating a Frame Animation From the Layers

Photoshop’s Timeline panel can build an animation directly from existing layers, turning the before and after layers into individual frames automatically.

  1. Open the Timeline Panel

    Go to Window > Timeline to open the Timeline panel at the bottom of the screen.

  2. Choose Create Frame Animation

    Click the dropdown in the Timeline panel and choose Create Frame Animation.

  3. Select Both Layers, Then Make Frames From Layers

    With both the before and after layers selected, open the Timeline panel’s menu and choose Make Frames From Layers to turn each layer into its own animation frame.

  4. Delete Any Extra Background Frame

    Delete any leftover extra frame created from a background layer that isn’t needed, leaving just the two before and after frames.

Setting Frame Duration and Looping Forever

Each frame’s duration and the animation’s overall looping setting control how the before and after switch back and forth once exported.

  1. Select Both Frames

    Shift-click to select both frames in the Timeline panel together.

  2. Set Each Frame’s Duration to 2 Seconds

    Click the duration dropdown beneath the frames and choose 2 seconds so each frame displays for that long.

  3. Change Looping From Once to Forever

    Click the looping dropdown, currently set to Once, and change it to Forever so the animation repeats indefinitely.

Exporting the Animation as a GIF

Save for Web exports the finished timeline animation as a looping GIF file suitable for a website or blog.

  1. Open Save for Web

    Go to File > Save for Web, or File > Export > Save for Web in newer versions of Photoshop.

  2. Choose GIF as the Format

    Set the file format option to GIF to preserve the animation.

  3. Confirm Looping Is Set to Forever

    Check that the looping option at the bottom of the dialog is set to Forever, then preview the animation with the play button.

  4. Save the GIF File

    Click Save and choose a location, such as the desktop, to export the finished animated GIF.

Why the GIF and Video Come From the Same Timeline

Building a second animation from scratch for the video export would mean redoing the frame timing and looping settings all over again. Because both the GIF and the video are rendered from the exact same underlying frame animation, all of that setup only has to happen once, no matter how many export formats end up being needed.

Exporting a Video Instead, Since Instagram Doesn’t Accept GIFs

Instagram doesn’t support animated GIFs, so the same frame animation gets rendered out as a video file instead, using the frames and timing already set up.

  1. Go to Render Video

    Go to File > Export > Render Video to open Photoshop’s video export options.

  2. Name the File and Keep Default Settings

    Give the file a name, keep the default H.264 format and the document’s 1,000 by 1,000 pixel size, and click Render.

Getting the Video Onto a Mobile Device to Post

When this video was made, Instagram didn’t accept uploads from a desktop computer, so the rendered video had to be transferred to a phone or tablet before it could be posted.

  1. Email the Video File to Yourself

    Compose an email, attach the rendered video file from the desktop, and send it to an email address that can be checked on a mobile device.

  2. Open the Email and Save the Video

    Check the email on a phone or tablet, then tap and hold the video attachment and choose to save it to the device.

Why Emailing the File Is the Simplest Transfer Method

Instagram’s mobile app only allows posting content that already lives on the device itself, so a video created on a desktop computer has no direct path onto a phone without some kind of transfer step. Emailing the file to an address that’s checked on the phone is a simple, universal way to get it there, since downloading an email attachment works the same way on virtually any device.

Posting the Saved Video to Instagram

With the video saved to the device’s own library, Instagram can load it directly from there like any other photo or video.

  1. Open Instagram and Start a New Post

    Open the Instagram app and tap the button to create a new post.

  2. Select the Saved Video From the Library

    Choose the video that was just downloaded from email out of the device’s photo and video library.

  3. Add a Filter, Caption, and Post

    Apply an optional filter, write a caption, and tap Post to publish the before and after video.

Why This Approach Works

Using Apply Image to flatten a snapshot instead of duplicating and merging the whole file keeps the original layered PSD intact while still capturing a complete “after” state. Building the animation from just two isolated layers in a fresh document, moved and scaled together, is what keeps the before and after perfectly aligned once they start switching back and forth. Exporting both a GIF and a video from the same timeline, rather than building two separate animations, covers both a website and Instagram from a single piece of setup work, since Instagram’s own limitations are the only reason a second export format is needed at all. If a before and after animated GIF is the whole goal, check out the linked Animated Gif tutorial for that process on its own.

Final Thoughts

A looping before and after does more to show off retouching work than a single static image ever could, and once the timeline and export settings are set up, the same workflow can be reused on any finished edit going forward. The extra step of emailing the file to a phone is the one slightly clunky part of the process, but it’s a small price for getting a polished before and after in front of an Instagram audience.

Quick Reference: Keys, Menus and Settings

  • Make the afterNew layer on top, Image > Apply Image: Merged, RGB, Multiply, Opacity 100
  • Square documentCmd/Ctrl + N, 1,000 x 1,000 pixels
  • Move both layersShift-click both, then Cmd/Ctrl + T
  • AnimateWindow > Timeline, Create Frame Animation; panel menu: Make Frames From Layers
  • TimingFrame delay 2 seconds, looping Once to Forever
  • Export a GIFFile > Export > Save for Web: GIF, Looping Forever
  • Export a videoFile > Export > Render Video: H.264, 1,000 x 1,000
Page 1 of the free How to Create a GIF and Upload It to Instagram PDF guide

Free Downloads

Take the Guide With You

Get the PDF guide with every step: the Apply Image after layer, the frame animation, the GIF export, the rendered video and the Instagram post. Free with a PHLEARN account.

Before and After GIFs: Common Questions

How do I make an after layer without flattening my PSD?

Add a new layer on top of everything and go to Image > Apply Image with Layer: Merged, Channel: RGB, Blending: Multiply and Opacity 100. It puts a copy of everything you see on that one layer, and the background layer stays as the before.

What size document works for Instagram?

The video uses a new 1,000 by 1,000 pixel square document (Cmd/Ctrl + N). Cmd/Ctrl-click the before and after layers and drag them into it from the original file.

Why does my before and after jump when it switches?

The two layers were moved or scaled separately. Shift-click both layers before you move them or press Cmd/Ctrl + T, so they keep the same size and position.

How do I turn layers into animation frames?

Open Window > Timeline and choose Create Frame Animation from its dropdown. With both layers selected, choose Make Frames From Layers from the Timeline panel menu, then delete the extra background frame.

How do I make the animation loop?

Shift-click both frames, set the duration under them to 2 seconds, and change the looping option from Once to Forever.

How do I save the animation as a GIF?

Go to File > Export > Save for Web (File > Save for Web in older versions), choose GIF, check that Looping is Forever and click Save. Open the file in a web browser to check that it plays.

Why render a video when I already have a GIF?

Instagram didn’t take animated GIFs, so the same frame animation is rendered as a video with File > Export > Render Video, keeping the default H.264 settings and the 1,000 by 1,000 size.

How do I get the video from my computer to my phone?

Email the file to yourself, open the email on your phone or tablet (an iPad in the video), tap and hold the attachment and choose Save Video. In Instagram, pick it from the library, add a filter and caption, and post.

Is there a free download?

Yes, with a free PHLEARN account. You get 1 PDF guide with the steps from the video, from Apply Image to the Instagram post.

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.

As featured in
  • 500px
  • Adobe
  • Fstoppers
  • HuffPost
  • Inc.
  • PetaPixel