File: blob.py

package info (click to toggle)
python-pgmagick 0.7.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,132 kB
  • sloc: cpp: 3,672; python: 2,082; makefile: 160; sh: 40
file content (8 lines) | stat: -rw-r--r-- 205 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
from pgmagick import Blob, Image, Color, Geometry

blob = Blob(open('example.png').read())
#print dir(blob)
#print len(blob.data)
#print blob.length()
img = Image(blob)
img.write('from_blob_to_image.png')