Panning and Zooming with After Effects 5.5
July 21st, 2006 by Posted in After Effects, Video and Audio
—preparation— The first step in making your still image move is to get the image into a digital format that can be imported into After Effects. There are various ways to do this. Personally, I have always preferred to have the client give me the actual photograph so that I can scan it myself and have complete control over the size of the imported image. Regardless of the way you get your images onto your computer, there are a few precautions that you must take. Size: Another worry is the quality of the image itself. Are there rips? Cracks? Dirt spots? After your image is scanned at a large size, every little blemish will magnified. It is of course possible to repair your image, but if the repair is in an area with a lot of detail it will take lots of time and you will need to make a decision as to if it is worth it or not. I have had good results with quickly repairing images that have large cracks or rips in a generally bland area. Image Dimensions: Sometimes certain movements are difficult to do with the photograph provided. For example, if you have a very tall and skinny image, you could do an upward tilt on the image, but zooming out of the image will reveal black bars on the sides of the screen. The same thing applies to very wide images that are not very tall. This may not be a problem depending on what are you looking for, but it is something to look out for. I will discuss this more in the real world examples below: —basic theory—
—real world examples—
Article Focus:
Pan and Zoom. In this tutorial, Matt Dallos will cover the preparation of your images, the basic theory behind making them move, real world examples, and a few ideas about how this effect can be extended to other and more advanced applications.
No Movie
Project files (includes footage)
Download Stuffit Expander for Windows
At one point in your career it is likely that you will be asked to animate a simple pan or zoom across a still photograph for a documentary or commercial. Even the most basic movement can transform still images from boring to intriguing.
The size of your pictures is directly linked to how much you will be able to scale and pan within them. It is very difficult to say exactly what size to make your images because it varies depending on the image and the movement desired. I always attempt to import my images at as large of a size as I possibly can. I would rather shrink an image that was too big than ask the client to send me the images again because I scanned them at a size that was not large enough. A good way to test if an image is large enough is to open it in Adobe Photoshop and change the select tool option to create a selection that is 720 x 540 (image 1) (or whatever your composition size is) and then move the selection around. Make sure to have the marquee tool (image 2) active while moving around the selection. Also keep in mind that to get movement equal to one screen size your image will need to be twice the size of the screen (image 3)
image 1:
![]()
image 2:

image 3:

Quality:


The actual file format (.psd, .jpg, .bmp) is not important. I have worked with a wide variety of differing formats and have had no problems. Just make sure that you are not working with a file that was heavily compressed for the web or for storage. A few good examples of images not to use are the ones included in the coming up examples. They are extremely “blocky” and would look terrible on a broadcast monitor. They were compressed for faster downloads.
The basic idea behind panning and zooming still images is to create two different framings of your pictures picture and then allow After Effects to interpret the motion between them. Making still images move is no more difficult than animating a simple box across the screen, because when you break it down, the picture acts exactly the same within the program. Check out the three real world examples below for detailed instructions.
Panning across an Image:
In this example we will take the given picture and have it pan across the screen.
Zooming into an Image:
Pan and Zoom:
In this example we will zoom out of an image while we pan across it.

- Reframe the image by adjusting the anchor point value of your keyframe at seconds. I used values of 816.5 for X and 558 for Y.
- Select both sets of keyframes and turn them into easy ease keyframes, as was mentioned in example #1.
- If you preview the animation at this point, you will see a nice zoom out of the photograph, but if you look closely there is something a little off. The motion that the image takes seems to have a slight arch to it. This example illustrates it fairly well by looking at the distance between the edge of the composition and my friend’s head. The edge of his head goes off the screen and then comes back on.
- Many will not notice this, and if you do not care, feel free to stop here. But if you feel you would like to remove that odd-looking movement, read on.
The odd movement is caused when there is a large difference between the rate of change for the scale property and the rate of change for the anchor point property. The only workaround I have found for this is to adjust the curve for the anchor point value. I know that is sounds scary and really hard, but trust me when I say it really isn’t too bad.
- Press A on your keyboard so that only the anchor point value is showing. Click the arrow that is next to the stopwatch by the anchor point property. This will twirl down the curve menu.

- Select the first of the two anchor point key frames. From the beginning of the curve, a little horizontal line with a circle at the end will appear.

- Click and drag this circle until the bulge of the curve is closer to the second third of space between the two keyframes; this is what mine looks like:

- If you are again preview the animation, you should see a difference. If you still see the odd movement, you should go back and readjust the curve again.
|
—real world issues— |
Very Small Image:
Sometimes a client will want you to have a small image move and it will simply be impossible. There is no way to make images that are smaller than your composition size move at all unless you are willing to sacrifice image quality by scaling the image past 100%. This can be done but you will encounter severe reduction in the quality of your image. If there is no other option than to do this, there are a few ways to try to still use the image.
- Scale your image to the desired size and then perform your wanted motion. Precompose the layer and then apply Chris and Trish Meyer’s “instant sex” recipe that involves:
- Duplicating the composition
- Blurring the top composition
- Changing the transfer mode of the top composition to multiply, screen or overlay. This will cover up some of the artifacts that occurred when you the image was scaled above 100%.
- Try framing the image in a smaller window.
- Apply your motion to your image in a smaller composition such as 500X400 and then place that smaller composition within a larger one. This project file has an example of this (open file frame.aep)
Neither of these will produce perfect or amazing results, but if you are in a pinch, they are better than nothing at all.
Image Dimensions:
If you need to create movement of an image that is very tall and skinny or very wide and not tall, try to soften the edges of the image. This creates a much softer transition from the image to your background. An easy way to do this is to open your image in Photoshop and soften the edges using a matte. Softening the edge provides a more professional look over having your picture just suddenly end.
|
—extending the concept— |
I hope that you have learned something from completing this tutorial. With this same process you can create a large variety of effects. There are endless possibilities. If you have a very large map you can put the map in its own very large composition and then import that composition into a standard sized composition and you would be able to pan over the map. On top of that you could go into the map composition and animate a certain road or path as the map pans across the screen. If there is any interest, I will also write a tutorial on this effect. Other applications may include creating animated flow charts or panning across a large video collage.


























