Previous | Next

Working with the Python Console


>>> gimp.image_list()
[<gimp.Image 'img_1444.jpg'>,
 <gimp.Image 'sea-nettle2.jpg'>]
 
>>> img = gimp.image_list()[1]

>>> dir(img)
(lots of output)

>>> layer = img.active_layer

>>> layer.width
1024