exif_read_data always returns false

Created on 9 February 2019, almost 6 years ago
Updated 22 April 2023, over 1 year ago

The getExif method currently looks like this:

  protected function getExif($uri) {
    return exif_read_data($uri, 'EXIF');
  }

I'm not sure why, but exif_read_data() always returns false on my local environment (using DrupalVM with PHP 7.2).
When I change $uri to be an actual filepath instead of a streamwrapper, it does work.
I will add a patch.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands daluxz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024