Tested News

How To Make Your Own Cinemagraphs: A New Take on GIFs

Those ancient animated images are receiving a new lease on life, thanks to a little something called cinemagraphs.

We hate to break it to you, but it doesn't look as if GIFs are disappearing anytime soon. Those ancient animated images — once limited to   gaudy "under construction" signs and chain-mail fodder — are receiving a new lease on life as of late, thanks to a little something called  cinemagraphs.

This is actually just a fancy name for an animated GIF, but specially designed with a purposeful artistic goal. One photographer, Fernando J Baez, describes the technique as "more than a photo, but not quite a video." The intent is to augment, or draw attention to, certain aspects of an image through localized animation — for example, a breeze blowing through a subject's hair — and masking the remainder of the animation to appear static. It's by no means a new phenomena, but the technique is a little more involved than creating your average meme-worthy GIF, and can produce some incredibly cool results.

One of Jamie Beck's animated photographs, otherwise called a cinemagraph.
One of Jamie Beck's animated photographs, otherwise called a cinemagraph.
For this to work, you'll need to acquire a copy of Photoshop. That's because Adobe's powerful image manipulation software actually allows us to edit more than just images — there's support for certain video formats too, which is what we'll be using to create our final image. Sound good? Let's get started.

You'll want to find a video or scene that has a good, subtle animation to it — something that can be successfully isolated from the rest of a shot. Anything with too much motion can be complicated to mask, so try to keep things simple. Vimeo is the best place to go looking for beautifully shot, high-quality videos, so we're going to start there, though you can also shoot your own! For this example, we've used a short video of people on an escalator, which should be easy to mask and loop. 

First, take your video video into Photoshop, and make sure the Motion workspace is active (found under Window > Workspace). This will give us a simple timeline. Using the blue guides to the left and right of the timeline, select a 1-2 second segment that will form the basis of your cinemagraph. You don't need to be exact, since we can trim some of those extra frames in the next step.

Once you've selected your segment, we're going to export the selection as a new movie. Choose FIle > Export > Render Video, and accept the default settings. Now, close your document, and choose File > Import > Video Frames to Layers, selecting the video file you just exported. This will import each frame as a new layer, which is crucial for the masking process. 

In our sample video, there's lots of motion, with people moving up and down the various escalators —except for one. This escalator is empty, and thus, perfect for animating, while freezing the rest of the busy people pictured in this scene. In the Layers palette, the first layer is going to serve as our animation's anchor frame. With the first layer selected, ensure that "Unify Layer Visibility" is activated. This ensures our static anchor frame will repeat itself in each successive frame.

 
Now, the fun part — and also the most time consuming. Select the second layer/frame. Using the marquee tool, or any other selection tool of choice, create a layer mask around the area of motion you'd like to retain. Repeat the process for each frame that follows. You can preview your progress at any time using the motion timeline. If all goes well, you should see a static image, with only the masked areas exhibiting any sign of motion.

Depending on the framerate of your source material, the animation might not be as smooth as you'd like. This can be fixed by selecting every frame in the timeline, right-clicking, and and choosing a new delay value. Try experimenting with different settings to see what works best. Also, you might find that your chosen subject or animation doesn't loop all that smoothly. In some cases, it's a simple matter of copy/pasting all your frames to the end of the timeline, and choosing Reverse Frames from the timeline bar's options menu. This won't work in all instances, however, and could actually produce a robotic/mechanical repetition effect — not exactly the artistic effect we're looking for here. 

When that's done, click File > Save for Web & Devices. Make sure that GIF is your selected export format. You an even preview the final image if you'd like. Fernando J Baez recommends running your image through a cross-processing or duo-tone filter, which limits the number of colors in your image to take advantage of the GIF format's shortcomings. Jamie Beck also has a few tips on optimizing the size and color you can get from your final image too. You can try both and see what looks best, though it's not exactly mandatory. 

The result should be something similar to our final product, but we hope you can produce something much more impressive! Just be sure to share your results and tips below.

