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 07/16/25, 09:18

    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 07/16/25, 13:36

    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 07/17/25, 04:25

    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 07/17/25, 05:27

  5. Gerrit Code Review pushed patch set 2 for main to change 90082 07/29/25, 05:33

  6. Gerrit Code Review pushed patch set 3 for main to change 90082 07/29/25, 06:09

  7. Gerrit Code Review pushed patch set 1 for 13.4 to change 90182 07/29/25, 06:15

  8. Manfred Egger commented and changed status Under Review Resolved done 0 % 100 % 07/29/25, 06:40

    Applied in changeset commit:44d4a71d76e959337e20ec571ccea87a6b1a82ff.

  9. Benni Mack changed status Resolved Closed 12/02/25, 13:57