#107102WebP images are blurry
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
-
Garvin Hicking commented and changed status
NewNeeds 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?
-
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 😉
-
Gerrit Code Review pushed patch set 1 for main to change 90082 status
Needs FeedbackUnder Review <span data-processor="relativetime" data-value="2025-07-17T05:27:41+00:00" > 07/17/25, 05:27 </span> -
Gerrit Code Review pushed patch set 2 for main to change 90082 <span data-processor="relativetime" data-value="2025-07-29T05:33:15+00:00" > 07/29/25, 05:33 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 90082 <span data-processor="relativetime" data-value="2025-07-29T06:09:45+00:00" > 07/29/25, 06:09 </span>
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 90182 <span data-processor="relativetime" data-value="2025-07-29T06:15:18+00:00" > 07/29/25, 06:15 </span>
-
Manfred Egger commented and changed status
Under ReviewResolved done0 %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.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-12-02T13:57:58+00:00" > 12/02/25, 13:57 </span>
As addition: this was tested with TYPO3 13.4.15 and ImageMagick 6.9 and 7.1 with webp enabled.