Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I have recently found that in Photoshop there is a script that enables you to export individual images on different layers into distinct png images on disk.

Is it GIMP capable of doing the same thing and how?

I have a sprite sheet (png image) and there are 36 perfectly aligned images in 4 rows (64x64 pixels each). I have to cut and export 36 times.

Can be GIMP of some help here? I don't have Photoshop.

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

You can use Guillotine to slice the image along the guides or take a look at this plugin, which is used to make tiles out of an image - which is what you probably want.

share|improve this answer
    
although not fully automated it does what it does perfectly i.e slices all subimages into distinct gimp windows for export. thanks –  Vlad Jun 10 '13 at 14:04
add comment

I would recommend looking into Python and the Python Imaging Library.

I am developing my first cocos2d game and following guidance from a book, I am using the technique of slicing an image to use as the scrolling background of the game. The author recommends having each slice on a different layer in a image-editing program and exporting them to TexturePacker.

Having spent 10 minutes, with Pixelmator, trying to figure out how to slice and copy each slice, and getting no where, I thought "%?@$ that!" and turned to scripting.

  1. It took 30 seconds to install py27-pil using macports.
  2. It took me 30 minutes to develop a python script and allows an input image to be sliced into n-pieces (and I am no Python expert).
  3. It takes 3 seconds to run the script (the input is 2048x1534).

Here's a link to the script, if anyone's interested.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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