Issue Bug Closed

#107102WebP images are blurry

Manfred Egger 07/16/25, 09:15 updated 12/02/25, 13:57

Description

When images are generated as webp, they are “blurrier” as the same image generated as JPG. For JPGs there is a line `$this->cmds[‘jpg’] = $this->v5_sharpen(10);` in `\TYPO3\CMS\Core\Imaging\GraphicalFunctions`. Maybe the same could be done for webp? When adding `$this->cmds[‘webp’] = $this->v5_sharpen(10);” to `GraphicalFunctions`, the generated images looked the same.

Reviews 2

Files 2

History 59

  1. Manfred Egger commented <span data-processor="relativetime" data-value="2025-07-16T09:18:10+00:00" > 07/16/25, 09:18 </span>

    As addition: this was tested with TYPO3 13.4.15 and ImageMagick 6.9 and 7.1 with webp enabled.

  2. Garvin Hicking commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2025-07-16T13:36:11+00:00" > 07/16/25, 13:36 </span>

    What is your “webp_quality” setting of your configuration? Maybe you need to raise it.

    Or did you mean after you added the extra sharpening, this issue is fixed for you? Do you want to contribute a patch for it, sounds good?

  3. Manfred Egger commented and changed attached webp-blurry.png attached webp-fixed.png <span data-processor="relativetime" data-value="2025-07-17T04:25:03+00:00" > 07/17/25, 04:25 </span>

    I don’t think this is the problem. The problem also occurs with quality set to 100. Just try it yourself: generate an image as JPG and then force the fileExtension to webp and compare the images side by side. You should see the difference.

    I attached two screenshots of the same image.

    I create a patch 😉

  4. Gerrit Code Review pushed patch set 1 for main to change 90082 status Needs Feedback Under Review <span data-processor="relativetime" data-value="2025-07-17T05:27:41+00:00" > 07/17/25, 05:27 </span>

  5. Manfred Egger commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-07-29T06:40:09+00:00" > 07/29/25, 06:40 </span>

    Applied in changeset commit:44d4a71d76e959337e20ec571ccea87a6b1a82ff.