Intervention / image

PHP Image Processing
https://image.intervention.io
MIT License
13.88k stars 1.5k forks source link

Avoid unnecessary exif_read_data calls #1371

Closed olivervogel closed 3 months ago

olivervogel commented 3 months ago

EXIF data extraction makes only sense for JPEG and TIFF format. This patch checks the format and calls exif_read_data only for appropriate formats.

Previously, the function was also called with formats that can not contain EXIF data. This resulted in warnings.

See #1370