question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Zoom at most to original image's size

See original GitHub issue

I’d like zoom to at most to the original image’s size. It seems that the only way of doing that is with customSize or data-zooming-width / data-zooming-height, which requires knowing the image size. The two values also override the max scaling as well, meaning that I’d have to ajust those depending on the user’s window size.

Any way an additional option could be added in for this use case?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
migueldemouracommented, Mar 25, 2018

Hey @p-4, I was about to reply to your email. Using data-zooming-width/height with zooming.js means the image will always be zoomed to those dimensions, no matter the window size. The reason it works on my website is because I’m using a modified script with the changes mentioned above.

I have the modified script at https://github.com/migueldemoura/migueldemoura.com/blob/master/_assets/javascripts/zoom.js, but I advise you to please wait for the PR https://github.com/kingdido999/zooming/pull/61 to be closed.

1reaction
kingdido999commented, Mar 10, 2018

I will take a look once I have time 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Customizing your Zoom Rooms background - Zoom Support
Maximum file size: 5 MB. Zoom brand assets are available for use in the creation of your own background. How to upload a...
Read more >
Image Zoomer Tool Online - Zoom In or Out an Image - Pixelied
You can zoom in to as much as 20x of your original photo size with Pixelied's ultra zoom feature.
Read more >
How To Zoom in a Photo Without Losing Quality - YouTube
When you zoom in to a photo, the thousands of pixels that make up the photo are enlarged. This makes them more visible...
Read more >
Change your picture size - Microsoft Support
Change the size of your pictures in Microsoft Forms by making them larger, smaller, or zooming in to see just one part of...
Read more >
C37: Using CSS max-width and height to fit images | WAI - W3C
All images require design finesse by making sure the original size fits the ... The zoom level can be increased to 400% without...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found