Skip to content

Commit

Permalink
test_exif: add example provided by @mexthecat
Browse files Browse the repository at this point in the history
  • Loading branch information
kba committed Sep 30, 2024
1 parent 4d25fcf commit bdfb410
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/model/test_exif.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
1457, 2084, 1, 1, 1, 'inches', 'RGB', None),
# tolerate multi-frame TIFF:
('gutachten/data/IMG/IMG_1.tif',
2088, 2634, 300, 300, 300, 'inches', 'RGB', 'raw')
2088, 2634, 300, 300, 300, 'inches', 'RGB', 'raw'),
# multi-frame TIFF with metric pixel density (is actually YCBCR not RGB but Pillow thinks otherwise...)
('indian-ferns/data/OCR-D-IMG/0004.tif',
2626, 3620, 28, 28, 28, 'cm', 'RGB', 'jpeg'),
])
def test_ocrd_exif(path, width, height, xResolution, yResolution, resolution, resolutionUnit, photometricInterpretation, compression):
"""Check EXIF attributes for different input formats
Expand Down

0 comments on commit bdfb410

Please sign in to comment.