Member
Member
kuzzzma   22-06-2023, 16:12
#1

I ran into a specific case of metadata preservation issue with cached images.

Details:
All images are jpg files
EXIF-IPTC-XMP metadata is present (copyrights, title, keywords etc)

Options->Image
IPTC copyright embedding - enabled

Issue:

zpBase theme uses standard template-functions for:

printDefaultSizedImage - to display photo in full image page.
getFullImageURL() - to enable downloading original photo size in the same page, if option for Download was enabled.

If "Full image protection" is set to be used (Protected View or Download, "cache full image" enabled OR disabled) in Options->Image, getFullImageURL() leads to function getProtectedImageURL to be used and resulting image lacks ALL metadata, despite enabling IPTC preservation.

So, this generation of filename_FULL version lacks options to preserve metadata when it's essential for this use-case.

Administrator
Administrator
acrylian   22-06-2023, 16:29
#2

printDefaultSizedImage - to display photo in full image page.

First, this is not the full image, it is a "sized" image and the page is the single image page which basically never displays the full iamge anyway.

The full image in protected view is served via thet images processor, see also the note:

Protected view forces image processing before the image is displayed, for instance to apply a watermark or to check passwords

If meta data is preserved on processing depends on the graphic lib used. As far as I know only Imagick does but GD can't. However there is a GD function named iptcembed() but that's in any case only IPTC, no EXIF or XMP.

Member
Member
kuzzzma   22-06-2023, 16:51
#3

checked and switched to Imagick for processing, love when my problems have solutions already)

Maybe this should be also in the Notes for IPTC copyright embedding option, that you have to use Imagick to preserve it in full size too?

Administrator
Administrator
acrylian   22-06-2023, 18:10
#4

Great. The GD limitations are actually known for year, I was sure it is somewhere noted at least on the user guide but we'll check.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.