Thanks Teitbite, excellent Gavick service as always. Much appreciated.
The fix is definitely a major improvement and good enough for production use....
....but there is still some pixelation due to the scaling of the zoomed preview image? I would think that 1:1 scaling (100%) of the large uploaded thumbnail would be the only way to prevent pixelation on a zoom. This doesn't seem to happen and the zoomed preview is being scaled to larger than the original. There is a 25% increase in the zoom preview image over the original uploaded image.
Example: Uploaded product image is 750px x 1000px. In Hikashop - Image width/height and Thumnail width height are set to 750 x 1000. Product image width is set to 375 x 500. Force image size = Yes and Keep ratio = yes. So frontend product images and thumbs are all scaled correctly, correct aspect ratio and are crisp & clear. Perfect!
The zoomed image however takes the original uploaded thumbnail (750px X 1000px) and scales it to be 938px X 1250px? It is adding 25% increase to the original image size. So it is still slightly pixelated (good enough - just not perfect
). I would think that 1:1 zoom on the original uploaded image would be ideal?
I can see that the zoomed preview image is now correctly taking the original uploaded image (media/com_hikashop/upload/image.jpg) to apply the zoom rather zooming than the resized product image. Any idea how to now set the zoom to be 1:1 rather than 1.25:1? I had a play around with the zoom function in gk.scripts.js but unfortunately I just can't work it out. Thanks.
PS: I don't mean to be a nuisance and the new zoom script is actually good enough to use for most general products but if you were wanting to zoom intricate hi-res images (like this example:
https://www.magictoolbox.com/magiczoom/modules/hikashop), it would detract for the otherwise excellent template you've produced.