arnowelzel / lightbox-photoswipe

Integration of PhotoSwipe to WordPress
https://arnowelzel.de/wp/en/projects/wordpress/lightbox-with-photoswipe
GNU General Public License v2.0
27 stars 7 forks source link

EXIF support for webp #103

Open arnowelzel opened 7 months ago

arnowelzel commented 7 months ago

Also see https://wordpress.org/support/topic/excelente-plugin-con-un-detalle

webp supports EXIF as well, but so far this can not be displayed in Lightbox with PhotoSwipe.

arnowelzel commented 5 months ago

First try to parse EXIF data using PHP itself did not work very well since this is way too slow (and one of the reasons why there is an extension for this).

Another approach may be to extract the content of the EXIF chunk in webp files and create an empty JPEG image as memory stream which can then be used for exif_read_data().