cubecart / v6

CubeCart Version 6
https://cubecart.com
72 stars 58 forks source link

Warning When No Exif Data #3550

Closed bhsmither closed 2 months ago

bhsmither commented 5 months ago

Minor:

In GD->gdLoadFile(), the command exif_read_data() may return false, and in that case will return:

Warning: File not supported

As an example, the Foundation image 'noimage.png' will trigger this warning.

An experiment:

$this->_gdImageExif = @exif_read_data($file);

seems to suppress the warning.

abrookbanks commented 5 months ago

Fixed with 88b9f4e101106d0469439dc449829c9be575a70f

bhsmither commented 4 months ago

I disagree.

The fix referenced above fixes the issue where the function is not available.

The issue still exists when $file has no exif data.