WordPress does not have a default image size definition called ‘small’, so unless you have defined a custom image size called small, that wouldn’t work.
The default size for the image displayed when it is not hovered is the ‘large’ image, so you wouln’t want to have the ‘thumbnail’ or ‘medium’ image shown as the zoomed-in version as they will be smaller unless you have defined their size to be larger, which although possible is probably unlikely.
Is it the unzoomed or the zoomed image you want to change? If it is the unzoomed image, please defining a value for the size parameter rather than zoomsize:
<?php echo do_shortcode( ‘[zoom size=thumbnail]’ );
If this doesn’t help with solving the issue, please post a link to a page on your site where I can see the issue, and list the sizes defined at settings -> media in your WordPress admin.
-
This reply was modified 9 years ago by
cubecolour.
-
This reply was modified 9 years ago by
cubecolour.
Thanks for your response. Sorry I didn’t get back to you quickly on this. I think the real issue the client has is with it is the disorienting effect of it zooming in so far, or so fast. Is there any way to slow down the effect, or to control theprecentage of zooming?
No, the amount of zoom is governed by the size of the images used.
If you define a ‘zoomed’ featured image size with the height/width set to the required values, you can specify for it it be used for the zoomed image by using the ‘zoomsize’ parameter, but there plugin was not designed to provide a transition or percentage zoom as it is overlaying a cropped version of one version of the image over an uncropped version of another.
OK, I’ll try different sizes and see what works best. Thanks for your help.
It does seem to blow up the image to the same dimensions, not matter what size the original is. I try 1600px, 1200px, and 800px and the zoomed image is still the same size, but with increasing blurriness as I get to smaller original images. I was hoping to decrease the size of the zoomed image, you know, not zoom in as much, as it were. Any way to accomplish that?
Please link to a page on your site where I can see the issue
Hi there,
Nice light-weight plugin with a great effect. Thanks!
But, I am trying to accomplish exactly the same thing (‘not zoom in as much, as it were’) and not having any luck with the code provided.
See https://casa-felix-tenerife.com/?page_id=8 Nearby attractions and services > map image
Thanks!
-
This reply was modified 8 years, 10 months ago by
cubecolour. Reason: incorrect > removed
The zoom scale cannot be set apart from changing which generated version of the image is show.
As a workaround you can scale the original full size version of the image down so it is scaled to the zoom size required. Do this in your preferred image editing app (eg Photoshop/Affinity Photo/Gimp/Paint.Net/Pixelmator etc) before uploading the image to WordPress.
Thanks for the response. I have now scaled down the image but that only blurs the zoomed image, it does not change the scope of the zoom e.g. not zooming in as much.
You can see the results on these pages:
https://casa-felix-tenerife.com/?page_id=504&lang=fr > Services et attractions à proximité > shrunk resolution of original image, very blurred on zoom
https://casa-felix-tenerife.com/?page_id=8 > Nearby attractions and services > shrunk physical size, blurred on zoom
https://casa-felix-tenerife.com/?page_id=502&lang=de > Attraktionen und Dienstleistungen in der Nähe> original size, nice and crisp image even in zoom
Have I misunderstood your suggestion?
Thanks.
I have now been able to reproduce this issue and I can see what has caused it.
I have added a new ‘zoomin’ parameter to the plugin and tested it on a development site.
A default value of 6 is used if this parameter is not included, but a lower value can be used to reduce the amount of zoom if required.
eg: [zoom zoomin=3]
This new parameter is available in version 2.1.0 of the plugin.
Awesome! Works like a charm. Thanks so much for the incredibly fast fix!