# Getting Started

{% content-ref url="/pages/-M6IZuaTLZlA3ML30I0J" %}
[1. Installing Smart Image Resize Pro](/getting-started/master)
{% endcontent-ref %}

{% content-ref url="/pages/TWeCOIr6Xl4LJXGZId6w" %}
[2. Activating your License Key](/getting-started/2.-activating-your-license-key)
{% endcontent-ref %}

{% content-ref url="/pages/-MBg-wAI-4Ea9vyudWTX" %}
[3. Resizing Existing Images](/getting-started/usage)
{% endcontent-ref %}

### FAQs

{% content-ref url="/pages/FllgsHGf5MmGQNSngVdM" %}
[Pre-sale Questions](/faqs/pre-sale-questions)
{% endcontent-ref %}

{% content-ref url="/pages/-MC3thT8zuQNX0cZ-0yP" %}
[Billing Questions](/faqs/billing)
{% endcontent-ref %}

{% content-ref url="/pages/yoh9ER0gm1MT14uIVEEY" %}
[General Questions](/faqs/general-questions)
{% endcontent-ref %}


# 1. Installing Smart Image Resize Pro

{% hint style="warning" %}
**Heads up!** Before installing Smart Image Resize PRO, make sure you deactivate the free version if already installed.
{% endhint %}

1\. Click the button "**Download"** in your purchase confirmation email to download the plugin zip file to your computer.

{% hint style="info" %}
Didn't receive your purchase confirmation email? [Log in to your account](https://sirplugin.com/myaccount) to access your license key and download link.
{% endhint %}

![](/files/PEvOiLn7aFd9s68hJIw2)

2\. In your WordPress admin, go to *Plugins → Add New.*

![](/files/eomaccoa51RZDMQHoDa6)

3\. Click the **"Upload plugin"** button, choose the zip file you've just downloaded, and click the **"Install Now"** button to start installation.

![](/files/D8EgjRXg5iWWAnDQqlNP)

4\. Finally, click the button **"Activate Plugin"**.

![](/files/RWIuGubPfubdCEaAjvwk)


# 2. Activating your License Key

{% hint style="info" %}
**Heads up!** Before activating your license key, make sure you installed Smart Image Resize PRO.
{% endhint %}

1\. In your WordPress admin, go to the *WooCommerce menu → Smart Image Resize → Manage License*.

![](/files/BxFOTCr7OwxUZxOBIi5l)

{% hint style="info" %}
If you're not using WooCommerce, you can activate your license key under *the Settings menu → Smart Image Resize → Manage License.*&#x20;
{% endhint %}

2\. Copy and paste the license key you received in your purchase confirmation email, and click the **"Activate license"** button to activate your license key.

![](/files/l06hcNeFycBfeY4oHZHD)

{% hint style="info" %}
Didn't receive your purchase confirmation email? [Log in to your account](https://sirplugin.com/myaccount) to access your license key and download link.
{% endhint %}

#### Can I change the license key to another domain after I activate it?

Yes, but before you activate your license key on the new domain, make sure you unlink it from the old domain. Here's how:

1. Go to *WooCommerce menu →  Smart Image Resize  →* *Manage License*
2. Click the button "**Deactivate license"** to remove the license key from the old domain
3. Now, you can activate it on the new domain

