Skip to content

usergallery 3.0: Replace JPEG_TOOLKIT, drop polyfill + prettyphoto#189

Merged
onli merged 1 commit intomasterfrom
fix/usergalleryPhp8
Mar 31, 2025
Merged

usergallery 3.0: Replace JPEG_TOOLKIT, drop polyfill + prettyphoto#189
onli merged 1 commit intomasterfrom
fix/usergalleryPhp8

Conversation

@onli
Copy link
Copy Markdown
Member

@onli onli commented Mar 24, 2025

The JPEG_TOOLKIT seems to be abandoned and does not work under PHP 8, which meant the exif tag display in image pages was not only broken, it broke the blog. Instead of using the toolkit this approach uses the core function serendipity_getMetaData, which uses PHPs exif_read_data to get the data if available.

This changes the keys of the exif tags though, and the approach of a settings string does not account for that scenario. I opted to not migrate the settings over, it would be too much work. Instead this sets a new default option string with the current keys.

Also drops a polyfill for array_combine - the function exists since PHP 5. And removes the prettyphoto lightbox option, since the lightbox plugin also dropped that abandoned script in #179.

@onli onli merged commit 67ed279 into master Mar 31, 2025
@onli onli deleted the fix/usergalleryPhp8 branch March 31, 2025 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant