Comments (6)
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.
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.
So is the real issue just about preserving the alpha layer as opposed to preserving the file format?
from easy-thumbnails.
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.
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.
Yep, all that functionality has now been done.
from easy-thumbnails.
Related Issues (20)
- pytest failing HOT 4
- Allow greater control over save_pil_image options HOT 3
- easy-thumbnails 2.8 removed support for high resolution images HOT 4
- 2.8 release breaks on M1 / python 3.9 - symbol not found in flat namespace '_FT_Done_Face' HOT 3
- django-filer 2.1.2, easy-thumbnails 2.8.1 and AWS HOT 3
- No version compatible with django 4.0 och PYPI HOT 11
- Reportlab dependency causes security warning HOT 9
- Cant install easy-thumbnails with Poetry and Django 4 HOT 4
- Template fails to render due to ZeroDivisionError when input is corrupted
- ContentFile without a name breaks easy_thumbnails
- ANTIALIAS is deprecated and will be removed in Pillow 10
- svglib dependency is missing HOT 9
- Imoprt error
- Django 4.1 template tag 'thumbnail' conflict with sorl-thumbnails
- Saving TIFF image raises Value error HOT 2
- How to force a single field to convert the thumbails to JPG even if PNG with alpha was provided
- DeprecationWarning from get_storage_class HOT 1
- Lots of duplicated queries HOT 1
- Support for pillow >= 10.0.0.0 HOT 1
- SVG File.width - This backend doesn't support absolute paths. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easy-thumbnails.