agusmakmun / django-image-optimizer Goto Github PK
View Code? Open in Web Editor NEWDjango library that allows optimization of images by using TinyPNG or Pillow
License: MIT License
Django library that allows optimization of images by using TinyPNG or Pillow
License: MIT License
Hi!
When in Pillow mode (i.e. using https://pypi.org/project/python-resize-image/), it would be nice to use all the resize methods (contain, crop...).
Thanks!
Saya menggunakan pillow namun ketika mencoba melakukan pengunggahan dengan file diatas 500kb server terus memberikan 502 Bad Gateway walaupun saya sudah meningkatkan client_max_sizeblablabla di server nginx
Hi!
I want to specify a maximum size for my images (let's say 1000px width and 1000px height). Then I did this:
image = OptimizedImageField(
optimized_image_output_size=(1000, 1000),
optimized_image_resize_method='thumbnail'
)
When I upload a rectangle image (like 4000px2000px), the field adds a white border around it to get a 10001000px image whereas I want 1000px to be the maximum, not the exact size.
The problem is here: https://github.com/agusmakmun/django-image-optimizer/blob/master/image_optimizer/utils.py#L68
Why don't you use the output of resizeimage
directly, which has the right size?
Thanks
Hi, I am working on a large project which has multiple media (image) uploads to the platform. I found your app as a good and quick to optimize the images. however would like to create a issue, feature request to you regarding following.
Currently the image_optimizer only takes size as tuple of two values, width and height. Can we implement a way for taking x and y values to too, so that cropping of image can be done from particular point on x and y axis.
Would like to know your thoughts on this, would be happy to contribute.
Thanks looking forward.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.