Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions stubs/fpdf2/fpdf/image_parsing.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
from typing import Any
from typing import Any, Tuple
from typing_extensions import Literal

SUPPORTED_IMAGE_FILTERS: Any
_ImageFilter = Literal["AUTO", "FlateDecode", "DCTDecode", "JPXDecode"]

SUPPORTED_IMAGE_FILTERS: Tuple[_ImageFilter, ...]

def load_image(filename): ...
def get_img_info(img, image_filter: str = ...): ...

# Returned dict could be typed as a TypedDict.
def get_img_info(img, image_filter: _ImageFilter = ..., dims: Any | None = ...) -> dict[str, Any]: ...