Zoom at most to original image's size
See original GitHub issueI’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:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
I will take a look once I have time 😃