You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://typist.tech/donate/image-optimize-command/)
@@ -16,7 +18,8 @@ Easily optimize images using WP CLI.
16
18
17
19
18
20
-[Usage](#usage)
19
-
-[Installing](#installing)
21
+
-[Requirements](#requirements)
22
+
-[Installation](#installation)
20
23
-[Optimization tools](#optimization-tools)
21
24
-[SVGO and cwebp are optional](#svgo-and-cwebp-are-optional)
22
25
-[Use Cases](#use-cases)
@@ -35,10 +38,10 @@ Easily optimize images using WP CLI.
35
38
-[Do I have to install `SVGO` or `cwebp`?](#do-i-have-to-install-svgo-or-cwebp)
36
39
-[`PHP Fatal error: Allowed memory size of 999999 bytes exhausted (tried to allocate 99 bytes)`](#php-fatal-error-allowed-memory-size-of-999999-bytes-exhausted-tried-to-allocate-99-bytes)
37
40
-[Does it have a limits or quotas?](#does-it-have-a-limits-or-quotas)
38
-
-[Will you add support for older PHP versions?](#will-you-add-support-for-older-php-versions)
39
41
-[Is it for everyone?](#is-it-for-everyone)
42
+
-[Will you add support for older PHP versions?](#will-you-add-support-for-older-php-versions)
40
43
-[It looks awesome. Where can I find some more goodies like this?](#it-looks-awesome-where-can-i-find-some-more-goodies-like-this)
41
-
-[This package isn't on wp.org. Where can I give a :star::star::star::star::star:review?](#this-package-isnt-on-wporg-where-can-i-give-a-starstarstarstarstar-review)
44
+
-[Where can I give :star::star::star::star::star:reviews?](#where-can-i-give-starstarstarstarstar-reviews)
Installing this package requires [WP-CLI v2.3.0](https://wp-cli.org/) or greater. Update to the latest stable release with `wp cli update`.
95
+
- PHP v7.2 or later
96
+
-[WP-CLI](https://wp-cli.org/) v2.3.0 or greater
93
97
94
-
Once you've done so, you can install this package with:
98
+
Since [`wp-cli/wp-cli-bundle` bundles an older version of `symfony/process`](https://github.com/wp-cli/wp-cli-bundle/blob/7e3d89c415db7922e923703d5f06613f0a60b8a9/composer.lock#L1204-L1205) which incompatible with [`spatie/image-optimizer`](https://github.com/spatie/image-optimizer/blob/48f71b968f2764eca8f4885a8a5401d61e920ba8/composer.json#L22), WP-CLI must be [installed via composer](https://make.wordpress.org/cli/handbook/installing/#installing-via-composer).
@@ -283,36 +289,42 @@ This is a common WP CLI issue. See: [https://bit.ly/wpclimem](https://make.wordp
283
289
284
290
No, unlike other SaaS alternatives, this package runs on your server without any limitation on file sizes or a monthly quota. Totally free of charge.
285
291
286
-
### Will you add support for older PHP versions?
287
-
288
-
Never! This package will only works on [actively supported PHP versions](https://secure.php.net/supported-versions.php).
289
-
290
-
Don't use it on **end of life** or **security fixes only** PHP versions.
291
-
292
292
### Is it for everyone?
293
293
294
294
No, it comes at a cost. Optimization is CPU intensive. Expect CPU usage rockets up to 100% during optimization. Schedule it to run at late night in small batches.
295
295
296
296
Learn more on [this article](https://typist.tech/articles/easily-optimize-wordpress-images-using-wp-cli-and-some-binaries/).
297
297
298
+
### Will you add support for older PHP versions?
299
+
300
+
Never! This plugin will only work on [actively supported PHP versions](https://secure.php.net/supported-versions.php).
301
+
302
+
Don't use it on **end of life** or **security fixes only** PHP versions.
303
+
298
304
### It looks awesome. Where can I find some more goodies like this?
299
305
300
-
* Articles on Typist Tech's [blog](https://typist.tech)
301
-
*[Tang Rufus' WordPress plugins](https://profiles.wordpress.org/tangrufus#content-plugins) on wp.org
302
-
* More projects on [Typist Tech's GitHub profile](https://github.com/TypistTech)
303
-
* Stay tuned on [Typist Tech's newsletter](https://typist.tech/go/newsletter)
* Hire [Tang Rufus](https://typist.tech/contact) to build your next awesome site
306
+
- Articles on Typist Tech's [blog](https://typist.tech)
307
+
- More projects on [Typist Tech's GitHub profile](https://github.com/TypistTech/)
308
+
- More plugins on [TangRufus'](https://profiles.wordpress.org/tangrufus/#content-plugins) wp.org profiles
309
+
- Stay tuned on [Typist Tech's newsletter](https://typist.tech/go/newsletter)
310
+
- Follow [@TangRufus](https://twitter.com/tangrufus) on Twitter
311
+
- Hire [Tang Rufus](https://typist.tech/contact) to build your next awesome site
306
312
307
-
### This package isn't on wp.org. Where can I give a :star::star::star::star::star:review?
313
+
### Where can I give :star::star::star::star::star:reviews?
308
314
309
-
Thanks!
315
+
Thanks! Glad you like it. It's important to let my know somebody is using this project. Since this is not hosted on wordpress.org, please consider:
310
316
311
-
Consider writing a blog post, submitting pull requests, [sponsoring](https://typist.tech/donation/) or [hiring me](https://typist.tech/contact/) instead.
317
+
- tweet something good with mentioning [@TangRufus](https://twitter.com/tangrufus)
318
+
-:star: star this [Github repo](https://github.com/typisttech/image-optimize-command)
319
+
-:eyes:[watch](https://github.com/typisttech/image-optimize-command/subscription) this Github repo
0 commit comments