Created
September 5, 2012 01:06
-
-
Save agrif/3628733 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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