Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fallback/Default image? #13

Open
mahemoff opened this issue Jun 20, 2013 · 5 comments
Open

Fallback/Default image? #13

mahemoff opened this issue Jun 20, 2013 · 5 comments

Comments

@mahemoff
Copy link
Contributor

Is there any way to specify an image to be served if the source image is broken?

@bingeboy
Copy link

I'm just thinking off the top of my head but you could try and have a default image stored in localStorage to test against.

@eahanson
Copy link
Owner

For simplicity, imageproxy uses curl to download the image and pipes the result directly into imagemagick. I can't off the top of my head think of a way to handle a default/fallback image without making some big changes there.

Ideas and/or pull requests are welcome though!

@mahemoff
Copy link
Contributor Author

Thanks, I'm not using it yet, but if I do, I could add that pull request.

I think (hope) it should be fairly trivial to just detect a failed request and substitute another URL.

@opensourceame
Copy link

What about using something like HTTParty instead of curl ?

@francescomagnoni
Copy link
Contributor

if you have apache in front of image proxy you can handle with it:

ErrorDocument 500 defaultImage.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants