Coder Social home page Coder Social logo

Comments (5)

BlackMagicCoding avatar BlackMagicCoding commented on April 27, 2024 1

Hello everyone,

since the previously mentioned issue isn't going to happen (here), I was curious if this is still considered.

I had to make a big batch of screenshots (PNG) for documentation purposes and it went down from 340 MB to 37 MB when converting them to AVIF via command line.
Tried JPEG as well, but it didn't come even close.

This is why I would really love to be able to save it as AVIF directly without any manual steps.
I know that the reason for the absence was the missing C#/.NET support to export it in that format.

Has anything changed in those two and a half years?
Are there approaches / libraries which are acceptable now? (I have seen some things, but they call to native binaries under the hood)

Kind regards, BMC

from greenshot.

Lakritzator avatar Lakritzator commented on April 27, 2024

We need to wait for a .NET implementation of an encoded & decoder for this file format.
I'm not so good at mathematics that I would be able to pull that off without spending the next months 24x7 on something like that. From my point of view is not a direct need for this, I don't see a huge benefit when this would be implemented, thus the priority is low.

As soon as there is something here, we can have a look if that can be integrated:
https://www.nuget.org/packages?q=avif

Besides, avif soons like a video, not primary aimed at single images.

from greenshot.

EwoutH avatar EwoutH commented on April 27, 2024

libavif tagged a new release, 0.1.3. See Colorist for an example implementation.

from greenshot.

Lakritzator avatar Lakritzator commented on April 27, 2024

That is cool, but libavif is a c-library (unmanaged) , and Greenshot is made with C# (managed), mixing this is certainly possible but brings a lot of issues. I currently don't have the time to port C to C# or write a wrapper. It doesn't matter how many releases there are 😉

I could modify Greenshot to have a way to bring new file formats to it, this is something which is on my list anyway. This way someone can build an add-on to extend Greenshot with this format. One only has to implement the interface and call libavif for reading raw image data into memory to create a Greenshot bitmap and calling libavif to write the raw image data from memory.

from greenshot.

AnderssonPeter avatar AnderssonPeter commented on April 27, 2024

The following seems to add avif for paint.net https://github.com/0xC0000054/pdn-avif i created a issue asking if they could create a nuget package from it so that we can use avif in normal c# code. (Its a wrapper around the dlls so its not a native implementation)

from greenshot.

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.