Skip to content
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.

JPG etc are not scaled properly - Fix #63

Open
NielsLust opened this issue Apr 19, 2016 · 0 comments
Open

JPG etc are not scaled properly - Fix #63

NielsLust opened this issue Apr 19, 2016 · 0 comments

Comments

@NielsLust
Copy link

NielsLust commented Apr 19, 2016

The Lightbox code only checks if the extension of the image is in lowercase.

Solution:

Change
if(s.match(/\.(jpeg|jpg|gif|png)$/)!=null)

Into:
if(s.match(/\.(jpeg|JPEG|jpg|JPG|gif|GIF|png|PNG)$/)!=null)

Solution found here: http://stackoverflow.com/questions/19961569/nivo-lightbox-adding-tags-to-image-to-make-them-iframes

Can someone please add this as pull request? Thanks!

@NielsLust NielsLust changed the title JPG etc are not scaled properly JPG etc are not scaled properly - Fix Apr 19, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant