Post Reply 

Can the GIMP break apart a icon sheet?

Jan 19, 2011, 06:55 (This post was last modified: Jan 19, 2011 06:56 by SeanEBlog.)
Post: #1
Can the GIMP break apart a icon sheet?
Now here is the sheet in question.
[Image: muchbetter.png]

Now I've already manually broken apart this image into 256 icons, but that was considerably time consuming. (I also did this with a second sheet with just as many icons.) Now I heard that the GIMP could do this automatically for me. If that is true, then I would like to also now the following.

1: Will png transparency be preserved?
2: Will I be forced to use a base 10 naming convention? Or can I name the rows and columns?
(As in scrollAquamarineRed.png, scrollRedSliver.png, scrollGreenBurgundy etc, etc.)
3: Will I get a copyable text list of all the files generated?

Also no, I didn't know name every scroll, I used a hexadecimal naming convention.
Find all posts by this user
Quote this message in a reply
Jan 24, 2011, 02:46
Post: #2
RE: Can the GIMP break apart a icon sheet?
Sorry for taking so long to respond, but thank you for directing me to ImageMagick. It does exactly what I need it do. I've done some playing around and I think I've got all the commands I need to work this.

For decimal output
convert INPUT.png -crop 32x32! OUTPUT%03d.png

For Hexadecimal output
convert INPUT.png -crop 32x32! OUTPUT%02x.png

For changing Directory in MS DOS Prompt
Type cd

For change drive in MS DOS Prompt
Type Drive letter then a colon (E:)

For getting a copyable list.
Type DIR when in output directory, right click and select mark, highlight desired data, hit enter, copy data into notepad.
Find all posts by this user
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Gimp 2.10.8 error coyote 2 150 Nov 12, 2018 13:49
Last Post: coyote
  \Data\.gimp\backups\.goutputstream-XXXXXX Files DoughyInTheMiddle 1 165 Nov 10, 2018 10:01
Last Post: paynekj
  Is there a way to open a blank Gimp page? 00darkfox00 3 1,887 Oct 31, 2018 09:40
Last Post: paynekj
  How to change the weight of a font in gimp? adrianh 3 796 Oct 4, 2018 16:40
Last Post: paynekj
  Gradient Tool in GIMP 2.10 mrg4541 1 644 Oct 1, 2018 21:18
Last Post: paynekj

Forum Jump:

GIMP ForumPortalArchiveContactTermsRSS