Giter Club home page Giter Club logo

Comments (7)

willnorris avatar willnorris commented on September 27, 2024

impact on caching should be relatively minimal if you just add a Gzip field to the Options struct. I was contemplating doing something similar to convert and return a webp image if the client supported it, but never got to it (also, I don't think there are any webp encoding libraries for go). Idea would be the same though... set the options value based on a request header.

from imageproxy.

willnorris avatar willnorris commented on September 27, 2024

speaking of caching, is this how you're running imageproxy? If so, then it looks like you're running with the in-memory cache which will eventually eat up all your available memory (I think). I suppose I should change the default to use the NopCache that gets used in tests. If you're relying on cloudfront for the caching, then that would probably work fine for you.

from imageproxy.

runemadsen avatar runemadsen commented on September 27, 2024

Awesome, thanks! Yes, that's how we're running it. I think that NopCache is a great idea for the default. It would at least be a great setting for people who have a CDN in front of the proxy. Is there currently a setting I can use for this, or does it need to be implemented?

from imageproxy.

willnorris avatar willnorris commented on September 27, 2024

there's not setting for it currently, it's just used for tests. I think it would make sense to modify cmd/imageproxy/main.go to make that the default and add a new -memoryCache (or similarly named) flag to use the in-memory cache.

from imageproxy.

runemadsen avatar runemadsen commented on September 27, 2024

Sounds good to me! I'll jump on the GZIP thing and see how far I get.

from imageproxy.

tuananh avatar tuananh commented on September 27, 2024

@runemadsen is this feature made it into master?

from imageproxy.

willnorris avatar willnorris commented on September 27, 2024

No, definitely not in master. As far as I'm aware, no one is working on it.

from imageproxy.

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.