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
  Huoin 1060 plus + Ubuntu + Gimp 2.9.x belussi 1 53 Yesterday 22:57
Last Post: ofnuts
Question Gimp will not run (Mavericks) Gunshed 27 7,467 Jan 19, 2018 07:56
Last Post: dhruv
  Gimp will not Start Podoowski 18 4,742 Jan 16, 2018 20:34
Last Post: spiderplant0
  printable art with gimp alin33 1 58 Jan 13, 2018 22:04
Last Post: paynekj
  Gimp 2.8 does not recognize my tablet Uuni 28 25,659 Dec 31, 2017 09:12
Last Post: ythgilb

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS