JpegThumbnail 0.1.0.0
simple and fast JPEG thumbnail reader
simple and fast JPEG thumbnail reader
Requirements
- Python Imaging Library
Features
- supports EXIF thumbnail
- supports Adobe Photoshop thumbnail
- import a partial JPEG data
An example
from cStringIO import StringIO
import Image
import JpegThumbnail
try:
thumbnail = JpegThumbnail.read(filelikeobject or filename)
except JpegThumbnail.error:
"parse error"
except IOError:
"open or read error"
else:
im = Image.open(StringIO(thumbnail))
im.show()
Notes
- In most case, JPEG thumbnail size is about 100 pixel.
- In most case, thumbnail is found in early 10KiB of file data. In bad case, it's found in ealry 100KiB.
History
0.1.0.0
- first release
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| JpegThumbnail-0.1.0.0.zip (md5) | Source | 2009-09-24 | 3KB | 563 | |
- Author: chrono-meter@gmx.net
- Home Page: http://pypi.python.org/pypi/JpegThumbnail
- License: PSF
- Platform: independent
- Categories
- Package Index Owner: chronometer
- DOAP record: JpegThumbnail-0.1.0.0.xml
