Giter Club home page Giter Club logo

Comments (3)

0xC0000054 avatar 0xC0000054 commented on June 12, 2024 1

The image is 800x600px. The "Very Slow" preset workaround worked, thanks! I tested all presets, only the "Fast" one has that error in FF.

That confirms that it is the same Firefox bug I mentioned in my previous post.

I also opened a bug on Bugzilla, so hopefully this can also be fixed on Firefox' side.

Could you post a link in that issue to: https://bugzilla.mozilla.org/show_bug.cgi?id=1696090
Your issue is a duplicate of that one.

from pdn-avif.

0xC0000054 avatar 0xC0000054 commented on June 12, 2024

What are the dimensions of the image you are trying to save?

I believe this is an issue with PDN because Firefox can load other AVIF images just fine.

I suspect it is an existing bug in Firefox's AVIF support, Firefox does not support loading AVIF files that use an image grid.
As a workaround, you can save the image using the Very Slow compression preset.

This Paint.NET plugin uses an image grid to reduce memory usage and improve UI responsiveness when encoding AVIF images.

The AVIF validator spits out multiple warnings about tile widths and heights that they should be multiples of 64.

I was unaware of that tile size recommendation. It appears that libavif also ignores it when creating grid images:

// The priority could be to use a cell size that is a multiple of 64, but there is not always a valid one,
// even though it is recommended by MIAF. Just use ceil(numPixels/numCells) for simplicity and to avoid
// as much padding in the right-most and bottom-most cells as possible.

https://github.com/AOMediaCodec/libavif/blob/454adbf5c27d24e1645cae53c1c659d46e07f657/apps/avifenc.c#L533

from pdn-avif.

Lenni009 avatar Lenni009 commented on June 12, 2024

The image is 800x600px. The "Very Slow" preset workaround worked, thanks! I tested all presets, only the "Fast" one has that error in FF.

I also opened a bug on Bugzilla, so hopefully this can also be fixed on Firefox' side.
Thanks again!

from pdn-avif.

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.