Giter Site home page Giter Site logo

Comments (4)

markevans avatar markevans commented on July 19, 2024

Hi!
not with the 'thumb' method (assuming you're using this?), but you can either create your own processor, or easier, there is a 'convert' method which you can pass arbitrary command line args to, which get passed to the imagemagick command line, e.g.

my_image.convert('-resize 30x30 -quality 5')

etc.
This can be chained as per usual so you can call '.url', '.data', etc. on it
cheers
Mark

from dragonfly.

 avatar commented on July 19, 2024

Thank you for the quick answer.
For clarification, I wasn't actually resizing, but cropping when i noticed the loss of quality. I don't know what causes it then.

The convert method give's me full control, so that already answers my question for command line arguments. When I looked at the code, there didn't seem to be any quality pre-configurations. So I was left in the dark. I'll handle it with the convert method! Thank you!

from dragonfly.

 avatar commented on July 19, 2024

Update: Turns out I didn't know ImageMagick's default quality value is 92. Sorry and thanks for the support!

from dragonfly.

acrolink avatar acrolink commented on July 19, 2024

I have a question about the .convert method i.e.

my_image.convert('-resize 320x200 -quality 95')
`
Is the resulted images cached or is it re-generated each time the page is viewed? Thanks.

from dragonfly.

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.