Merge pull request #4015 from radarhere/tiff

Corrected documentation of TIFF saving arguments
This commit is contained in:
Hugo van Kemenade 2019-08-09 19:41:48 +03:00 committed by GitHub
commit 845377d83f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -759,18 +759,21 @@ using the general tags available through tiffinfo.
Strings
**resolution_unit**
A string of "inch", "centimeter" or "cm"
An integer. 1 for no unit, 2 for inches and 3 for centimeters.
**resolution**
Either an integer or a float, used for both the x and y resolution.
**x_resolution**
Either an integer or a float.
**y_resolution**
Either an integer or a float.
**dpi**
Either a Float, 2 tuple of (numerator, denominator) or a
:py:class:`~PIL.TiffImagePlugin.IFDRational`. Resolution implies
an equal x and y resolution, dpi also implies a unit of inches.
A tuple of (x_resolution, y_resolution), with inches as the resolution
unit. For consistency with other image formats, the x and y resolutions
of the dpi will be rounded to the nearest integer.
WebP