Comments (7)
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.
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.
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.
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.
Sounds good to me! I'll jump on the GZIP thing and see how far I get.
from imageproxy.
@runemadsen is this feature made it into master?
from imageproxy.
No, definitely not in master. As far as I'm aware, no one is working on it.
from imageproxy.
Related Issues (20)
- Serving files from Azure HOT 2
- support for svg HOT 3
- migrate off of github.com/Azure/azure-sdk-for-go/storage
- can not cache using minio HOT 3
- ARMv7 (Raspberry PI) docker image support?
- How to upgrade existing installation of ImageProxy? HOT 2
- Persistent caching and no request on ressource after caching HOT 3
- Link to alternative and/or enhanced forks
- Denial of Service by Rendering Image that have very big pixel HOT 4
- Create binary in releases
- Ruby Client HOT 2
- Is there any way to remove metadata from images HOT 1
- Encoding remote url HOT 1
- Passing response headers HOT 2
- Possible native WebP encoder? HOT 4
- Support watermark
- Why is it not using cache? HOT 4
- Why is Content-type always application/xml? HOT 1
- Chinese characters are not supported HOT 1
- Requested URL is not allowed
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 imageproxy.