Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
python-pillow
Pillow
Repository navigation
Code
Issues
68
(68)
Pull requests
71
(71)
Discussions
Actions
Projects
Wiki
Security and quality
61
(61)
Insights
More
items
DPI is a tuple
- #2472
#2472
Merged
wiredfool
merged 11 commits into
python-pillow:master
python-pillow/Pillow:master
from
hugovk:dpi-is-a-tuple
hugovk/Pillow:dpi-is-a-tuple
Copy head branch name to clipboard
Apr 3, 2017
Conversation
Commits
11
(11)
Checks
Files changed
Merged
DPI is a tuple
#2472
wiredfool
merged 11 commits into
python-pillow:master
python-pillow/Pillow:master
from
hugovk:dpi-is-a-tuple
hugovk/Pillow:dpi-is-a-tuple
Copy head branch name to clipboard
Commits
Commits on Apr 1, 2017
DPI is a tuple
hugovk
committed
344eb3b
View commit details
Copy full SHA for 344eb3b
Browse repository at this point
Some EXIF only contains an X resolution for DPI
hugovk
committed
0c3afb7
View commit details
Copy full SHA for 0c3afb7
Browse repository at this point
Refactor
hugovk
committed
191df4c
View commit details
Copy full SHA for 191df4c
Browse repository at this point
Test with no DPI in EXIF
hugovk
committed
c82426e
View commit details
Copy full SHA for c82426e
Browse repository at this point
Handle EXIF with no DPI
hugovk
committed
72749cd
View commit details
Copy full SHA for 72749cd
Browse repository at this point
Created with: exiftool "-*resolution*"= photoshop-200dpi.jpg
hugovk
committed
a02680c
View commit details
Copy full SHA for a02680c
Browse repository at this point
Test when not in EXIF, DPI==72,72
hugovk
committed
3645451
View commit details
Copy full SHA for 3645451
Browse repository at this point
Use X resolution for Y, default to 72,72 dpi
hugovk
committed
983d2f5
View commit details
Copy full SHA for 983d2f5
Browse repository at this point
Commits on Apr 2, 2017
Created with: exiftool -exif:ResolutionUnit=cm photoshop-200dpi.jpg
hugovk
committed
5da6030
View commit details
Copy full SHA for 5da6030
Browse repository at this point
Test for EXIF with dpcm instead of dpi
hugovk
committed
4a08d05
View commit details
Copy full SHA for 4a08d05
Browse repository at this point
Convert dpcm to dpi, and default to inches if unit unknown
hugovk
committed
d6df0f4
View commit details
Copy full SHA for d6df0f4
Browse repository at this point
You can’t perform that action at this time.