#1 2025-06-17 15:12:03

Dave_G
Member
2019-03-24
20

EXIF data removed from image

Hello,

When I post a link to an image in Piwigo, the EXIF data has been removed. The EXIF data is there on the Piwigo page, but not when I check the image itself with an EXIF viewer.

For example, here's an image I just posted:

https://www.daveguertin.net/picture.php … ee-swallow

On the photo page, the EXIF data is shown down below. But when I check the image with an EXIF viewer (in my case using the EXIF Viewer extension in Firefox), the results are:

Unable to extract some or all of the EXIF data, which may have been removed from the image file.

This is a problem if I want to embed a photo link in another web site. The photo appears, but not the EXIF data. Is there a way to preserve the EXIF data when viewing a photo other than on my Piwigo site?

Dave

Environment:

Piwigo 15.3.0
Installed on 30 November 2018, 6 years 6 months 2 weeks 2 days ago
Operating system: Linux
PHP: 8.1.32 (Show info) [2025-06-17 13:04:27]
MySQL: 11.3.2-MariaDB [2025-06-17 09:04:27]
Graphics Library: GD 2.3.2

Piwigo URL: https://www.daveguertin.net/picture.php … ee-swallow

Offline

 

#2 2025-06-18 11:18:47

erAck
Only trying to help
2015-09-06
2236

Re: EXIF data removed from image

Displayed is a (for example M - Medium) derivative of the original image, which has EXIF stripped. The original obtained through the Sizes menu (landscape icon) has the EXIF data. There's a configuration variable to control this,

// below which size (in pixels, ie width*height) do we remove metadata
// EXIF/IPTC... from derivative?
$conf['derivatives_strip_metadata_threshold'] = 256000;

To force keeping EXIF data for all derivatives set a low pixel threshold in your local config (e.g. using plugin LocalFiles Editor), like for all sizes you could use

$conf['derivatives_strip_metadata_threshold'] = 1;


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2025-06-18 14:19:49

Dave_G
Member
2019-03-24
20

Re: EXIF data removed from image

Thanks! That sounds like exactly what I need. Unfortunately, it doesn't seem to work. I've set $conf['derivatives_strip_metadata_threshold'] = 1; in my config.php with the LocalFiles editor. The EXIF viewer no longer shows a message about being unable to extract EXIF data, but it also still doesn't show any data.

Offline

 

#4 2025-06-19 14:08:39

erAck
Only trying to help
2015-09-06
2236

Re: EXIF data removed from image

You need to regenerate all derivatives. Purge the cached ones, Admin -> Tools -> Maintenance, tab Actions, at the very bottom "Delete multiple size images" select All then Delete these sizes.


Running Piwigo at https://erack.net/gallery/

Offline

 

#5 2025-06-19 22:26:30

Dave_G
Member
2019-03-24
20

Re: EXIF data removed from image

Still no luck. I deleted all the image sizes, and then regenerated derivatives with Batch manager > Action > Generate multiple size images. But still the EXIF data doesn't appear. I checked your Piwigo site and the EXIF data is there, which is what I'm trying to get to. But I still can't figure out why it isn't showing up on mine. It does appear for original size images, just not the resized ones.

Offline

 

Board footer

Powered by FluxBB