Title: PHP error exif_read_data File not supported
Last modified: November 23, 2021

---

# PHP error exif_read_data File not supported

 *  Resolved [finderX](https://wordpress.org/support/users/finderx/)
 * (@finderx)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-error-exif_read_data-file-not-supported/)
 * If lightbox uses with png files Query Monitor show me this error: [https://i.imgur.com/IQunGD4.png](https://i.imgur.com/IQunGD4.png)
 * So description at lightbox are empty. For example: [https://uolk.ru/sveden/document/vospitatelnaya-rabota/rdsh](https://uolk.ru/sveden/document/vospitatelnaya-rabota/rdsh)
 * It’s not slowing site critically, but…
 * Can you filter types of file to use EXIF extractor?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Arno Welzel](https://wordpress.org/support/users/awelzel/)
 * (@awelzel)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-error-exif_read_data-file-not-supported/#post-15094794)
 * In fact this is not an error but a notice. exif_read_data() will not trigger 
   any error above level E_NOTICE or E_WARNING. A notice or warning is just that–
   to notify about something, nothing else.
 * Also see: [https://www.php.net/manual/en/function.exif-read-data.php](https://www.php.net/manual/en/function.exif-read-data.php)
 * Also this will also not cause any slow down either as the result will be cached
   anyway.
 * Furthermore the plugin checks if the function exists at all (which may not always
   be the case) and the function is used with the `@` prefix to suppress any error
   in logs if anything goes wrong and the result of the function is also checked
   to determine if there is EXIF information available at all. See [https://github.com/arnowelzel/lightbox-photoswipe/blob/main/lightbox-photoswipe.php#L652](https://github.com/arnowelzel/lightbox-photoswipe/blob/main/lightbox-photoswipe.php#L652):
 *     ```
       if ($this->show_exif && function_exists('exif_read_data')) {
         $exif = @exif_read_data( $file, 'EXIF', true );
   
         if (false !== $exif) {
       ```
   
 * So normally you should not see any message at all.
 * But I’ll see what I can do – however there is no guarantee that no warning/notice
   will ever occur. Even with JPEG and TIFF files this function may cause a warning
   or notice since not all JPEGs or TIFF files have EXIF data.
    -  This reply was modified 4 years, 6 months ago by [Arno Welzel](https://wordpress.org/support/users/awelzel/).
 *  Thread Starter [finderX](https://wordpress.org/support/users/finderx/)
 * (@finderx)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-error-exif_read_data-file-not-supported/#post-15094962)
 * Thanks for fast answer. Wait for update to 3.2.5. 🙂
    -  This reply was modified 4 years, 6 months ago by [finderX](https://wordpress.org/support/users/finderx/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP error exif_read_data File not supported’ is closed to new replies.

 * ![](https://ps.w.org/lightbox-photoswipe/assets/icon-256x256.png?rev=2906302)
 * [Lightbox with PhotoSwipe](https://wordpress.org/plugins/lightbox-photoswipe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lightbox-photoswipe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lightbox-photoswipe/)
 * [Active Topics](https://wordpress.org/support/plugin/lightbox-photoswipe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lightbox-photoswipe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lightbox-photoswipe/reviews/)

## Tags

 * [exif](https://wordpress.org/support/topic-tag/exif/)

 * 2 replies
 * 2 participants
 * Last reply from: [finderX](https://wordpress.org/support/users/finderx/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/php-error-exif_read_data-file-not-supported/#post-15094962)
 * Status: resolved