innostudio / fileuploader

Beautiful and powerful HTML file uploading tool. A jQuery, PHP and Node.js plugin that transforms the standard input into a revolutionary and fancy field on your page.
141 stars 25 forks source link

PHP - exif_read_data() condition in the resize() method #53

Closed mertasan closed 3 years ago

mertasan commented 4 years ago

would you add the exif_imagetype() condition in PHP FileUploader::resize() method?

my XDebug is ignoring the @ operator.

  $exif = function_exists('exif_read_data') ? @exif_read_data($filename) : array();

instead of:

  $exif = function_exists('exif_read_data') && in_array(exif_imagetype($filename), array(2,7,8)) ? @exif_read_data($filename) : array();
Ekran Resmi 134