Files @ 0c6c590664ad
Branch filter:

Location: light9/stubs/PIL/TiffImagePlugin.pyi

drewp@bigasterisk.com
fix up effectListing
# 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: ...