Giter Site home page Giter Site logo

Comments (6)

SmileyChris avatar SmileyChris commented on August 18, 2024

One issue here is that I'm not keen on downscaling indexed images and keeping them indexed - antialiasing may be introduced that looks rather bad due to the limited index.

However I do see the usefulness of the transparency use case. Perhaps the thumbnailing method should check for both png and jpg versions of the thumbnail, and the correct thumbnail format should be generated depending on whether there is a transparency layer.

from easy-thumbnails.

ojii avatar ojii commented on August 18, 2024

Well just to be clear, I'm not just talking about png/jpg, what about all the other formats? An option to keep the current format is really the best I can think of. If you thumbnail images with an alpha layer the jpg output is terrible (I think it puts black into the transparent regions). And if you turn all your images to pngs they get huge.

from easy-thumbnails.

SmileyChris avatar SmileyChris commented on August 18, 2024

So is the real issue just about preserving the alpha layer as opposed to preserving the file format?

from easy-thumbnails.

ojii avatar ojii commented on August 18, 2024

well as a matter of fact I'd argue it's both. Since preserving the file format is more general and goes beyond solving the jpg/png issue I have.

from easy-thumbnails.

Soviut avatar Soviut commented on August 18, 2024

Agreed. By default the image format should be maintained, be it PNG or JPEG (even GIF if possible, though I see issues with animated GIFs potentially making this difficult) and also provide an option to explicitly convert the thumbnail to a different format at the tag level.

from easy-thumbnails.

SmileyChris avatar SmileyChris commented on August 18, 2024

Yep, all that functionality has now been done.

from easy-thumbnails.

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.