Edit: Tested forum moderator Rallier has a few good tips in the comments on downloading and importing videos that can't be downloaded freely, including those from YouTube and other video sites. He's also produced a much smoother version of the final escalator image, which you can check out here!
norman staff on May 2, 2011 at 8:56 a.m.
animated version of the lead image here: 
http://media.tested.com/uploads/0/5/23980-beck_cinemagraph.gif
Shepson May 2, 2011 at 9:03 a.m.
@norman: I hope I'm not the only one who tried to see the animation in well, the non-animated one.
sherpajoshon May 2, 2011 at 9:04 a.m.
I f we don't, remember me is a great tumblr that does this with scenes from movies.
DaveVoyleson May 2, 2011 at 9:04 a.m.
Awesome work Matt!
Rallier moderator on May 2, 2011 at 9:04 a.m.
I'll give it a go later on this evening.  The "problem" is the file size which limits its use quite a bit. The example gif while looking great is 480kb and of rather small size. 

To integrate the effect in a website some clever absolute CSS positioning is needed placing the the animated zone over the images. Tedious but it should work without crippling the user's Internet connection. 
Niall_Sg1on May 2, 2011 at 9:11 a.m.
@sheps:

Same, I saw these a while ago..now I see animation in pictures that aren't animated :P
spartanman1222on May 2, 2011 at 9:16 a.m.
i like it.
dragon May 2, 2011 at 9:38 a.m.
Lotta farts around these gifs.
AlexW00don May 2, 2011 at 10:09 a.m.
@norman said:
" animated version of the lead image here: 
http://media.tested.com/uploads/0/5/23980-beck_cinemagraph.gif "
That's a super creepy image because her face doesn't move.
MordeaniisChaoson May 2, 2011 at 10:30 a.m.
This is how wizards do it.
HoffmanMysteron May 2, 2011 at 10:43 a.m.
Does anyone else find these to be really REALLY creepy and weird?  All the images at the site linked at the top of the article look really freaky.  Having those women sitting completely still and just their legs or hair moving is bizarre.  They look like animatronics, not real people.

That being said, the write-up is great and this is a very interesting technique.  Thanks for this, Matt.
AHRon May 2, 2011 at 11:07 a.m.
creepy!
ProjektGillon May 2, 2011 at 11:25 a.m.
Great article Matt. I remember seeing these online a couple days ago and being blown away. In particular by one of a man sitting on a bench flipping through a paper while the world stood still. Thanks for making this guide.
Whiskeyjackon May 2, 2011 at 11:39 a.m.
More fun ones in a Photography Blogger post, including the header image.
datarezon May 2, 2011 at 1:36 p.m.
Wow, really cool.  A new point and shoot that did this automatically would get me to finally buy a new point and shoot.  That and a picture frame that worked with it too.
LazyManon May 2, 2011 at 2:29 p.m.
it kind of reminds me of those old "3D" baseball, and marvel cards you could get. where you would have to tilt the card to see the action. Anyone else remember those?
just google image search "holoblast cards"

i have zero interest in seeing this style of gifs on the normal internets, but it might be awesome for compressed sites on mobile devices >.>
Sweepon May 2, 2011 at 3:03 p.m.
I make my gifs the old fashioned way, with dozens of painstaking screenshots from stupid internet videos, and I maintain that they are WAY CLASSY

Droopon May 2, 2011 at 3:22 p.m.
@Sweep said:
" I make my gifs the old fashioned way, with dozens of painstaking screenshots from stupid internet videos, and I maintain that they are WAY CLASSY
This: A hundred times this.
Rallier moderator on May 2, 2011 at 3:57 p.m.
I went through the tutorial and there are some things that might need a bit of clarification and some other things that could be done a bit different

First of you'll need a way to actually save the file on your computer if you are getting it from a site like Vimeo. I used Youtube Downloader which i feel is the easiest way  but you can do it via other means.

Once the video downloaded it might be that you do not have the correct codecs needed to import them into Photoshop which was my case. It asked me for at least Quicktime 7,1. Now i really dislike the way Quicktime works so I ended up downloading the trusty no nonsense QT Lite. A codec pack I supposed would have sufficed but i knew that QT lite would do the trick. 

A thing i did completely different was adding a "still" layer on top of the video before doing import>video frames to layers. Doing it this way makes it so you do not have to add the mask to each individual frame saving you a lot of time. You might not be able to do it this way every-time but for the escalator example where the "moving part" is not moving on the images you can. 

 This actually is fun
 This actually is fun
Afterwards i slowed it all down a bit from 0,04 to 0,06sec per image and saved it in a 32 colour (well black and white) GIF file that with 18 or so frames still ended up being 214Kb at a 340x600px. I should probably be able to reduce the filesize some more without sacrificing too much of the image quality though. 

