mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-10 00:20:57 +03:00
* DPI is a tuple * Some EXIF only contains an X resolution for DPI * Refactor * Test with no DPI in EXIF * Handle EXIF with no DPI * Created with: exiftool "-*resolution*"= photoshop-200dpi.jpg * Test when not in EXIF, DPI==72,72 * Use X resolution for Y, default to 72,72 dpi * Created with: exiftool -exif:ResolutionUnit=cm photoshop-200dpi.jpg * Test for EXIF with dpcm instead of dpi * Convert dpcm to dpi, and default to inches if unit unknown
11 KiB
11 KiB
![](/python-pillow/Pillow/raw/commit/f39ca5db5a39c2c82e62fbee1ebf95d5b61bdfba/Tests/images/no-dpi-in-exif.jpg)