Branch: refs/heads/feature/optimizedImageParams
Home: https://github.com/s9y/Serendipity
Commit: c10fa2a4961d9d93e20e7cc8e8d27e6be5467138
https://github.com/s9y/Serendipity/commit/c10fa2a4961d9d93e20e7cc8e8d27e6be5467138
Author: onli <on...@pa...>
Date: 2025-02-26 (Wed, 26 Feb 2025)
Changed paths:
M include/functions_images.inc.php
M serendipity_config.inc.php
A test.avif
Log Message:
-----------
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.
To unsubscribe from these emails, change your notification settings at https://github.com/s9y/Serendipity/settings/notifications
|