Skip to content

Instantly share code, notes, and snippets.

@agrif
Created September 5, 2012 01:06
Show Gist options
  • Save agrif/3628733 to your computer and use it in GitHub Desktop.
Save agrif/3628733 to your computer and use it in GitHub Desktop.
agrif@anduril:~/devel/experiments/oil$ python
Python 2.6.6 (r266:84292, May 28 2011, 19:49:25)
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import OIL
>>> i = OIL.Image.load("input.png")
>>> i
<Image object at 0x1004100d8>
>>> i.get_size()
(800, 600)
>>> i.save("test_output.png")
>>>
agrif@anduril:~/devel/experiments/oil$ file test_output.png
test_output.png: PNG image, 800 x 600, 8-bit/color RGBA, non-interlaced
agrif@anduril:~/devel/experiments/oil$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment