There was an error while loading. Please reload this page.
1 parent 4b05110 commit b93b305Copy full SHA for b93b305
1 file changed
keras/src/utils/image_utils.py
@@ -234,6 +234,14 @@ def load_img(
234
235
Returns:
236
A PIL Image instance.
237
+
238
+ Note:
239
+ This function uses Pillow (`PIL.Image`) for decoding and therefore
240
+ inherits Pillow's decompression-bomb protection. Images whose pixel
241
+ count exceeds `PIL.Image.MAX_IMAGE_PIXELS` raise
242
+ `PIL.Image.DecompressionBombError`. To load larger images, raise or
243
+ disable that limit (see the
244
+ [Pillow documentation](https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.open)).
245
"""
246
if pil_image is None:
247
raise ImportError(
0 commit comments