[serendipity-cvs] [s9y/Serendipity] c10fa2: Enable custom parameters for .webp and .avif thumb...

onli via php-blog-cvs <[email protected]>
Newsgroups gmane.comp.serendipity.cvs
Message-ID <s9y/Serendipity/push/refs/heads/feature/optimizedImageParams/[email protected]>
  Branch: refs/heads/feature/optimizedImageParams
  Home:   https://github.com/s9y/Serendipity
  Commit: c10fa2a4961d9d93e20e7cc8e8d27e6be5467138
      https://github.com/s9y/Serendipity/commit/c10fa2a4961d9d93e20e7cc8e8d27e6be5467138
  Author: onli <[email protected]>
  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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.