• Resolved nicolaottomano

    (@nicolaottomano)


    Hi all,
    I have an issue with the WPPR lite plugin.

    It is showing the full size image instead of the thumbnail one (150×150? 300×300?).
    As far as I understand, the plugin should automatically select the thumbnail size but actually it always shows the full size image (e.g. 1500×1500), simply resized on HTML/CSS.

    Do I’m missing something? How could I solve?

    Thanks,

    Nicola

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support AC

    (@purplecodes)

    Themeisle Support

    Hello @nicolaottomano,

    I checked the link you provided and it looks like the issue is resolved.
    See here –>> https://prnt.sc/lv4dpb

    Let us know if all is good.

    Thread Starter nicolaottomano

    (@nicolaottomano)

    Hello @purplecodes,
    maybe there is a little misunderstanding. ??

    I’m talking about the image shown by the plugin.
    It uses the 1200x1200px one (I mean, the full size image, like the following: https://www.nicolaottomano.it/wp-content/uploads/2018/03/6112lmjkHIL._SL1200_.jpg ) instead of the thumbnail one (I mean, the following: https://www.nicolaottomano.it/wp-content/uploads/2018/03/6112lmjkHIL._SL1200_-150×150.jpg ).
    It is an easily achievable task by calling the_post_thumbnail() function on wordpress: https://developer.www.ads-software.com/reference/functions/the_post_thumbnail/

    This will reduce the download size, especially on 3G mobile devices, and increase the Google PageSpeed Rank.

    Best regards,

    Nicola

    Plugin Support Vishakha Patel

    (@vishakha)

    Hello Nicola,

    The plugin is taking ‘thumbnail’ sized image automatically – https://prntscr.com/lvzbnk. It might be possible that this size is not available in your WordPress environment for that image or the plugin version is older.

    Kindly try uploading the image again and having the latest version of the plugin.

    Let us know how it goes.

    Thread Starter nicolaottomano

    (@nicolaottomano)

    Dear @vishakha,
    the issue occurs on every page of my blog, the plugin version is the latest one (3.4.10).

    I debugged your plugin step-by-step and found the root of the problem.
    In …wp-product-review\includes\admin\models\class-wppr-review-model.php there is the get_image_id() function.
    In order to get the image id, the plugin uses the following statement:

    $attachment = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE guid=%s", <strong>$this->image</strong> ) );

    $this->image returns the full url. In my case the URL is https://www. etc., while the guid into the wp_posts table is https:// (not https://).

    I changed all the GUIDs replacing them with the HTTPS versions, but I think your programmers should consider that not all the people are tech savy to mess with the WordPress DB and, in this way, they could get the image ID in another way.

    Best regards,

    Nicola

    Plugin Support Silviu-Alex Dinu

    (@silviu0themeisle)

    Hello @nicolaottomano,

    Thank you for your response.

    When creating a review post, WPPR asks if you would like to add a product image, otherwise it will use the post’s featured image. The images you are referring to are the featured images of the post itself. I have tested this with IsleMag and when using a smaller picture (150×150) the featured image of the post (the one that appears on the blog page) is looking like this -> https://prntscr.com/lxgenz instead of using a large picture which will look like this -> https://prntscr.com/lxgeya

    I believe this is a theme related feature. Could you please try using a smaller featured image for the post and see if the issue gets solved?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Thumbnail size’ is closed to new replies.