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
Metadata
Release files for JpegThumbnail 0.1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| JpegThumbnail-0.1.0.0.zip | 3.6 kB | Details |
Release files / JpegThumbnail-0.1.0.0.zip
| Download URL | JpegThumbnail-0.1.0.0.zip |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
05d7bc15712ba75582b5a252772ab2ed82d4986f80ea8916b0a1cfd2046b528d
|
|
BLAKE2b-256 checksum How to use checksums |
8c2b3689842c85f6b3a651a0f6ee37bcddea53624b95dbe78206c7eb08d6889d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |