Fork me on GitHub

WordPress-kehittäjä, älä missaa ilmaista webinaariamme WordPressin hakutoiminnosta tammikuun 14. päivä!

WordPress-utvecklare, missa inte vår gratis webbinar om sökningen in WordPress den 14. januari!

WordPress developer, don't miss our free webinar about search in WordPress on January 14th!


wp-optimize-images - manual page for wp-optimize-images git version 8235fae


usage: wp-optimize-images [-h] [--version] [--enable]

[--set-max-resolution-width MAX_RESOLUTION_WIDTH]

[--set-max-resolution-height MAX_RESOLUTION_HEIGHT] [-f] [--strip-metadata] [path]

Optimize images on a WordPress site. Can be given a path, scans */data/wordpress/htdocs/wp-content/uploads/* as default. Runs only if the *seravo-enable-optimize-images* value in the database is set to true. Reduces the resolution of all JPEG files according to maximum width and height saved in the datadase. Maximum image quality for JPEG is set to 90. Image quality for PNG files is set to 7. Prints the output to terminal and /data/log/wpoptimize-images.log

positional arguments:


File or directory of images to optimize

optional arguments:

-h, --help

show this help message and exit


show program's version number and exit


Enable image optimization even if seravo-enableoptimize-images is not "on"

--set-max-resolution-width MAX_RESOLUTION_WIDTH

Set to override seravo-image-max-resolution-width.

--set-max-resolution-height MAX_RESOLUTION_HEIGHT

Set to override seravo-image-max-resolution-height.

-f, --force

Force optimization.


Remove metadata from images


jpegoptim(1), optipng(1)