How standard libraries read JPEG files
| File | The manifest says | Go image/jpeg adapter |
Java javax.imageio adapter |
Node.js The standard library has no image decoder. |
Python The standard library has no image decoder. tkinter.PhotoImage is outside the scope rule (docs/07 section 8). |
Ruby The standard library has no image decoder. |
|---|---|---|---|---|---|---|
edge/jpg-truncated-50pct.jpg 7.5 KB (7,496 bytes)
edge file: a reader may refuse it or recover what it can |
nothing to compare |
refuses with jpeg.FormatError: invalid JPEG format: short Huffman data |
reads reports frames 1, height 480, width 640 |
no-reader | no-reader | no-reader |
jpg/100x100.jpg 4.6 KB (4,615 bytes)
|
frames 1, height 100, width 100 |
reads reports height 100, width 100 |
reads reports frames 1, height 100, width 100 |
no-reader | no-reader | no-reader |
jpg/10mb.jpg 10 MB (10,006,097 bytes)
|
frames 1, height 4035, width 1024 |
reads reports height 4035, width 1024 |
reads reports frames 1, height 4035, width 1024 |
no-reader | no-reader | no-reader |
jpg/1920x1080.jpg 56.8 KB (56,817 bytes)
|
frames 1, height 1080, width 1920 |
reads reports height 1080, width 1920 |
reads reports frames 1, height 1080, width 1920 |
no-reader | no-reader | no-reader |
jpg/1mb.jpg 991.4 KB (991,379 bytes)
|
frames 1, height 400, width 1024 |
reads reports height 400, width 1024 |
reads reports frames 1, height 400, width 1024 |
no-reader | no-reader | no-reader |
jpg/4000x3000.jpg 279.2 KB (279,204 bytes)
|
frames 1, height 3000, width 4000 |
reads reports height 3000, width 4000 |
reads reports frames 1, height 3000, width 4000 |
no-reader | no-reader | no-reader |
jpg/640x480.jpg 15 KB (14,992 bytes)
|
frames 1, height 480, width 640 |
reads reports height 480, width 640 |
reads reports frames 1, height 480, width 640 |
no-reader | no-reader | no-reader |
jpg/cmyk-640x640.jpg 25.3 KB (25,267 bytes)
|
frames 1, height 640, width 640 |
refuses with jpeg.UnsupportedError: unsupported JPEG feature: luma/chroma subsampling ratio |
8 refuses with javax.imageio.IIOException: Unsupported Image Type 11 to 27 reads reports frames 1, height 640, width 640 |
no-reader | no-reader | no-reader |
jpg/exif-gps-640x480.jpg 15.5 KB (15,547 bytes)
|
frames 1, height 480, width 640 |
reads reports height 480, width 640 |
reads reports frames 1, height 480, width 640 |
no-reader | no-reader | no-reader |
jpg/exif-orientation-1-640x480.jpg 16.7 KB (16,749 bytes)
|
frames 1, height 480, width 640 |
reads reports height 480, width 640 |
reads reports frames 1, height 480, width 640 |
no-reader | no-reader | no-reader |
jpg/exif-orientation-3-640x480.jpg 16.9 KB (16,883 bytes)
|
frames 1, height 480, width 640 |
reads reports height 480, width 640 |
reads reports frames 1, height 480, width 640 |
no-reader | no-reader | no-reader |
jpg/exif-orientation-6-640x480.jpg 16 KB (16,048 bytes)
|
frames 1, height 640, width 480 |
reads reports height 640, width 480 |
reads reports frames 1, height 640, width 480 |
no-reader | no-reader | no-reader |
jpg/exif-orientation-8-640x480.jpg 16 KB (16,011 bytes)
|
frames 1, height 640, width 480 |
reads reports height 640, width 480 |
reads reports frames 1, height 640, width 480 |
no-reader | no-reader | no-reader |
jpg/grayscale-640x480.jpg 10.7 KB (10,749 bytes)
|
frames 1, height 480, width 640 |
reads reports height 480, width 640 |
reads reports frames 1, height 480, width 640 |
no-reader | no-reader | no-reader |
jpg/progressive-1920x1080.jpg 31 KB (30,994 bytes)
|
frames 1, height 1080, width 1920 |
reads reports height 1080, width 1920 |
reads reports frames 1, height 1080, width 1920 |
no-reader | no-reader | no-reader |
jpg/quality-10-640x480.jpg 7.7 KB (7,664 bytes)
|
frames 1, height 480, width 640 |
reads reports height 480, width 640 |
reads reports frames 1, height 480, width 640 |
no-reader | no-reader | no-reader |
The JPEG files themselves, and the measured properties each row is compared with: JPEG sample files.