Skip to content

Instantly share code, notes, and snippets.

@flufy3d
Created November 23, 2012 02:48
Show Gist options
  • Save flufy3d/4133806 to your computer and use it in GitHub Desktop.
Save flufy3d/4133806 to your computer and use it in GitHub Desktop.
gimp tips for read the layers offset
>>> gimp.image_list()[0]
<gimp.Image '无标题'>
>>> gimp.image_list()[0].active_layer
<gimp.Layer 'aaa0002.png'>
>>> gimp.image_list()[0].active_layer.width
276
>>> gimp.image_list()[0].active_layer.height
269
>>> gimp.image_list()[0].active_layer.offset
<built-in method offset of gimp.Layer object at 0x02689C30>
>>> gimp.image_list()[0].active_layer.offsets
(309, 193)
>>> gimp.image_list()[0].width
960
>>> gimp.image_list()[0].height
540
@flufy3d
Copy link
Author

flufy3d commented Nov 23, 2012

gimp create sprite sheet
http://registry.gimp.org/node/27513

@flufy3d
Copy link
Author

flufy3d commented Nov 23, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment