Skip to content

WebP: Decoding makes the entire image look green #1102

@zly2006

Description

@zly2006

Describe the bug
A clear and concise description of what the bug is.

Version information

  1. The version of the TwelveMonkeys ImageIO library in use.

com.twelvemonkeys.imageio:imageio-webp:3.12.0

  1. The exact output of java --version (or java -version for older Java releases).
    For example:
openjdk 23.0.2 2025-01-21
OpenJDK Runtime Environment Homebrew (build 23.0.2)
OpenJDK 64-Bit Server VM Homebrew (build 23.0.2, mixed mode, sharing)

Example code

    val z = ImageIO.read(File("sofa.webp"))
    // to png
    ImageIO.write(z, "png", File("sofa.png"))

Sample file(s)

original webp & decoded png.zip

decoded png:
Image

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions