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
  How to Install Gimp 2.10 FRESH Dave S 1 106 May 18, 2018 07:14
Last Post: paynekj
  GIMP 2.8.18 on MacOS Sierra freezes on export yroeht 2 71 May 17, 2018 20:24
Last Post: paynekj
  gimp not detecting new tablet nightbirds 1 91 May 14, 2018 21:03
Last Post: paynekj
  Toolbox and layers do not close on exiting GIMP Acharn 1 121 May 6, 2018 20:04
Last Post: paynekj
  GIMP 2.10 mathmap.exe error while starting bluejedi 1 261 Apr 30, 2018 11:06
Last Post: paynekj

Forum Jump:

GIMP ForumPortalArchiveContactTermsRSS