I’m having a nightmare with some of the images on my site. I have long rectangular images for some products which keep cropping to 300×300 in the middle of the product.
I want the product archive thumbnails to be square but just scaled down to fit a 300×300 square without any cropping.
I’ve tried the following but it didn’t make a difference:
add_filter( ‘woocommerce_get_image_size_gallery_thumbnail’, function( $size ) {
return array(
‘width’ => 300,
‘height’ => 300,
‘crop’ => 0,
);
} );
Also, the single product page is showing the full image. I take it this is because it’s a long narrow image so I need the same for this i.e. scaled down.
Any help would be really appreciated.
]]>I’m posting on behalf of a person who asked for my help.
She has a blog which is very difficult to backup due to the size > 2GB, we used https://www.ads-software.com/plugins/backwpup/.
I looked at her images and most of them look very large, so I advised to keep them under 200kb.
She has been using the built in Scale Image feature within the Edit Image of the Media gallery to reduce the size of all images.
Unfortunately that appeared not to help the backing up process.
I was wondering if that was the most efficient way to reduce the size of the images within the installation.
Or is WP holding on to the original size but making just a smaller copy?
Any help/advise would be very much appreciated.
Thanks
Eugene
]]>Thank you for the plugin, it work good on my site but things can be better if the featured image is scaled instead of resized in HTML or CSS. It could also make the site load faster since the page size reduced.
Can you recommend a way to archive it?
Thank you.
https://www.ads-software.com/plugins/genesis-grid-loop/
]]>When I create a new post, upload an image to it and insert a thumbnail to the image in the post, which links to the media itself – and then later go to Media and scales the image down, then the post isn’t updated – it is still linking to the original image. The downscaled image it postfixed with some random characters, like this: image.jpg -> image-e1369252531325.jpg
I don’t know if that is by design, if there is any situation where this is desired – but in the above situation, my guess would be that most people would like the image to be resized, also on the existing post?
It’s great to have the posibility to recreate the original image, but why not make a backup of the original image instead of making a new image with the new size? (I hope you understand what I mean with this).
What is both WordPress’ and the users’ comment on this?
Best Regards
Svend Koustrup
How do I fix this??
Please any help will much appreciated!!
Thanks!!
]]>I could not find any questions on this topic in the forum.
Thanks