image-rs / image-webp

Apache License 2.0
43 stars 9 forks source link

Decoded image appears pixelated #116

Open Shnatsel opened 1 month ago

Shnatsel commented 1 month ago

Found in image-webp v0.2.0

Input: bsk.webp.gz

imagemagick result: bsk webp magick

image-webp result: bsk webp image

Same versions and reproduction code as in https://github.com/image-rs/image-webp/issues/117

This happens on vibrant reds so might be related to image-rs/image#115

fintelia commented 1 month ago

Seems this is a bug in the lossy decoding:

$ webpinfo bsk.webp
File: bsk.webp
RIFF HEADER:
  File size:   3712
Chunk VP8X at offset     12, length     18
  ICCP: 0
  Alpha: 1
  EXIF: 0
  XMP: 0
  Animation: 0
  Canvas size 89 x 90
Chunk ALPH at offset     30, length    652
Chunk VP8  at offset    682, length   3030
  Width: 89
  Height: 90
  Alpha: 0
  Animation: 0
  Format: Lossy (1)
No error detected.