Thumbnail cropping error
-
Hi,
My dev confirms that your plugin is preventing the correct cropping of the image in the shop page. (featured image).
The smush plugin is causing the problem by forcing the use of the original image.I don’t want to change the smush plugin but if this is the case i will have to.
Is there a way to stop this error.
If you upload an image while smush is disables everything works nicelyThe page I need help with: [log in to see the link]
-
Hi @stelios1111,
I’m afraid that I’m not familiar with such issues happening so far so could you provide us with some additional details about this issue?
Which eCommerce plugin are you using, WooCommerce or something else?
The smush plugin is causing the problem by forcing the use of the original image.
Where exactly is Smush causing this, is it preventing the images from cropping during the upload or when they are added on the products and shown on frontend?
Is it happening even if you use the default WP theme or is the issue theme-specific, also, do you have any additional add-ons for your eCommerce plugin, and is the issue happening with those disabled?Can you try going to Smush > Bulk Smush panel and disable “Resize my full size images” option and see if the issue is gone after that?
Cheers,
PredragHi,
Yes woocommerce.
My dev send me this
Method Smush\Core\Integrations\Composer::process_image_resize is hooked to image_make_intermediate_size filter. In that method (line 156), width and height suffix is removed so intermediate size filename is saved under the same name as the main image. Because of that, all intermediate images have the same path as the main image so sizes that rely on cropping aren’t having properly sized image.Can you try going to Smush > Bulk Smush panel and disable “Resize my full size images” option and see if the issue is gone after that?
Yes i can try that later.The issue is happening only on new uploaded images while smush is enabled. If disabled new uploads work great. What is the best size for resize full size images?
Thanks
Hi @stelios1111
Can you try going to Smush > Bulk Smush panel and disable “Resize my full size images” option and see if the issue is gone after that?
Yes i can try that later.Please do and let us know about results. It will help us investigate it further.
The issue is happening only on new uploaded images while smush is enabled. If disabled new uploads work great. What is the best size for resize full size images?
In general, there’s a “threshold” for “original images” in WordPress that is the 2560px size (any direction) so by default if there are images bigger than that, they are stored as “backup” and additional images with “-scaled” suffix (smaller, resized to 2560px longer side) are create that are then treated as “originals”. That’s WordPress way.
The “resize my full images” option would let you change that but it’s meant mostly to let you use bigger size of original images.
There’s no “right or wrong” settings but I’m not quite sure how it will interact with other plugins, especially if they do use some sort of own cropping/resizing. We didn’t have similar reports bout WooCommerce yet, I think, so if you could please test the behavior with this resizing option disabled and confirm whether it changes anything on your end or not – it would be a great help in further investigation.
Best regards,
AdamHi,
Unfortunately the option didn’t change a thing. Can you check more thoroughly please?Hello Adam,
Anything on this?Hi @stelios1111
I’m afraid I still can’t replicate that but I might be missing something – probably some specific setting.
I have asked our Smush developers for consultation on this and am awaiting their feedback. I apologize for the delay but I’d appreciate a bit more patience. I or one of my colleagues we’ll update you here as soon as we get additional information from our developers.
Best regards,
AdamHi Adam,
I can wait many thanksHello,
I am following up this issue that still remains. Is it possible to have an answer so i can wait for a solution or to change plugin?Many thanks
Hi @stelios1111
I’m afraid we still not able to replicate the problem.
But let’s run some extra tests.
Are you having an issue with the native WordPress image sizes or did your developer register a new image using the add_image_size()?
If so, can you send us the code that was used, we can implement on our theme for some extra tests.
Best Regards
Patrick FreitasHi @stelios1111
I hope you are doing well.
We haven’t heard from you in a while, I’ll go and mark this thread as resolved.
However, feel free to let us know if you have any additional question or problem.
Best Regards
Patrick Freitas
The topic ‘Thumbnail cropping error’ is closed to new replies.