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
Wink GIMP dialog boxes take forever to load! LugwigVanBacon 1 43 Aug 20, 2018 20:08
Last Post: paynekj
  free online Gradient Generator for GIMP and inkscape released on github healingdrawing 1 89 Aug 8, 2018 09:00
Last Post: paynekj
  gimp 2.8.6 very slow to open files millsware 14 3,506 Aug 8, 2018 05:46
Last Post: paynekj
  Can't copy python script to Gimp plugin folder Alan Lacey 1 144 Aug 5, 2018 15:54
Last Post: paynekj
  How to add shininess to car textures in Gimp? sprotz 1 126 Aug 3, 2018 12:48
Last Post: paynekj

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS