A vulnerability in this plugin has been reported:
]]>Hi guys,
can anybody make an update for php 8?
Florian
]]>I’ve used this plugin many times and it works great.
Recently I had some webp images and this plugin doesn’t seem to be compatible.
Is there a way to force square thumbnails with webp images?
]]>Hello support
I am facing an issue where the square thumbnails in my category pages. When viewing the product image on single product and enlarging the image. Then when returning to the category page the picture is non aligned with the others. This is changing when browsing between different single products and enlarging the picture.
See for info: https://imgur.com/a/nkHfqmv
Hope you can help. I really like this plugin ??
Thanks!
]]>Seriously I cannot understant why WooCommerce does not yet offer the option to have square thumbnails and we have to resort to this plugin which is soon going to be onbsolete.
Who likes their shop with product photos of different aspect ratios or with cropped photos that hide half of the product?
Is there an alternative with CSS for doing what this plugin does?
I would pay for a plugin that does the same thing but with a CSS container instead.
Or maybe it’s not technically possible for responsivness reasons? I don’t know.
]]>Not sure if this plugin has been abandoned or not, but I can’t seem to get it to work. I activate the plugin, change/save my settings… and then what? I read somewhere that I then need to regenerate my thumbnails. Is this correct? It doesn’t seem to make a difference to my product images.
I hope this plugin gets an update soon – it’s exactly what I need for my shop! I’m getting desperate!
]]>After installing the plugin,image background colour is black. I changed the background colour of the image to white. But that is not working. Can you please help as soon as possible. I installed the plugin, But still my product thumbnails a background is black
]]>Error in wordpress:
Skipped Attachment ID 572:
There has been a critical error on your website.
Error in php log:
/home/c in /home/canalalarm/public_html/****.com/wp-content/plugins/square-thumbnails/admin/class-square-thumbnails-admin.php on line 324
Has anyone had this issue or come across a fix?
]]>Do you have any update plans?
]]>Hi,
the plugin is working great but recently I begun using Additional Variation Images Gallery for WooCommerce
which I think alters product single images with its own and Square Image plugin includes its thumbnails class in its converting action
is there a way to exclude some thumbnail classes from it’s converting action?
thank you
At some point, I think a WordPress update may have stopped this from working, as all my product thumbnails in Woocommerce are now cropped to a square, rather than being filled-in at the edges by this plugin like previously.
Is there a plugin update in the works, or have I configured something wrong by mistake recently?
]]>Hi guys,
I’m using your plugin as I couldn’t find any other possible solution to creating square thumbnails. However, i’m sensing that there’s a rather deep decrease in the IQ.
Can anyone confirm or offer a solution?
Cheers!
D
Hello,
I’m working on a client site and needed this feature. Installed plugin and went through settings, did a regenerate thumbnails, but nothing has changed.
Can you please help in getting it to work?
Thanks and best regards,
Paul
]]>Looking to upgrade the system. Is the latest version of the plugin compatible with PHP7?
Thanks
D
Would be cool to have this work with 2X thumbnails made with WP Retina 2x
]]>I want to share a tip to crop ONLY specific image sizes. I’m share here because this solutions is not the “better solution”, but works. Let’s to code:
In my theme functions.php file:
function sc50k_check_size_to_crop($size){
$allowed_sizes = array('thumbnail', 'woocommerce_thumbnail', 'woocommerce_single', 'woocommerce_gallery_thumbnail', 'shop_catalog', 'shop_single', 'shop_thumbnail');
if ( !in_array($size, $allowed_sizes) ){
return false;
} else {
return true;
}
}
The code above verify if the $size in the crop moment is an $allowed_size. In the code, I’m using the Woocommerce sizes. I just want to crop product image sizes. And ONLY the thumbnails.
In the plugin file plugins/square-thumbnails/admin/class-square-thumbnails-admin.php, search for the foreach($meta['sizes'] as $size=>$m){
. This foreach must to be:
foreach($meta['sizes'] as $size=>$m){
$kontinue = sc50k_check_size_to_crop($size);
if ($kontinue) {
//$m['file']=$path->dir.$m['file'];
$result=$this->create_square($m);
$meta[$size]['width']=$result->sqW;
$meta[$size]['height']=$result->sqH;
}
}
This is a little change in the plugin file. It verifies if the current size (crop moment) is allowed. If returns true, continue with the square crop. If false, skip.
IMPORTANT: In the first plugin update, this change will be removed. That’s the reason to be a temporary solution. For each plugin update, this foreach code
must be adjusted with the code above.
Sorry my bad english, I’m brazilian. If anything is wrong, forgive me.
]]>Hi, thanks for this great plugin. Just one question – is there a way to choose the alignment of the cropped image within the square. Currently if the image is taller than it is wide, it is left aligned within the thumbnail square. For my application, it would be neater for it to be centred. Is this possible or could this be a future enhancement? Thanks
]]>Hi developer
It would be really really useful if you somehow could make a feature to only apply cropping to product images. I only use this plugin for uploading product so that i can upload the pictures i get from my product supplier directly without editing them. But it also crop stuff like my email header images and everything else that shouldnt be cropped. This means i have to have the plugin deactivated all the time and only activate it when i upload products.
/Kent Kj?rgaard Jensen
]]>So this plugin crashed and when i debugged it said undefined function exif_imagetype(). Turns out some servers have this disabled. What I did was to put this
if (!function_exists('exif_imagetype')) {
function exif_imagetype($filename) {
if ((list($width, $height, $type, $attr) = getimagesize($filename)) !== false) {
return $type;
}
return false;
}
}
at the start of the wp-content/plugins/square-thumbnails/admin/class-square-thumbnails-admin.php (https://wp-mix.com/php-fix-exif-imagetype-error/ code found here) and the error is gone now.
]]>Great plugin – it’s definitely working well, but the output is super pixelated. Can you please update the plugin so when generating JPG thumbnails it adheres to the WordPress setting for ‘jpeg_quality’? That way we can override that setting at a global level and have it apply with your plugin too.
Looks like it’s the function saveIm, line #163 of class-square-thumbnails-admin.php, adding another parameter to specify the jpeg_quality.
eg:
elseif($mime=='image/jpeg'){
imagejpeg($newim, $f, apply_filters('jpeg_quality', 80));
}
]]>
Hi there,
Great plugin that should save a lot of time!
Unfortunately, it applies the Square transformation to sizes that should not be square (eg. featured: 1500×430) and as such makes these images physically larger than their required dimension (eg. 1500 x 1500).
Temporarily, I modified my admin/class-square-thumbnails-admin.php to check that the required size width=height as follows:
357 foreach($meta['sizes'] as $size=>$m){
358 if ($m['width'] == $m['height']) {
360 //$m['file']=$path->dir.$m['file'];
361 $result=$this->create_square($m);
362 $meta[$size]['width']=$result->sqW;
363 $meta[$size]['height']=$result->sqH;
364 }
365 }
This just applies the pad transform to images that SHOULD be square.
Could you add a check box to make this optional?
]]>This plugin didnt work at all. when re generating woo-commerce thumbnails it just didn’t process.
]]>Hi
Greate plugin!
I would love to see Bulk action on images, which is already uploaded ??
EDIT: Ahh renegenerate thumbs ??
]]>Thanks for the plugin! It needed so much time to find something like this but now there’s a problem: If I upload a title image for a blog post, it automatically makes square thumbnails and I don’t know why ?? I only need the plugin for woocommerce…
Thx in advance!
]]>Hi, Can i ask
after i install do i need to regenerate the thumbnail in order to see the changes?
Please advise
thanks
How exactly do I actiavte this? I have activated the plugin but there doesn’t seem to be any changes. Is there a button I must press somewhere?
Appreciate your help.
Jonah
We’ve noticed an issue with uploading GIFs. When the plugin is active, any GIF files we upload do not end up in the media library. Anyone else running into this?
]]>Is this correct ?
Line 169, class-square-thumbnails-admin.php
elseif($mime==’image/gif’){
imagegifg($newim, $f);
}
Hi! my regular pictures got treated as thumbnails.. All the pictures on my site is now black background with spacing around. is there anyway to reset it back?
]]>My thumbnails are being created but they are not being pulled into the WooCommerce layouts because of the way they are named. For the Related Products view, WooCommerce pulls in the medium img. The medium image that Square Thumbnails created is called “image-name-300×175.jpg” and even though there is not a thumbnail called “image-name-300×300.jpg”, the system is creating one and then displaying “image-name-300×300.jpg” which is a cropped image not created by Square Thumbnails.
Is there anyway to correct this? The only way I’ve been able to fix it is to delete the 300×300 image and change the name of 300×175 to 300×300 and put it back via ftp. Is there a setting I’m missing?
I should mention, If I build my own essential grid and have it pull in the medium images, it will pull in the one built by Square Images “image-name-300×175.jpg”, but not when WooCommerce creates the grid.
Thanks in advance
]]>