Giter Site home page Giter Site logo

Comments (5)

0xC0000054 avatar 0xC0000054 commented on June 3, 2024

My only guess is that you may need to seek to the beginning of the file before calling loadFileIntoContext.

from pdn-heicfiletype-plus.

sati32 avatar sati32 commented on June 3, 2024

Thank you for your help. But this is not the solution. My file callbacks are called GetPosition and returns 0, GetSize and Read (4 Bytes and gives the first 4 Bytes of the file).
I will try to check the source of LibHeic.

from pdn-heicfiletype-plus.

sati32 avatar sati32 commented on June 3, 2024

OK, the problem was my Read-Callback function. It has to return "0" for no error, not the amount of bytes read, as expected.

from pdn-heicfiletype-plus.

sati32 avatar sati32 commented on June 3, 2024

Works fine now.
May I ask if there is a way to get 16 bit per channel instead of 8?
Is there a way to get data without alpha or is there a way to detect if alpha is present?

from pdn-heicfiletype-plus.

0xC0000054 avatar 0xC0000054 commented on June 3, 2024

You would have to modify the C++ wrapper code to add those features.

Paint.NET uses 8-bit RGBA as its native image format, so the C++ wrapper code used by this plugin only supports that format.
There was no point in adding features to the wrapper that Paint.NET does not support.

from pdn-heicfiletype-plus.

Related Issues (8)

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.