Giter VIP home page Giter VIP logo

Comments (6)

solidpixel avatar solidpixel commented on August 27, 2024

What tool created the PNG?

I'll try and update to the latest Wuffs release, but if that doesn't work I'll have to raise an issue upstream (https://github.com/google/wuffs) so I can't promise a quick fix.

from astc-encoder.

liumazi avatar liumazi commented on August 27, 2024

I use the TPngObject in Delphi to created the PNG. (Portable Network Graphics Delphi 1.5)
Only a few PNGS fail to load, most are successful.
And, if use astcenc.exe 1.3, will prompt: "Failed to load image xx.png, Reason: tRNS with alpha"

from astc-encoder.

solidpixel avatar solidpixel commented on August 27, 2024

And, if use astcenc.exe 1.3, will prompt: "Failed to load image xx.png, Reason: tRNS with alpha"

The older release used stb_image to load images.

This error is thrown because the PNG is invalid (using a tRNS transparency chunk for a color format with alpha).

from astc-encoder.

solidpixel avatar solidpixel commented on August 27, 2024

The latest Wuffs stable release doesn't fix this, so I've raised an issue upstream to see if they can support this use case in future, but the main problem here is that the image is technically out-of-spec (a tRNS chunk isn't allowed for RGBA color type images).

from astc-encoder.

solidpixel avatar solidpixel commented on August 27, 2024

Upstream did a super-quick fix ❤️, so I'll update shortly.

from astc-encoder.

solidpixel avatar solidpixel commented on August 27, 2024

Fixed in 56395a6

from astc-encoder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.