File: test-example-py2

package info (click to toggle)
pypng 0.0.19%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 568 kB
  • sloc: python: 4,371; sh: 126; makefile: 5
file content (10 lines) | stat: -rwxr-xr-x 220 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env python2

import png
import os.path

png.from_array([[255, 0, 0, 255],
                [0, 255, 255, 0]], 'L').save("small_smiley.png")

if not os.path.exists("small_smiley.png"):
    raise("missing file")