• Resolved bobsled

    (@bobsled)


    After updating to V4.2.0, the size settings I have for images is not working as before.

    I tried adjusting the settings, but to no avail. So I have rolled back to V4.1.0 until there is a fix.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter bobsled

    (@bobsled)

    I should add that I am using an optional image size with this code.

    // Add image size
    add_image_size( 'related-post-thumbnails', 290, 135, true ); // thumbnail 290 pixels wide by 135 pixels height, hard crop

    It looks to me that the new version is not accessing this code to correctly size images.

    Plugin Support Emma

    (@emma24)

    Hi @bobsled,

    Thank you for reaching out! Could you please let us know where you are adding this specific code? Are you adding it to your theme or directly in our plugin? If in the plugin, please specify where the code is added.

    Additionally, in our recent update (v4.2.0), we introduced the Image Size option in the “Styles” tab, which allows you to set specific ratios for the post thumbnails. Could you check if this feature fulfills your requirements?

    Looking forward to your response!

    Thread Starter bobsled

    (@bobsled)

    Thanks for getting back to me.

    I added the code above to functions.php. With the previous version, I could then select “related-post-thumbnails” from the “Related posts thumbnail size” selector.

    With the new version, there is no option to set a fixed size, only a selection of ratios.

    However, with a bit of experimenting, I found that 21:9 ratio sets pretty much the same size as I had before. So it more or less fixes the issue.

    But it would be better if there was an option to set a fixed size by px as with the previous version.

    Plugin Support Emma

    (@emma24)

    Thank you for your feedback and for experimenting with the new ratios to find a suitable match! 😊

    The approach you mentioned—using custom code to set a specific image size—can indeed work well for developers or more technically inclined users. However, we realized that for many of our users who may not have a technical background, setting custom sizes via code might not be feasible.

    To make it more accessible and user-friendly, we introduced the “Image Size” option with predefined ratios in the new version. These ratios are based on common and widely used image sizes for post thumbnails, offering flexibility while keeping the setup simple for everyone.

    That said, I appreciate your input, and I’ll share it with the team for consideration as we continue improving the plugin.

    Thread Starter bobsled

    (@bobsled)

    Thanks, I understand your logic.

    But one question. Would it be possible to add an additinal ratio to the default list by using code in functions.php? Then I could get my image size perfect.

    Hopefully, this is possible.

    Plugin Support Emma

    (@emma24)

    That makes sense! I will get back to you after consulting with the dev team.

    Thank you!

    Thread Starter bobsled

    (@bobsled)

    Thanks, I’ll wait to hear back from you.

    Plugin Support Emma

    (@emma24)

    Hi @bobsled,

    Thanks for waiting!

    I discussed with the dev team and unfortunately adding new option in the Image Size through code in functions.php is not possible.

    This is because the values in this dropdown are manually defined within our plugin, unlike the Thumbnail Sizes, which are dynamically pulled from WordPress’ registered thumbnail sizes.

    Thread Starter bobsled

    (@bobsled)

    Okay. Thanks for the info.

    But I’ve managed to recreate the same result (well 99%) on my testing site as the previous version with a few lines of CSS.

    So, I’ll make the updates to my live site in the next few days.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Image sizes not respected in V4.2.0’ is closed to new replies.