-
Notifications
You must be signed in to change notification settings - Fork 17
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
Comments
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. |
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! |
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. |
What about using something like HTTParty instead of curl ? |
if you have apache in front of image proxy you can handle with it: ErrorDocument 500 defaultImage.png |
Is there any way to specify an image to be served if the source image is broken?
The text was updated successfully, but these errors were encountered: