Giter Club home page Giter Club logo

django-image-optimizer's People

Contributors

agusmakmun avatar alissonmuller avatar mcueto avatar repodevs avatar vayel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

django-image-optimizer's Issues

Tidak dapat melakukan pengunggahan diatas 500kb

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

Make it possible to not add background

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

Providing new option for image_optimizer method

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.

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.