Giter Club home page Giter Club logo

Comments (7)

HappySeaFox avatar HappySeaFox commented on September 28, 2024 1

You can try the latest master with blending of grayscale images.

from sail.

HappySeaFox avatar HappySeaFox commented on September 28, 2024

I agree there are some blending issues. I've just fixed a memory corruption issue (at least on MSVC 2019) on free() and allowed blending for BPP16-GRAYSCALE-ALPHA and BPP32-GRAYSCALE-ALPHA pixel formats. I will probably continue looking into it (sorry cannot guarantee).

Regarding the 8-bit greyscale and alpha, with blending image: it has three frames:

  1. The first frame is hidden.
  2. The second frame is black (gray component: 0, alpha: 255), blending mode: over.
  3. The 3rd frame consists of semi-transparent white pixels which will look like gray after blending with black pixels (gray component: 255, alpha: 128), blending mode: over.

https://philip.html5.org/tests/apng/tests.html specifies that the image should be rendered as This should be solid grey. but I have a question why 🤔 The second frame is black. The third (blended) frame is gray. I would expect flashing black and gray frames and this is what I see currently in the local fixed SAIL version.

from sail.

qbnu avatar qbnu commented on September 28, 2024

If the image viewer respects num_plays in the acTL chunk then it should just play once and pause on the last frame.

from sail.

HappySeaFox avatar HappySeaFox commented on September 28, 2024

Oh, I see. This explains a lot. The next rc will have blending of grayscale frames and I'll add num_plays as a special property for those who are interested.

from sail.

HappySeaFox avatar HappySeaFox commented on September 28, 2024

Did you install sail through vcpkg?

from sail.

qbnu avatar qbnu commented on September 28, 2024

No, I built it from source.

from sail.

HappySeaFox avatar HappySeaFox commented on September 28, 2024

Please reopen if needed

from sail.

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.