mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Corrected documentation of TIFF saving arguments [ci skip]
This commit is contained in:
parent
5a203b70c8
commit
0527efd593
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user