Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Zoom Effect(SKU# FLEX-00005)

TOPIC: Mouse Wheel Zoom: 100%

Mouse Wheel Zoom: 100% 10 years 1 month ago #9198

I notice that the mousewheel zoom extends over 200% or more.

how should i stop it at 100%? else, it turns BLURRY.

I've attached two screenshots showing you one which went blurry and the one at 100%.
Attachments:
Last Edit: 10 years 1 month ago by Ningning Niumai. Reason: adding attachment for easy understanding.
The administrator has disabled public write access.

Mouse Wheel Zoom: 100% 10 years 1 month ago #9209

Hi,

FYI: In Photography, there are 2 types of Zoom. Digital Zoom and Optical Zoom. I am sure you are aware of those 2 terminologies.

At first, the "optical zoom" will be used to zoom the thumbnail. (by taking the large picture as reference).
If the WheelZoom is activated, and when the optic zoom reaches to end, upon using the mouse wheel the "digital zooming" will continue zooming the thumbnail, which of course destroys the pixels and causes pixel deformation. There is no limit for the MouseWheel, it can go to infinite. (just like how Photoshop lets you digitally zoom pictures as much as you want)

Enabling WheelZoom is not ideal if your product picture is already large enough. Digital zooming will always deform the picture, even 1.5x is enough to deform pixels. But that has been requested a lot by our customers (i still don't understand why they demand it though) so we did it ;)

If your product pictures are larger than 900x900, I won't suggest you to use WheelZoom at all.

Regards,
Support
Last Edit: 10 years 1 month ago by Support.
The administrator has disabled public write access.

Mouse Wheel Zoom: 100% 10 years 1 month ago #9216

Yes, i understand the terminologies about optical and digital zoom.

Well, there are times when i have to zoom at 80% or 60% and WheelZoom comes in handy. I'm talking about having a zoom-range so i can adjust how much a user can zoom keeping maximum at 100% of course.

There are countless such examples with innerzoom and mousewheel together with a ZoomRange or PowerRange. One such example with ZoomRange at maximum 5x:
codecanyon.net/item/zoome-jquery-image-zoom-effect-plugin/full_screen_preview/2973067

So any solution?
The administrator has disabled public write access.

Mouse Wheel Zoom: 100% 10 years 1 month ago #9231

Ohh yes, there is a parameter to limit the ScrollZoom. But again! if you have no specific file resolution, this won't work for all pictures. But of course it is better than nothing.

To add the parameter, unfortunately you need a coding change. We didn't include that parameter to plugin parameters, because in case of wrong usage, it might messed up the zoom entirely.

Open this PHP file;
/plugins/system/flexibleZoom/flexibleZoomEffect.php

find this expression:
scrollZoom : ".$zoom_scroll.",

(there is only one place you can find it. (line#102nd) and right next to it, add this expression:
minZoomLevel: '0.7',

So, eventually it will look like this:
scrollZoom : ".$zoom_scroll.",  minZoomLevel: 0.7,

(don't get confused with the name of the parameter. It behaves as "maxZoomLevel" for the ScrollZoom. If you decrease number, the zoom level allowed is increased. (for instance 0.3 is almost the default value) but if you increase it and make it around 0.9, the zooming level will stop around x2 which is where optic zoom is supposed to end. So there won't be any scrollZoom.

So i would suggest you to start from 0.3 and increase it one-by one until you get the best result (because the optimum value will depend on large picture and thumbnail resolutions difference) Probably the 0.5 or 0.55 would be the optimum value you need.

Regards,
Support
Last Edit: 10 years 1 month ago by Support.
The administrator has disabled public write access.

Mouse Wheel Zoom: 100% 10 years 1 month ago #9232

Perfect. Thanks so much :)

I feel you should include this in the next version of the plugin. Doesn't make sense to have blurred picture. A limit must be presented. I understand about messing up the zoom effect but still.
Last Edit: 10 years 1 month ago by Ningning Niumai.
The administrator has disabled public write access.

Mouse Wheel Zoom: 100% 10 years 1 month ago #9250

Hi,

This parameter is already exist. minZoomLevel and maxZoomLevel are defined variables in the script file. (maxZoomLevel also defined to limit the minimum zoom level, the opposite of minZoomLevel.)

But we need to make sure, it is working 100% in all cases before putting a plugin parameter in the backend. Otherwise, people might claim "your extensions faulty, it doesn't work" ;)

Probably the development guy eliminated that parameter for now, because it was generating bugs with low resolution pictures, or maybe he just didn't have enough time to test any further. I can't be sure. But you are right, putting a plugin parameter to backend wouldn't hurt. I can't say the same thing about mazZoomLevel, it needs some further improvements but minZoomLevel does its job properly.

If you like Zoom Effect and satisfied with the support you have received, please "write a review" on:
www.flexiblewebdesign.com/Virtuemart-Modules/Virtuemart-Zoom-Effect-Plugin

Rate Zoom Effect and write a couple of sentences to share your experience with the support team.
It won't take more than 2 minutes from you but it is extremely important for us.

Thanks in advance!

Regards,
Support
Last Edit: 10 years 1 month ago by Support.
The administrator has disabled public write access.
Time to create page: 0.168 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo