Skip to content

ImageSharp WebP transparency issues #16600

@PerplexDaniel

Description

@PerplexDaniel

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

13.3.2

Bug summary

There is a bug in ImageSharp that causes artifacts in transparent images when converted to WebP, see this GitHub issue. Is has already been fixed by the author in 3.1.4 (see his comment and his fix).

Please update SixLabors.ImageSharp to 3.1.4 in all applicable Umbraco versions to fix the issue.
I reproduced this on Umbraco 13.3.2 that uses SixLabors.ImageSharp 3.1.3.

For people who want to fix this issue now without waiting for Umbraco, you can install this newest version yourself for now:
dotnet add package SixLabors.ImageSharp --version 3.1.4

Specifics

No response

Steps to reproduce

Use the latest Umbraco LTS (13.3.2) to reproduce.

bunny.png
  1. dotnet new umbraco -n WebP
  2. cd WebP
  3. dotnet run
  4. Upload the attached image (bunny.png) to the media library
  5. Go to the image URL (you can find it in the Media Library > Bunny.png > Info tab > Links)
  6. Add ?format=webp to the end
  7. Observe the broken image, which looks like this (note all the weird black bars that should be transparent).

image

Expected result / actual result

The WebP image should be fully transparent just like the original.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions