• Resolved tobubuta

    (@tobubuta)


    I am using the Featured Image Zoom toll in a template, using the php callin, and trying to control the size of the zoom, but zoomsize doesn’t seem to have any effect. I am using it like this:
    <?php echo do_shortcode( ‘[zoom zoomsize=small]’ );

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    I tried small, medium and large, but don’t see any difference. We are getting the zoomable image.

    • This topic was modified 7 years, 8 months ago by bdbrown.
    • This topic was modified 7 years, 8 months ago by bdbrown.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author cubecolour

    (@numeeja)

    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 7 years, 8 months ago by cubecolour.
    • This reply was modified 7 years, 8 months ago by cubecolour.
    Thread Starter tobubuta

    (@tobubuta)

    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?

    Plugin Author cubecolour

    (@numeeja)

    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.

    Thread Starter tobubuta

    (@tobubuta)

    OK, I’ll try different sizes and see what works best. Thanks for your help.

    Thread Starter tobubuta

    (@tobubuta)

    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?

    Plugin Author cubecolour

    (@numeeja)

    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 7 years, 6 months ago by cubecolour. Reason: incorrect > removed
    Plugin Author cubecolour

    (@numeeja)

    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.

    Plugin Author cubecolour

    (@numeeja)

    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!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Zoomsize Usage’ is closed to new replies.