Giter Club home page Giter Club logo

Comments (5)

thomas-gregg-bz-agency avatar thomas-gregg-bz-agency commented on June 9, 2024 1

@tidyui I have raised an issue over at ImageSharp and they have referenced a couple of other issues that seem to resolve the issue. Is there something that needs to be done like defining the encoding configuration?

from piranha.core.

tidyui avatar tidyui commented on June 9, 2024

Could you try asking the same question at the https://github.com/SixLabors/ImageSharp repo as we have no control over what happens inside the actual image processing. The current version of Piranha uses the latest released version of ImageSharp (2.1.3) but maybe there is a bug on their side related to this.

If you open an issue there, please reference this issue and make sure to include the code that seems to do the faulty processing, i.e:

using (var image = Image.Load(source, out IImageFormat format))
{
    image.Mutate(x => x.AutoOrient());
    image.Save(dest, format);
}

A workaround would be to remove the default registration in App.MediaTypes.Images and add it back with image processing disable with

App.MediaTypes.Images.Add(".webp", "image/webp", false);

from piranha.core.

thomas-gregg-bz-agency avatar thomas-gregg-bz-agency commented on June 9, 2024

from piranha.core.

tidyui avatar tidyui commented on June 9, 2024

Hi there! As far as I know this bug has been fixed in ImageSharp 3.x, which has a different licensing model. We will need to look into if this model can be used from an open source library without impacting users of the library.

Best regards

from piranha.core.

karl-sjogren avatar karl-sjogren commented on June 9, 2024

Sounds like this was the bug with lossless encoding (since no quality was specified when saving). It was backported to 2.x in https://github.com/SixLabors/ImageSharp/releases/tag/v2.1.4 so just updating to that (or rather 2.1.6 which has some security fixes as well) should solve this.

from piranha.core.

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.