Herman K wrote:Yes, after clicking it should, and it does not does so and continues using scaled down version instead for zoomed view, so zoom button in previous version was useless for vertical images, it did almost nothing - increased just a bit pixels more, in this version it correctly resizes <img> element, but does not replaces its src with original full size image link.
First of all, just to clarify, current version has a BUG which you are currently experiencing with your vertical image. It is supposed to zoom in to the size of the loaded image, NOT the dimensions of the original uploaded image, which are WRONG for the loaded image.
Herman K wrote:I totally agree with you that serving scaled down images for regular viewing without zooming is better, I do not argue with that. Point is that I expect to see original image by clicking zoom on any device regardless of screen sizes, aspect ratios e.t.c., without it purpose of zoom button is unclear.
Of course, as you must understand, what you are asking for here is that when the "zoom" button is clicked, a "loading" dialog would first appear. Only after the original image is fully loaded, would the zoom effect apply (as opposed to having the zoom effect apply instantly like now). This would be further complicated on touch devices that use "pinch" to zoom.
Furthermore, the amount of "zoomability", even for original images, is relative to the original image vs display size. For example, an original image size 1600 px would not have any zoom at all on a 1920 px display (it's already displaying at full size), while on a 1024 px display, there would be at least 50% zoomability for the same image. So as you must understand, the amount of zoom available is always arbitrary ... It might be a lot, very little, or nothing at all, depending on the display size vs the original image size.
The last option of course, is to always load the full size original image, even on small screens. This of course may lead to the visitors having to load 100 MB of data, on small mobil devices, when swiping through 100 images, instead of 25 MB of data where images are optimized for the display.
As for "the purpose of the zoom button"
, I see your point, but the idea is to be able to zoom loaded
images to their actual size, since they will always be scaled down slightly in the browser to fit the viewport (unless the original image is smaller than display size). The zoom button is of course optional and personally I don't use it or see others using it much either. It's optional behavior for the popup mechanism to zoom in the current image to it's actual size. This is how modern popups normally work (for example Photoswipe
, see demo) ... To incur a DIFFERENT image (larger) to load after clicking zoom, would require some disrupting behavior of having to wait for an image to load before the zoom applies.
With the above in mind, I'm not sure what you are suggesting? I haven't seen any other popup/gallery function like this, unless they are blindly loading full original images into all devices, regardless of display size. Perhaps they might have a "Download" button (which X3 also has), that always triggers the original image, but this does not translate into dynamic "zoom" functionality directly from the zoom button.
At best, I can only think of a solution where the "original" image would start loading AFTER zoom is clicked. While the original image is loading, the intermediate image would display at original image dimensions, but it would appear blurry of course. When the original image is loaded, it would replace the blurry image.
Happy to hear your thoughts, but please understand the logical implications of such behavior.