Attached images meta data result in blurry product main image
-
Hello,
i’m not 100% sure this is the problem, but i import my product via an app manager and unfortunately it don’t propulate the meta data of dimensions for images which leads to blurry main image because apparently woodmart set the size to 0 if there is not
so basically it display a 100X100 image in 600X600 and don’t show up the right one (even if i disable the lazy loading)
how can i overpasse that issue (tried to set the size directly in the woodmart template, no success)

missing dimension:

find out the attribute that cause the problem is
sizes="(max-width: 1px) 100vw, 1px"
if i remove it or change the size it’s ok
Hello,
Thank you so much for purchasing our theme and contacting our support center.
Could you please check how it works with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand is it our theme issue or not?
Send us a link where we can see this on your website.
Regards
it’s working fine with twenty twenty,
i realy really think it’s realted to lazyloading/missing meta dimensions of the picture
if anyone had the same issue here’s what i did
jQuery(".wp-post-image.woodmart-lazy-load,.size-woocommerce_single").removeAttr("sizes");
Hello,
Could you please disable all plugins that are not related to our theme and provide us your admin access so we can check it? Allow us to switch between themes temporarily.
Thank you in advance
here you go,
i disable almost eery plugins and kept those for the theme i guess
We see that you imported images and set all sizes to 1x1px. Try to increase images size for your products in Appearance -> Customize -> WooCommerce -> Product images and then regenerate all thumbnails using this plugin https://wordpress.org/plugins/regenerate-thumbnails/
did you change the thumbnails size already ? (attached screenshots)
because i tried that and regenerates thumbnails before that and it wasn’t fixing it (i already had that plugin)
but now i regenerate it and it’s working, but
the thing is i will import a lot of products soon and i don’t want to run the plugin to regenerate the new products (or each time i import)
i just tried to import a product
and it’s still the same
Attachments:
You must be
logged in to view attached files.
No we didn’t change anything. It is how the import plugin works and we can’t change anything with that in our theme scope. You can try to contact plugin’s developers for help in this situation.
ok i will keep with my solution for the moment then
thank you very much
The topic ‘Attached images meta data result in blurry product main image’ is closed to new replies.