This is a guide on how to make an animated gif in Photoshop cs5. First, you will need to create a new document and name it “gifs”. Then, you will need to create a new layer and name it “gifsLayer”. Next, you will need to add the following code into your gifsLayer: #include <stdio.h> #include <string.h> #include <png.h> ///////////////////////////////////////////////////////////////////////////////// // GIFS LAYER ///////////////////////////////////////////////////////////////////////////////// // function that creates an image from scratch void CreateGif(int width, int height) { PngImage img = new PngImage(); img.width = width; img.height = height; img.load(new FileReader(“images/gifs/” + strlen(filename)+"."+strlen(ext))); } // function that converts an image into a gif void ConvertGifToGif() { PngImage img = new PngImage(); img.width = width; img.height = height; if (!img.readAsDataURL()) { printf(“Can’t read GIF file %s “, filename); return; } GifWriter writer = new GifWriter(); writer.write(img); writer.flush(); return; } // function that creates an animated gif using the provided code void CreateAnimatedGif() { GifWriter writer = new GifWriter(); writer.write(ConvertGifToGif()); writer.flush(); animator->CreateAnimation(&writer); }