Files
@ 0c6c590664ad
Branch filter:
Location: light9/stubs/PIL/TiffImagePlugin.pyi
0c6c590664ad
5.4 KiB
text/plain
fix up effectListing
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 | # Stubs for PIL.TiffImagePlugin (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
import collections
from .TiffTags import TYPES
from PIL import ImageFile
from numbers import Rational
from typing import Any, Optional
DEBUG: bool
READ_LIBTIFF: bool
WRITE_LIBTIFF: bool
IFD_LEGACY_API: bool
II: bytes
MM: bytes
i8: Any
o8: Any
IMAGEWIDTH: int
IMAGELENGTH: int
BITSPERSAMPLE: int
COMPRESSION: int
PHOTOMETRIC_INTERPRETATION: int
FILLORDER: int
IMAGEDESCRIPTION: int
STRIPOFFSETS: int
SAMPLESPERPIXEL: int
ROWSPERSTRIP: int
STRIPBYTECOUNTS: int
X_RESOLUTION: int
Y_RESOLUTION: int
PLANAR_CONFIGURATION: int
RESOLUTION_UNIT: int
SOFTWARE: int
DATE_TIME: int
ARTIST: int
PREDICTOR: int
COLORMAP: int
TILEOFFSETS: int
EXTRASAMPLES: int
SAMPLEFORMAT: int
JPEGTABLES: int
COPYRIGHT: int
IPTC_NAA_CHUNK: int
PHOTOSHOP_CHUNK: int
ICCPROFILE: int
EXIFIFD: int
XMP: int
IMAGEJ_META_DATA_BYTE_COUNTS: int
IMAGEJ_META_DATA: int
COMPRESSION_INFO: Any
COMPRESSION_INFO_REV: Any
OPEN_INFO: Any
PREFIXES: Any
class IFDRational(Rational):
def __init__(self, value: Any, denominator: int = ...) -> None: ...
@property
def numerator(a: Any): ...
@property
def denominator(a: Any): ...
def limit_rational(self, max_denominator: Any): ...
def __hash__(self): ...
def __eq__(self, other: Any): ...
__add__: Any = ...
__radd__: Any = ...
__sub__: Any = ...
__rsub__: Any = ...
__div__: Any = ...
__rdiv__: Any = ...
__mul__: Any = ...
__rmul__: Any = ...
__truediv__: Any = ...
__rtruediv__: Any = ...
__floordiv__: Any = ...
__rfloordiv__: Any = ...
__mod__: Any = ...
__rmod__: Any = ...
__pow__: Any = ...
__rpow__: Any = ...
__pos__: Any = ...
__neg__: Any = ...
__abs__: Any = ...
__trunc__: Any = ...
__lt__: Any = ...
__gt__: Any = ...
__le__: Any = ...
__ge__: Any = ...
__nonzero__: Any = ...
__ceil__: Any = ...
__floor__: Any = ...
__round__: Any = ...
class ImageFileDirectory_v2(collections.MutableMapping):
def __init__(self, ifh: bytes = ..., prefix: Optional[Any] = ...) -> None: ...
prefix: Any = ...
offset: Any = ...
legacy_api: Any = ...
@legacy_api.setter
def legacy_api(self, value: Any) -> None: ...
tagtype: Any = ...
def reset(self) -> None: ...
def as_dict(self): ...
def named(self): ...
def __len__(self): ...
def __getitem__(self, tag: Any): ...
def __contains__(self, tag: Any): ...
def has_key(self, tag: Any): ...
def __setitem__(self, tag: Any, value: Any) -> None: ...
def __delitem__(self, tag: Any) -> None: ...
def __iter__(self): ...
def load_byte(self, data: Any, legacy_api: bool = ...): ...
def write_byte(self, data: Any): ...
def load_string(self, data: Any, legacy_api: bool = ...): ...
def write_string(self, value: Any): ...
def load_rational(self, data: Any, legacy_api: bool = ...): ...
def write_rational(self, *values: Any): ...
def load_undefined(self, data: Any, legacy_api: bool = ...): ...
def write_undefined(self, value: Any): ...
def load_signed_rational(self, data: Any, legacy_api: bool = ...): ...
def write_signed_rational(self, *values: Any): ...
def load(self, fp: Any) -> None: ...
def save(self, fp: Any): ...
name: Any
class ImageFileDirectory_v1(ImageFileDirectory_v2):
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
tags: Any = ...
tagdata: Any = ...
@classmethod
def from_v2(cls, original: Any): ...
def to_v2(self): ...
def __contains__(self, tag: Any): ...
def __len__(self): ...
def __iter__(self): ...
def __setitem__(self, tag: Any, value: Any) -> None: ...
def __getitem__(self, tag: Any): ...
ImageFileDirectory = ImageFileDirectory_v1
class TiffImageFile(ImageFile.ImageFile):
format: str = ...
format_description: str = ...
@property
def n_frames(self): ...
@property
def is_animated(self): ...
im: Any = ...
def seek(self, frame: Any) -> None: ...
def tell(self): ...
def load(self): ...
SAVE_INFO: Any
class AppendingTiffWriter:
fieldSizes: Any = ...
Tags: Any = ...
f: Any = ...
close_fp: bool = ...
name: Any = ...
beginning: Any = ...
def __init__(self, fn: Any, new: bool = ...) -> None: ...
whereToWriteNewIFDOffset: Any = ...
offsetOfNewPage: int = ...
IIMM: Any = ...
isFirst: bool = ...
def setup(self) -> None: ...
def finalize(self) -> None: ...
def newFrame(self) -> None: ...
def __enter__(self): ...
def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any): ...
def tell(self): ...
def seek(self, offset: Any, whence: Any): ...
def goToEnd(self) -> None: ...
endian: Any = ...
longFmt: Any = ...
shortFmt: Any = ...
tagFormat: Any = ...
def setEndian(self, endian: Any) -> None: ...
def skipIFDs(self) -> None: ...
def write(self, data: Any): ...
def readShort(self): ...
def readLong(self): ...
def rewriteLastShortToLong(self, value: Any) -> None: ...
def rewriteLastShort(self, value: Any) -> None: ...
def rewriteLastLong(self, value: Any) -> None: ...
def writeShort(self, value: Any) -> None: ...
def writeLong(self, value: Any) -> None: ...
def close(self) -> None: ...
def fixIFD(self) -> None: ...
def fixOffsets(self, count: Any, isShort: bool = ..., isLong: bool = ...) -> None: ...
|