{% hint style="info" %}
Having trouble activating/deactivating your license key? [Log in to your account](https://sirplugin.com/myaccount) to manage your site activations or email <support@sirplugin.com> for support.
{% endhint %}


# 3. Resizing Existing Images

If you have already images uploaded to your WordPress media library follow the steps below to bulk-resize them.

{% hint style="info" %}
**Notes:**

* The plugin is pre-configured to make your product images the same size. To adjust settings and options, go to the *WooCommerce menu → Smart Image Resize → Settings.*
* Newly added images are processed by the plugin automatically upon upload.&#x20;
  {% endhint %}

{% tabs %}
{% tab title="Using the built-in Bulk Resize tool" %}
{% hint style="info" %}
Introduced in version 1.16.0 and later.
{% endhint %}

1. In your WordPress admin, go to WooCommerce > Smart Image Resize > Bulk Resize
2. Click the "Start Processing" to start resizing existing images

<figure><img src="/files/lVZOZ6IXCw9Jl7ByKbUS" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Using ReThumbify" %}
To resize existing images in bulk, you'll need to install the ReThumbify plugin. Here’s how to get started:\
\
&#x20;<a href="https://rethumbify.com/files/rethumbify.zip" class="button primary">Download ReThumbify Free</a>

1. Navigate to your WordPress admin dashboard.
2. Click on the "Plugins" menu.
3. Select "Add New".
4. Click "Upload Plugin" at the top.
5. Select rethumbify.zip
6. Click "Install Now".
7. Once installed, click "Activate".
8. Navigate to Tools > ReThumbify
9. Click the "Start Regeneration" button to start processing your images.

<figure><img src="/files/NrsIU60GYmNNvDJnl9IE" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Using Regenerate Thumbnails" %}
To resize existing images, you'll need to install the **Regenerate Thumbnails** in order to process images in bulk. To do so, in your WordPress admin, go the *Plugins menu → Add New.*

1. In the search box, type *regenerate thumbnails*, and click the button **"Install Now",** then "**Activate"**.

![](/files/j275FVNvyKmu5w2NneiZ)

2. Once the plugin is activated, go the *Tools menu → Regenerate Thumbnails.*

![](/files/oAb9kfquIA2rB6OOZbs4)

3. Finall&#x79;*,* click the button "Regenerate thumbnails for all attachments" to start processing your images.

![](/files/MXn5yh1VUD3nHrVl2q9j)
{% endtab %}
{% endtabs %}

#### How to check resized images?

To view resized images, go to your media library under *Media → Library,* then apply the filter "Smart Resize: Processed".

![](/files/vQYjBr7wcXclHvcSFEWp)

#### How can I regenerate thumbnails for a single image?

Yes, you can regenerate thumbnails for a single image by clicking the link "Regenerate Thumbnails" in your media library.

![](/files/WvULVrrM0O9Dvl0nowl3)

{% hint style="info" %}
**Important:**

Make sure you purge cache if old images still showing up, including your browser, caching plugin, and CloudFlare.
{% endhint %}


# Features


# Cropping Mode

{% hint style="info" %}
This is an experimental setting that may be subject to change in future updates.

To enable this setting, add this code snippet to your theme functions.php file:\
\
`add_filter('enable_experimental_features/crop_mode', '__return_true' );`
{% endhint %}

### Resize without cropping (default)

This option will resize the image to fit within the selected size such as a "WooCommerce thumbnail" while maintaining the aspect ratio of the original image. This option will not cut off any parts of the image, so if the original image's aspect ratio is different from the selected size, there may be white space around the edges of the image. For example, if you have a rectangular image and you select a square size, the image will be resized to fit within the square size while keeping the rectangular shape, which means there will be white space on the top and bottom of the square.

### Resize with cropping

This option will resize the image to fit within the selected size such as a "WooCommerce thumbnail") by cutting off parts of the image that exceed the selected size, while maintaining the aspect ratio of the original image. This means that parts of the original image may be cut off to make the image fit within the selected size. For example, if you have a rectangular image and you select a square size, the image will be resized and the parts of the image that exceed the square size will be cropped off, which means parts of the image on the left and right sides will be cut off.


# Trim Whitespace

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

![](/files/9nnpfRsVeSY912prpMJn)

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

![](/files/AYALbkdD4VSnYybu0a9w)

**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 %}


# FAQs

{% content-ref url="/pages/FllgsHGf5MmGQNSngVdM" %}
[Pre-sale Questions](/faqs/pre-sale-questions)
{% endcontent-ref %}

{% content-ref url="/pages/-MC3thT8zuQNX0cZ-0yP" %}
[Billing Questions](/faqs/billing)
{% endcontent-ref %}

{% content-ref url="/pages/yoh9ER0gm1MT14uIVEEY" %}
[General Questions](/faqs/general-questions)
{% endcontent-ref %}


# Pre-sale Questions

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

Yes, that's exactly why we built the plugin.

### Is the plugin compatible with WooCommerce HPOS?

Yes, our plugin is fully compatible with WooCommerce HPOS (High-Performance Order Storage).

### I'm not using WooCommerce, can I use the plugin to fix my images?

Yes you can!&#x20;

### Does the plugin automatically resize images on upload ?

Yes.

### Does the plugin work with Elementor, Divi, Oxygen, Beaver Builder, and others?

Yes. You can use the plugin with any page builder.&#x20;

### Does the plugin affect non-product images?

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

<figure><img src="/files/T5k3KelYxdPrMAnNtFAS" alt=""><figcaption></figcaption></figure>

