FAQs

All my product images are showing in different sizes, will the plugin make them uniform without cropping?

Yes.

Does the plugin automatically resize images on upload ?

Yes.

Does the plugin resize only product images?

Yes! only product images are resized by default. However, you can also enable category images resizing in the plugin settings:

How can I change the default WooCommerce sizes?

To change WooCommerce sizes, you can add this code snippet to you child theme functions.php file under Appearance → Theme Editor or using the Code Snippets plugin:

  • Shop image thumbnail (woocommerce_thumbnail):

add_filter('woocommerce_get_image_size_thumbnail', function(){
return [ 'width' => 500, 'height' => 500, 'crop' => 0 ];
});
  • Single product image thumbnail (woocommerce_single):

add_filter('woocommerce_get_image_size_single', function(){
return [ 'width' => 1000, 'height' => 1000, 'crop' => 0 ];
});
  • Single product gallery image thumbnail (woocommerce_gallery_thumbnail):

add_filter('woocommerce_get_image_size_gallery_thumbnail', function(){
return [ 'width' => 100, 'height' => 100, 'crop' => 0 ];
});

Can I use the plugin to resize blog Images?

Yes you can! Since only product images are resized by default, you need to add this code snippet to your theme functions.php under Appearance → Theme Editor:

add_filter('wp_sir_resize_post_type', function($post_types){
$post_types = (array) $post_types;
$post_types[] = 'post';
return $post_types;
});

That's it!

Note: You can also resize images attached to any other post types, by just adding the post type to $post_types array in the code snippet above:

add_filter('wp_sir_resize_post_type', function($post_types){
$post_types = (array) $post_types;
$post_types[] = 'post';
$post_types[] = 'book';
return $post_types;
});

Can I resize all images in Media Library?

Yes you can! to do that you need to add this code snippet to your theme functions.php under Appearance → Theme Editor:

add_filter('wp_sir_is_attached_to', '__return_true');

Can I use the plugin with Dokan Multivendor?

Yes you can!

Can I use the plugin with WC Vendors ?

Yes you can! Just add this code snippet to your theme functions.php under Appearance → Theme Editor.

add_filter('wp_sir_process_frontend_upload', '__return_true');

Does the plugin resize images while importing products from a CSV or XML file?

Yes! Just make sure your server memory limit is set to at least 512M since bulk-import can be a resource-intensive task.

Is the plugin compatible with WP CLI?

Yes! You can use the command wp media regenerate to regenerate thumbnails to match your settings.

Why should I use the Regenerate Thumbnails plugin or similar?

To resize existing images, "Regenerate Thumbnails" plugin will bulk-process the images and trigger our plugin to resize them. Once the process is finished, you can deactivate or delete the "Regenerate Thumbnails" plugin.

Can I delete the plugin after I regenerate thumbnails?

Deleting the plugin is not recommended since WooCommerce or some other plugins may revert changes. Also, when you delete the plugin some features will stop working including WebP images not to mention that any newly uploaded image won't get resized, obviously. The plugin is lightweight and doesn't affect website performances.

I don't find answer to my questions.

We're just a click away to answer all your questions. Contact us at [email protected]