A very very silly but essential final thing to pay attention to is to select loop forever when saving it as a gif file. 

                
mracoon_on May 2, 2011 at 5:02 p.m.
@Rallier: You're one's much smoother than Matt's and it doesn't do that jittery thing either.

This is quite a cool concept. The first image is quite creepy.
How To Rip DVDs to Play on Any Device—For Free!

Our ultimate DVD copying guide shows you how to use Handbrake to rip discs for playback on your laptop, Xbox, PS3, iPhone, Zune, netbook, iPad, PSP, iPod, and pretty much anything else

Tested: Apple Mac OS X Lion

The $30 upgrade from Snow Leopard seems like a no-brainer, but that's not the full story. Read the official Tested review.

Apple iPad 2 Review

Our definitive review of the iPad 2.

Tested: Nvidia GeForce GTX 580 Video Card

The green machine comes back swinging.

Apple iPad Wi-Fi Review

Apple's device isn't magical, but it is going to make the tablet a real category--for better or for worse

Video: How To Build the Best $1500 Gaming PC, Step-by-Step

Do you like saving money? What about playing PC games? Have you ever considered building your own PC? We show you exactly what you need to know to build an awesome $1500 gaming PC.

How To Build an Awesome $500 Windows Home Server

We pick the best parts to build a lean media backup and streaming machine.

The Best Android Phone for Your Network (February 2011)

Don't get locked in with the wrong phone.

Why I’ve Switched from Browser-Based Apps Back to Native Software on the Desktop

Moving from powerful, native Desktop clients to clunky web-apps isn’t always a good thing. In fact, it’s often a significant step backwards.

Qualcomm's Snapdragon S4 Integrates LTE, Tops Benchmarks

Qualcomm's latest Snapdragon SoC outperforms 2011's fastest chips by a wide margin and integrates LTE processing in the name of battery efficiency.

Ivy Bridge Chip Delay to Summer Gives Apple a Shot at Early Access

As PC makers hold onto new models in the summer months before Windows 8's launch, Apple will have plenty of time to launch new laptops with new processors.

Nokia Teases "Pure View" Camera, Which Hopefully Isn't Just More Megapixels [Video]

Nokia's next phone could mark the return of the Xenon flash, a large image sensor, or high quality 1080p video recording.

Future SSDs May Suffer from Speed and Reliability Issues

Researchers at the University of California, San Diego project doubled latency and tripled bit errors in SSDs as storage increases.

Purported 2048x1536 iPad 3 Display Spotted--Now Who's Making It?

A quad-pixel iPad display in the flesh, but it is unlikely that Sharp will manufacture it.

How Windows 8 Will Integrate SkyDrive for Cloud Storage and Remote PC Access

SkyDrive's omnipresence in Windows 8 extends from the profile to Metro apps to the legacy desktop.

Major Changes to Flickr to Begin Rolling Out February 28th

The Photo View and Upload pages are getting much-needed redesigns, which Flickr needs to stop the user bleed.

What Kind of Computer User Needs a High-End 17-inch Laptop?

According to Loyd, there exist three key uses that necessitate a high-end 17-inch laptop.

Why I’ve Switched from Browser-Based Apps Back to Native Software on the Desktop

Moving from powerful, native Desktop clients to clunky web-apps isn’t always a good thing. In fact, it’s often a significant step backwards.

Future SSDs May Suffer from Speed and Reliability Issues

Researchers at the University of California, San Diego project doubled latency and tripled bit errors in SSDs as storage increases.

Comcast Announces Its Netflix Rival: Xfinity Streampix

The streaming video service is launching this Thursday for existing Comcast subscribers.

Tested: The New and Improved Swype Beta on Android 4.0

After acquiring Swype, Nuance had updated the app for Android 4.0 and added some new features.

Everything You Need to Know About Ubuntu for Android

Linux gets more Linux-y when Android gets mashed up with Ubuntu.

Purported 2048x1536 iPad 3 Display Spotted--Now Who's Making It?

A quad-pixel iPad display in the flesh, but it is unlikely that Sharp will manufacture it.

Siri On OS X: Will Most Users Even Care?

One notable feature missing from the upcoming Mountain Lion release of OS X is Apple's Siri.

Submissions can take several hours to be approved.

Save ChangesCancel