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

Firefox dislays images scaled, instead of full images #569

Open
calarndt opened this issue Jan 30, 2017 · 2 comments
Open

Firefox dislays images scaled, instead of full images #569

calarndt opened this issue Jan 30, 2017 · 2 comments

Comments

@calarndt
Copy link

calarndt commented Jan 30, 2017

Using Firefox 50.1.0
From firefox "View image info"
1,456px × 1,488px (scaled to 132px × 135px)
works perfect in chrome...
Ok so what appears to be happening is that Firefox/lightbox is rendering the images at the specs of the height and width attribtes of the tag from the webpage. Whereas in the chrome/lightbox the clickable image on the webpage is scaled but the image as shown in a lightbox is full size. The Chrome way of doing things is the action I'd prefer from firefox.
This is the html code:

<a href="Electric_Toyota.png" data-lightbox="10758" target="blank"> <img src="Electric_Toyota.png" alt="some_text" style="width:160px;height:120px;"> </a>

@kess42
Copy link

kess42 commented Feb 6, 2017

Well, whereas Chrome and InternetExplorer seem to scale the image such that it is shown in full size, Firefox scales it to full width only and for the hight you have to scroll.
Actually for me the Firefox scaling is exactly what I would like to see in all browsers, because I frequently have high pictures (like newspaper articles that can be read scrolling down quite easily, but have tiny letters in full image mode).
So I guess, this is a feature request for an option "fitImagesWidthInViewport" = "true". Does this make sense?

@lokesh
Copy link
Owner

lokesh commented Nov 26, 2017

Possible related: #514

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

No branches or pull requests

3 participants