WEBP transparency around my .png's becomes black for some reason

Sample of what is happening in the image below.

I’m processing this image with this line:

{{ $imageWEBPL := .Resize "300x webp center q60"}}

What happens with higher quality? q90?

Same thing unfortunately. @davidsneighbour

Please share the original image.

Here it is:

No, I need the original WebP image. Share a repository, post it to Dropbox, etc.

I’m using the *.png source to generate with HUGO the *.WEBP image.
You can check the images here

I converted from PNG to WebP with both ImageMagick and Google’s cwebp encoder. Both images look fine. This is a bug.

Not sure about that yet :wink: The “original” buggy image has a background image. We don’t know the full picture yet. I think it’s some kind of quality issue between all the components of the final image. We don’t know how it’s done.

Google’s cwebp encoder produces a good image. Hugo should do the same thing. This is a bug.

No, it doesn’t.

looks a lot like a background to me.

Please download the image that @solopx posted:

See https://github.com/gohugoio/hugo/issues/8729

1 Like

Resolved with https://github.com/gohugoio/hugo/pull/8730. Fix will be included in the next release.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.