hydrax.image.set_max_image_pixels#
- hydrax.image.set_max_image_pixels(threshold: int | None) None#
Sets the PIL decompression bomb threshold.
- Parameters:
threshold – The error threshold to set, or
Noneto disable the check entirely. A warning will be raised at half the specified threshold.
Caution
This is a global setting which affects all PIL
openoperations, includingopen_srgb(). See PIL.Image.open for more details.