### How can I know which images have been resized?

In your Media Library, you can apply the filter "Smart Resize: Processed" to filter out processed images:

![](/files/-MbkgWAqn3DxsW8H82D3)

### Can I regenerate thumbnails for a single image?

{% hint style="info" %}
You can process individual images by using either the [**“Regenerate Thumbnails”**](https://wordpress.org/plugins/regenerate-thumbnails/) plugin or the [**“ReThumbify”**](https://rethumbify.com/) plugin.
{% endhint %}

Yes, you can regenerate thumbnails for a single image by clicking the link "Regenerate Thumbnails" in your media library.

![](/files/WvULVrrM0O9Dvl0nowl3)

### Can I undo changes made to my images?

Absolutely yes! To undo changes, go to WooCommerce > Smart Image Resize > Help, then click the "Restore All Images" button.

<figure><img src="/files/WOaNwIILEscz1cqona6M" alt=""><figcaption></figcaption></figure>

### Do I need to have coding skills to use this plugin?

No, the Smart Image Resize Pro plugin is designed to be user-friendly and does not require any coding skills. All features are accessible through a simple interface, and comprehensive documentation is provided to guide you through the process.

### How often is the plugin updated?

The plugin is updated regularly to ensure compatibility with the latest versions of WooCommerce and WordPress, to add new features, and to fix any bugs.

### What happens to my images if I decide not to renew my license after one year?

If you decide not to renew your license after one year, your images will remain at the size they were resized to by the plugin. However, you will no longer receive updates or have access to support.

### How do I get support?

We are committed to providing users of Smart Image Resize Pro great and prompt support.&#x20;

We are constantly working to expand and improve the plugin’s knowledge base.

If you can't find an answer here, feel free to email us at <support@sirplugin.com> or [chat with us](https://sirplugin.com/?livechat). We'll be more than happy to help!


# Billing Questions

### What payment methods do you accept?

We accept all major credit and debit cards, Apple Pay, Google Pay.

### Can I upgrade to another license later?

Yes you can! email <support@sirplugin.com> and we'll provide you with your upgrade link.

### How is VAT handled?

VAT is automatically handled during checkout. If you have a VAT ID, you can enter it during the process, and our payment processor will calculate the appropriate VAT based on your location and status.

### How do I get an invoice?

After your purchase, you will receive a receipt with an attached PDF invoice for your payment.

### How do I download the plugin and license key?

After purchase, you will receive an email containing your download link and license key. You can also access them by logging into your account at <https://sirplugin.com/myaccount>.

### Do you offer refunds?

Yes, we offer a 14-day money-back guarantee on all plans. If you're not satisfied with the plugin, you can request a full refund within 14 days of your purchase.

### Having a trouble making your purchase or haven't received the product?

Contact us at <support@sirplugin.com>, and we’ll be happy to assist you.


# General Questions

### I need to change the default WooCommerce sizes, is it possible?

Yes, you can use the **“Image Sizes”** option to change the default dimensions. To do this, go to the plugin settings under **WooCommerce → Smart Image Resize → Settings → Advanced Settings**.

<figure><img src="/files/nRtay15GOY14kHge0gRy" alt=""><figcaption></figcaption></figure>

### Can I use the plugin to resize my 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*:

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

return $post_types;

});
```

That's it!

### Can I use the plugin to resize non-product Images? and How?

Yes you can! To resize images attached to any other post types, add the post type to `$post_types`  array in the code snippet below:

```php
add_filter('wp_sir_resize_post_type', function($post_types){
$post_types = (array) $post_types;
$post_types[] = 'my-custom-post-type';

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*:

```php
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.*

```php
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.&#x20;

### Is the plugin compatible with WP CLI?

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

### Can I remove the plugin after resizing my existing images?

Deleting the plugin is not recommended unless the resizing was performed with **“Resize Original Image”** enabled, as WooCommerce or other plugins may revert the changes.

### How can I update the plugin to the latest version?

You can update the plugin via the **Plugins** page in your WordPress dashboard. When a new version is available, an notice will appear when viewing the **Plugins** page.

![](/files/noJlbyrZKqRMFdmiXAaT)

### I don't find answer to my questions.

We're just a click away to answer all your questions. Contact us at <support@sirplugin.com>


# Changelog

{% hint style="info" %}
**Current version**: 1.8.5

**WordPress Version**: 4.0 or higher / **Tested up to**: 6.6

**WooCommerce Version**: 3.0 or higher / **Tested up to**: 9.1

**PHP Version**: 5.6 or higher
{% endhint %}

### 1.8.5

* Declare compatibility with WordPress 6.6 and WooCommerce 9.1.

### 1.8.4

* Fix an error encountered by certain users in v1.8.3 when processing images in the background.

### 1.8.3

* Process image when `set_post_thumbnail` is called.
* Stability improvement

### 1.8.2

* Stability improvement

### 1.8.1

* Declare compatibility with custom order tables for WooCommerce.

### 1.8.0

* Added a new experimental setting "Cropping mode". To enable it, add the filter: `add_filter('enable_experimental_features/crop_mode', '__return_true' );`

### 1.7.8

* Removed `is_feed` notice
* Declare compatibility with WooCommerce 7.0

### 1.7.7

* Improved compatibility with new themes and plugins
* Declare compatibility with WooCommerce 6.9
* Stability improvements

### 1.7.6.4

* Fixed an issue with the Trim whitespace's border size option not working properly in GD.
* Stability improvements

### 1.7.6.3

* Minor bugfixes

### 1.7.6.2

* Fixed an issue in v1.7.6 causing some plugins' assets to not load properly.

### 1.7.6

* Deleted the option "Use WordPress cropping" as it seems to be causing some confusion for many users. To prevent specific sizes from being resized by the plugin use the filter `wp_sir_exclude_sizes` to return an array of size names you want to exclude.
* Fixed an issue with WebP files not deleted when the WebP feature is turned off.
* Declared compatibility with WP v6.0
* Declared compatibility with WooCommerce 6.3
* Added a work-around to fix a bug in Regenerate Thumbnails causing the latter to interfere with WPML.
* Stability improvements

### 1.7.5.4

* Declared compatibility with WooCommerce v6.1
* Declared compatibility with WP v5.9
* Stability improvements

### 1.7.5.3

* Minor bug fixes

### 1.7.5.1

* Fallback to GD when the Imagick is not compiled with libwebp

### 1.7.5&#x20;

* Process skipped images in the background after they get attached

### 1.7.4

* Replace "Resize fit mode" option with "Use WordPress cropping"
* Performance improvement

### 1.7.3

* Fixed blank WebP images with converting some PNG images in Imagick 6.x
* Fixed an issue with the "Trim whitespace" border size not working properly.

### 1.7.2

* Improved CMYK images handling

### 1.7.1

* Format error message in WP CLI and prevent terminating execution
* Fixed an issue with CMYK profile not converted to RGB in Imagick

### 1.7.0

* Added the Watermark tool (beta)

### 1.6.4.2

* Switch to another image processor when the default one doesn't support WebP images.

### 1.6.4.1

* Fixed WebP Images not served in Ajax responses

### 1.6.4

* Stability improvements

### 1.6.3

* Minor bugfixes

### 1.6.1

* Added the ability to customize the default WooCommerce sizes
* Stability improvements

### 1.6.0

* Add the ability to specify the resize fit mode for each size
* Stability improvements

### 1.5.5.1

* Stability improvements

### 1.5.5

* Fixed a color issue with some CMYK images
* Fixed faded images in some Imagick installs

### 1.5.4

* Fixed an issue with some themes not loading the correct image size

### 1.5.3

* Stability improvements

### 1.5.2

* Fixed thumbnail overwritten by WordPress when original image and thumbnail dimensions are identical
* Fixed an issue with Flatsome using full size image instead of `woocommerce_single` for lazy load
* Ignore sizes with 9999 dimension (unlimited height/width)
* Improved WebP availability detection

### 1.5.1

* Default to Imagick when available
* Fixed Avada not serving the correct thumbnails on non-WooCommerce pages
* Improved the settings page experience

### 1.5.0

* Filter processed images in the media library toolbar
* Added filter `wp_sir_serve_webp_images`
* Improved the Whitespace trimming tool

### 1.4.10

* Declared compatibility with WooCommerce v5.2

### 1.4.9

* Use GD to process large images

### 1.4.8

* Fixed an minor issue with some CMYK images

### 1.4.7

* Fixed an issue with PNG-JPG conversion conflict
* Added support for WCFM plugin.
* Declared compatibility with WooCommerce v5.0
* Stability improvement

### 1.4.6.1

* Declared compatibility with WooCommerce v4.9

### 1.4.6

* Added tolerance level setting to trim away colors that differ slightly from pure white
* Improved unwanted/old thumbnails clean up

### 1.4.5

* Stability improvement

### 1.4.4

* Improved bulk-resizing using Regenerate Thumbnails plugin
* Stability improvement

### 1.4.3.2

* Prevent WooCommerce from regenerating thumbnails in the background

### 1.4.3.1

* Moved the license activation form to the plugin settings page under the "Manage License" tab

### 1.4.3

* Fixed a minor issue with JPG images quality when compression is set to 0%
* Stability improvement

### 1.4.2.7

* Fixed an issue with UTF-8 encoded file names

### 1.4.2.6

* Improved compatibility with WC product import tool

### 1.4.2.5

* Fixed an issue when uploading non-image files occurred in the previous update

### 1.4.2.4

* Added the ability to activate multiple WP installations under the same domain.

### 1.4.2.3

* Turned off cache busting by default

### 1.4.2.2

* Fixed WebP images not loading in some non-WooCommerce pages

### 1.4.2.1

* Fixed whitespace trimming for some image profiles (Imagick)
* Added an option to specify the trimmed image border

### 1.4.2

* Fixed an issue with WebP images used in Open Graph image
* Improved resizing performances
* Stability improvement

### 1.4.1

* Fixed a bug with WebP not installed on server
* Fixed an issue with front-end Media Library

### 1.4.0

* Added support for category images
* Add the ability to decide whether to resize an image being uploaded directly from the Media Library uploader
* Added support for WooCommerce Rest API
* Developers can trigger the plugin by adding the boolean parameter `_processable_image` to the upload request
* Added filter `wp_sir_maybe_upscale` to prevent small images from being enlarged
* Process image attachment with valid parent ID
* Improved whitespace trimming in Imagick
* Fixed a minor bug with compression
* Removed non-resized images from  `srcset`
* Fixed an issue with trimmed images being stretched when zoomed on the product page
* Improved support for products bulk-import
* Improved processing performances in Imagick

### 1.3.9

* Fixed a compatibility issue with Dokan vendor interface
* Performance improvements

### 1.3.8

* Added compatibility with WP 5.4
* Added support for WP Smush
* Added support for Dokan
* Stability improvements

### 1.3.7

* Stability improvement

### 1.3.6

* Fix a minor issue with image parent type detection

### 1.3.5

* Improved Regenerate Thumbnails plugin speed

### 1.3.4

* Stability improvements

### 1.3.3

* Fixed a minor issue with the settings page

### 1.3.2

* Added thumbnails regeneration guide under "Regenerate Thumbnails" tab

### 1.3.1

* Added a workaround to fix a minor bug in Regenerate Thumbnails tool

### 1.3

* Default to the `woocommerce_single` size when selected for the product page.
* Stability improvements

### 1.2.4

* Fix `srcset` images not loaded when WebP is enabled

### 1.2.3

* Default GD
* Stability improvements

### 1.2.2

* Prevent black background when converting transparent PNG to JPG
* Fixed a random issue that causes WebP images to not load.
* Disabled license notice
* Stability improvements

### 1.2.1

* Added *Settings* link to the plugin row
* Fixed a minor bug in the WebP feature

### 1.2.0

* Added Whitespace Trimming feature
* Various improvements

### 1.1.12

* Fixed crash when `Fileinfo` extension is not available.

### 1.1.11

* Added support for Jetpack

### 1.1.10

* Fixed conflict with some plugins

### 1.1.9

* Prevent WooCommerce from regenerating thumbnails in the background

### 1.1.8

* Handle *libwebp* not installed.

### 1.1.7

* Stability improvements

### 1.1.6

* Stability improvements

### 1.1.5

* Force square image when height is set to auto.

### 1.1.4

* Stability improvements

### 1.1.3

* Fixed empty sizes list

### 1.1.2

* Added settings improvements
* Added processed images notice

### 1.1.1

* Added `Fileinfo` extension and PHP requirements notices
* Improved the settings page experience.

### 1.1.0

Initial release of Smart Image Resize Pro


# Other Plugins

You might find the following plugins useful:

[Rethumbify](https://rethumbify.com/?utm_source=docs.sirplugin.com\&utm_medium=other_plugins): Effortlessly regenerate your WordPress thumbnails with advanced features and seamless performance.

[HurryTimer](https://hurrytimer.com/?utm_source=docs.sirplugin.com\&utm_medium=other_plugins): A multi-purpose countdown timer for WordPress to create urgency and scarcity that drives clicks, increases sales, highlights upcoming events or deadlines.

[Conditional Add to Cart](https://condicart.com/): Control exactly when and how the "Add to Cart" appears — based on rules you define.


# Images Don't Resize

This article will help you perform some checks to determine why images don't resize.

### Bulk resize existing images

If you already uploaded images to media library, make sure you resize existing by [following these steps.](/getting-started/usage)

### Low Server Resources

Resizing and trimming are resource-intensive tasks especially when processed images are large, make sure:

* In the plugin settings (under *WooCommerce menu → Smart Image Resize)*, select only sizes prefixed by **woocommerce\_** in the *Sizes* option.
* You increase server `memory_limit` to at least `512M`. (Recommended `1024M` )

### Purge Cache

Make sure you:

* clear your browser cache
* purge any caching plugin if present&#x20;
* purge CloudFlare cache if present

### Uploading Images Through WP REST API \[Advanced]

Images uploaded trough WP REST API using the route `/wp/v2/media`  are not resized by default. To enable it:

Add this code snippet to your theme **functions.php**:

```php
add_filter('wp_sir_process_media_library_upload', '__return_true');
```

or add this boolean parameter in your request `_processable_image`&#x20;

### Uploading Images Through WC Vendors Plugin

By default, images uploaded trough the frontend are not resized, to enable it, add this code snippet to your theme **functions.php**:

```php
add_filter('wp_sir_process_frontend_upload', '__return_true');
```

### None of The Above Works

No worries! We're here to help, send us your support request at <support@sirplugin.com> and we'll make to get it sorted.


# Enable ImageMagick extension in cPanel

1. Login to your cPanel account.
2. In the "**Software**" section, select "**Select PHP Version**":

![Select PHP Version](/files/-MKJzQl1Wzy6PccQq5nz)

3\. Make sure the "**Extensions**" tab is selected:

![](/files/-MKJzbFTW6svQlgoRIw2)

4\. Finally, turn on the "**imagick"** extension:

![](/files/-MKJzg9pQoM0xLqry8ce)


# How to run WP-CLI in the background

If you have a lot of images to resize, you can run WP-CLI in the background so you don't need to wait for the process to finish. In this quick guide, I'll show you how you can run the command `wp media regenerate` in the background:

1. Install [WP-CLI](https://wp-cli.org/#installing)
2. Open your server terminal
3. Type the command  `nohup wp media regenerate --yes`  followed by **`&`**

```bash
$ nohup wp media regenerate --yes &
```

This will run regeneration in the background and print the process identifier number of the job:

```bash
[1] 22699
```

To view regenerated thumbnails log, type:&#x20;

```bash
$ cat nohup.out
```

To list running jobs, type the command `jobs`

```bash
$ jobs
```

The output will be similar to this:

```bash
[1]+  Running                 nohup wp media regenerate --yes & 
```

To stop regeneration, use the command `kill` and the job number in  `[1]+`

```bash
$ kill %1
```

**Note**: If you ended the terminal session, you will need to use the command `ps -eaf | grep wp` instead of `jobs` to list running jobs:

```bash
ps -eaf | grep wp
```

The output will be similar to:

```bash
501 22699 22389   0  3:19PM ttys000    0:00.14 wp media regenerate --yes
```

To terminate the job process, use the identifier number to terminate it:

```bash
kill 22699
```


# How to increase the PHP Memory Limit in cPanel

1. Login to your cPanel account
2. Click **Select PHP Version** in the **Software** section

![](/files/-MCrg2cEjZnbwfro2Q_N)

&#x20;  3\. In the new window, switch to **Options** tab

![](/files/-MCrgNw2ACHKUShUGGAe)

&#x20; 4\. Locate the `memory_limit` and click on to change the value (recommended **1024M** or **1G**)

![](/files/-MCrgkb2daScpOUXxhb6)


# How to enable Fileinfo Extension in cPanel

1. Login to your cPanel account.
2. In the "**Software**" section, select "**Select PHP Version**":

![Select PHP Version](/files/-MKJzQl1Wzy6PccQq5nz)

3\. Make sure the "**Extensions**" tab is selected:

![](/files/-MKJzbFTW6svQlgoRIw2)

4\. Finally, turn on "**fileinfo**":

![](/files/-MKeURI-MyKwKdvSWM4n)


