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

site-builder only checks against lower-case "jpg" #11

Open
california444 opened this issue Aug 19, 2018 · 0 comments
Open

site-builder only checks against lower-case "jpg" #11

california444 opened this issue Aug 19, 2018 · 0 comments

Comments

@california444
Copy link

california444 commented Aug 19, 2018

HI,

I found one issue with site-builder. It only checks against lower-case "jpg" and doesn't check png at all. Although the resize function tales care of png.
Changing line 54 index.js of site-builder to
return object.startsWith(album + "/") && (object.toLowerCase().endsWith('.jpg') || object.toLowerCase().endsWith('.png'));
fixes the issue.

Thanks for the great work.
Best Roman

Jantek pushed a commit to Jantek/AWSPics that referenced this issue Sep 28, 2018
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

1 participant