Branch: refs/heads/master
Home: https://github.com/s9y/Serendipity
Commit: 058c237f79f475f6a9063cdfc73d8817c670b0da
https://github.com/s9y/Serendipity/commit/058c237f79f475f6a9063cdfc73d8817c670b0da
Author: onli <on...@pa...>
Date: 2025-03-05 (Wed, 05 Mar 2025)
Changed paths:
M docs/NEWS
M include/functions_images.inc.php
M serendipity_config.inc.php
A test.avif
Log Message:
-----------
Enable custom parameters for .webp and .avif thumbnails (#876)
* Enable custom parameters for .webp and .avif thumbnails
The thumbnail code assumed that images are .gif, .png or .jpg, and we defaulted to quality settings for .jpg thumbnails. But for both .avif and .webp, other quality settings are preferable (and possible other additional parameters).
This code changes the code for $serendipity['imagemagick_thumb_parameters'] so that it can be an array, with the image mime type as key and their specific parameters as values. It also sets sane defaults for the gd path for both formats, which also enables thumbnails in both formats when imagemagick is not used.
* Document change
To unsubscribe from these emails, change your notification settings at https://github.com/s9y/Serendipity/settings/notifications
|