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

Adds support for fetching cached images from an HTTP(S) source #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brandonhudson
Copy link

Adds support for fetching cached images from an external source (like AWS S3) that provide the cached image via a url. The current implementation fails with a 500 error because the image is not located on the filesystem. fs.readFile... only supports fetching files located on the filesystem (reference).


let buffer = null;

# If the url is an HTTP url, get the image from the external source

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a valid js comment. Try // or /* .. */

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

Successfully merging this pull request may close these issues.

3 participants