I have an animation that I have exported to gif, works perfect and all, but it is for a game and therefore I need to create a spritesheet for display. Also, I may be creating other animations for the spritesheet, the current animation is a character running maybe adding jumping, etc.

First off, is there an easy way to export an animation to a spritesheet? Secondly, what about adding other animations, I can do the cut and paste manually but is there an easier way?

  • 1
    Photoshop is scriptable using javascript, vbscript, and/or applscript, so if you are familiar with programming you might be able to put together your own. For intance: do what alan G suggests to create layers, and then iterate through the layers, copying each in turn, changing canvas size of secondary document as needed, and pasting/positioning the sprite layer. – horatio Jul 1 '11 at 19:24
  • you also might be able to manipulate the built-in contact sheet script(s) to take a folder of images and create the sprite sheet. – horatio Jul 1 '11 at 19:26
  • Not built-in any more, sadly. I think they disappeared in CS4. I couldn't think of anything in the Output module that would be useful for this purpose. Scripting would be the cool way to go, I'm guessing. – Alan Gilbertson Jul 1 '11 at 22:21
  • I'll give the scripting a shot, I'm using CS3 so it should be possible? – anothershrubery Jul 11 '11 at 13:44

Realize this post is old, but it had half of what I needed. To anyone that runs across this, another good tool is TexturePacker - http://www.codeandweb.com/texturepacker Its pretty good, lots of options.


In the animation panel flyout menu, choose the (somewhat misleading, imho) "Flatten Frames into Layers." That will give you a layer for each frame.

Export the layers using File > Scripts > Export Layers to Files.

  • It's been a while but eventually got around to looking into this. This doesn't do what I want. I already have all of the seperate frames in seperate files. I want them all in one big spritesheet file. – anothershrubery Jul 11 '11 at 13:44
  • Ah, you want to IMport to a sprite sheet! Try this: spritetool.codeplex.com, which is free and has an entire tutorial on the subject in addition to the utility to create the sprite sheet. If that doesn't work, Google "sprite sheet creator" and pick one. There are lots out there. – Alan Gilbertson Jul 11 '11 at 20:49

This is what I would do:

  1. Image > Canvas Size - Height (unchanged), Width 1600px (or however big you need)
  2. Select Move Tool (v)
  3. Hold shift to lock the y-axis and drag each layer sideways to create a sprite sheet.
  4. Layer > Merge Visible
  5. Save and enjoy
  • Thanks for the contribution and welcome to GraphicDesign! Let us know if you have any questions – Zach Saucier Feb 16 '16 at 2:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.