Registry / data / large-image-source-pil

large-image-source-pil

JSON →
library1.34.1pypypi✓ verified 84d ago

A Pillow tilesource for large_image, enabling reading of common image formats (PNG, JPEG, TIFF, etc.) using Pillow. Version 1.34.1 is current, with a maintenance cadence of monthly releases.

pip install large-image-source-pil
INSTALL
IMPORT
SIG · LARGE-IMAGE-SOURCE
L
large-image-source-pil
datapythonv1.34.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PILFileTileSource
from large_image_source_pil import PILFileTileSource
from large_image.tilesource import PILFileTileSource
PILFileTileSource is in large_image_source_pil, not in the core large_image package.

Open an image using the Pillow tilesource and fetch a tile.

from large_image_source_pil import PILFileTileSource source = PILFileTileSource('path/to/image.png') tile = source.getTile(0, 0, 0) # get top-left tile at level 0 print(tile.shape)
Debug
Known issues
breakingPython 3.10+ only. Python 3.9 and older are not supported (requires_python >=3.10).
fix
Use Python >=3.10
affects: >=1.34.0
deprecatedThe 'method' parameter in getRegion() may be removed. The histogram signature changed in 1.34.1.
fix
Check the current API docs; use the new signature.
affects: >=1.34.1
gotchaPILFileTileSource may not support all image formats that Pillow itself supports (e.g., multi-page TIFF, animated GIF).
fix
Use large_image_source_tiff for TIFF, or large_image for more comprehensive support.
affects: all
Errors
Common errors & fixes
ImportError: cannot import name 'PILFileTileSource' from 'large_image.tilesource'
Incorrect import path; the tilesource is in a separate package.
fix
Install large-image-source-pil and use 'from large_image_source_pil import PILFileTileSource'.
ModuleNotFoundError: No module named 'large_image_source_pil'
The package large-image-source-pil is not installed.
fix
pip install large-image-source-pil
Upgrade
Version history
1.34.1latest on PyPI · released Mar 24, 2026
Audit
Dependencies
large-imagerequiredCore large_image framework; tilesource base class
PillowrequiredImage reading backend
Agent activity
2 hits · last 30 days
node
2
Resources