> For the complete documentation index, see [llms.txt](https://docs.sirplugin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sirplugin.com/features/trim-whitespace.md).

# Trim Whitespace

This feature removes any blank or empty space surrounding an image.

![](https://1613911975-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M6IZsaWWLIsYTZFLvfP%2Fuploads%2FKpNYtU79OAUkSmOhBH1l%2Fimage%20\(2\).png?alt=media\&token=f63300b5-0749-4444-bf2e-791378aac769)

The Whitespace trimming tool is disabled by default, to enable it, go to the plugin settings under *WooCommerce → Smart Image Resize → Settings*.

![](https://1613911975-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M6IZsaWWLIsYTZFLvfP%2Fuploads%2F0VuFv1LbaNSZ8BIl9hgd%2Fi00023.jpg?alt=media\&token=25150534-95c8-446d-8ef3-c2f5b2e1b52b)

**Border Size:** Use this option to leave an extra whitespace around image.&#x20;

**Tolerance Level**: Increase this to trim away colors that differ slightly from pure-white.&#x20;

{% hint style="info" %}
Run bulk resize to apply this change to existing images.
{% endhint %}
