=== Warp iMagick Image Optimization. Resize & Compress images. Sharpen & Optimize images. Convert WebP. === Author: PageSpeed Club Contributors: ddur, pagespeedclub License: GPLv2 Requires PHP: 5.6 Tested up to: 5.8 Stable tag: 1.8 Requires at least: 5.3 Tags: image optimization, optimize images, compress images, convert webp, sharpen, image compressor, image compression, image optimizer, sharpen images, resize, resize images Donate link: https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Fplugin%2Fwarp-imagick%2Freviews%2F%23new-post No-cloud image optimization. Resize & Sharpen. Convert WebP. Optimize images to best quality/size image compression ratio. Disable big image threshold. == Description == * **Warp iMagick Image Compressor version 1.8 is WordPress 5.8 WebP ready!** As this plugin handles only JPEG/PNG media types (+ convert to WebP), other media types upload (including new WebP) is handled by WordPress original code. * **Warp iMagick Image Optimizer is private and free.** No external cloud/service or signup required. No limits in number or megabytes of optimized images. Plugin uses only PHP software installed on your server. * **Warp iMagick Image Optimization is easy to use.** Install, activate, configure and start uploading new media images. To bulk (re)compress existing media images use ["Regenerate Thumbnails Plugin"](https://wordpress.org/plugins/regenerate-thumbnails/) or ["WP CLI media regenerate" command](https://developer.wordpress.org/cli/commands/media/regenerate/). * **After activation, settings you may want to change are JPEG Compression Quality and SharpenImage Sigma.** Choose your image compress quality from 30% to 95%. As recommended in video below, plugin default JPEG Compression Quality of 60% is good speed/quality compromise for most of the web sites. If not, choose your own best compression/quality settings. Sharpen Image from 0.5 to 1.5 Sigma. For the rest of the settings, use defaults [(some recommended by Google)](https://developers.google.com/speed/docs/insights/OptimizeImages#optimizations-for-gif,-png,-and-jpeg-images) or feel free to experiment and have fun with. 😇 [youtube https://www.youtube.com/watch?v=6ckTVIpuCu8] * **You don't have to optimize images before upload.** Warp iMagick image optimizer plugin will do it for you and preserve your uploaded high quality original image as source for multiple recompressions without ever over-compressing. * **Fastest serving of converted WebP images ...** ... is achieved by your server. If you use [WordOps](https://wordops.net/), your [Nginx Server](https://nginx.org/en/) is already configured to serve WebP clones instead original JPEG/PNG uploads & thumbnails. Serving WebP images with [Apache Server](https://httpd.apache.org/) requires manual (DIY) modification of .htaccess file. Use [**WP Htaccess Editor Plugin**](https://wordpress.org/plugins/wp-htaccess-editor/) to safely modify your Apache .htaccess configuration file. You will find instructions on how to configure server and deliver WebP images on the settings page. Click on **HELP** at the top right of the plugin **SETTINGS PAGE**. * **Improve your site performance, Google PageSpeed score and SEO ranking ...** ... by serving better compressed images (JPEG/PNG/WebP). When generating WebP images is enabled, every JPEG and PNG media image or thumbnail found during image optimization process is converted to WebP and saved as copy with .webp extension added. Default PNG&JPEG to WebP image compression quality is 75% (configurable). In addition, JPEG to WebP compression quality can be set to use & follow compression quality set for JPEG images. * **Automatic image optimization to thumbnails and conversion to WebP images:** Compress better or keep higher image quality than WordPress does by default. Compress images automatically on upload or on "regenerate thumbnails". Uploaded image is always preserved in original state. Image Compression will always start from original image quality. You can't "overoptimize". Reoptimize existing images with ["Regenerate Thumbnails plugin"](https://wordpress.org/plugins/regenerate-thumbnails/) single or batch process, or with ["WP CLI media regenerate" command](https://developer.wordpress.org/cli/commands/media/regenerate/). * **Generating WebP images is optional** JPEG image optimization is speed & pagespeed/SEO score efficient even without WebP. Because plugin has advanced JPEG image compress capabilities, not available in WordPress original image compression. * **Image optimization is compatible with ["WP CLI media regenerate" command](https://developer.wordpress.org/cli/commands/media/regenerate/) and/or with ["Regenerate Thumbnails" plugin](https://wordpress.org/plugins/regenerate-thumbnails/).** **Important Note:** Since WordPress 5.3, BIG JPEG images reduced to 2560x2560 (by "Big Image Size Threshold" feature) and then manually edited by user, on regenerate, will be restored back to original (unedited) version. User edited modifications will be lost, unless this plugin is used. See [GitHub issue](https://github.com/Automattic/regenerate-thumbnails/issues/102). Same bug/issue applies both to ["WP CLI media regenerate" command](https://developer.wordpress.org/cli/commands/media/regenerate/) and ["Regenerate Thumbnails plugin"](https://wordpress.org/plugins/regenerate-thumbnails/). To fix that bug/issue, install or upgrade Warp iMagick plugin to version 1.6.2 or above. * **Compatible up to PHP 7.4.9 and tested against coding standards.** Tested with [PHP_CodeSniffer (phpcs)](https://github.com/squizlabs/PHP_CodeSniffer) using [WordPress Coding Standards](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/) [GitHub](https://github.com/WordPress/WordPress-Coding-Standards) rules and [PHPCompatibility](https://github.com/PHPCompatibility/PHPCompatibility) rules. * **Warp iMagick Image Optimizer gives you full control over image optimization, compression quality and file size.** Images optimization is customizable with advanced image optimization & compression settings. See all options used to optimize images in the plugin **Settings** page. * **Multisite support** Designed to work on WP multisite. No known reason to fail on WP multisite, but not extensively tested yet! * **Clean uninstall** By default, no plugin settings are left in your database after uninstall. Feel free to install and activate to make a trial. However, you can choose to preserve plugin options after uninstall. For detailed uninstall info related to added WebP images, see the **FAQ** section below. * **Privacy** Warp-iMagick plugin does not collect nor send any identifiable data from your server, without your consent. WordPress cookies are used to store admin-settings page-state. * **Known conflicts** Due to use of [bfi_thumb library](https://github.com/bfintal/bfi_thumb) which completely takes over wordpress WP_Image_Editor classes, in [Ajax Search Lite](https://wordpress.org/plugins/ajax-search-lite/) plugin and in [Circles Gallery](https://wordpress.org/plugins/circles-gallery/) plugin, Warp iMagick plugin will fail to activate while those plugins are active. Activating those plugins after Warp iMagick is activated, may cause malfunction. = Features = [youtube https://www.youtube.com/watch?v=SnFOEhi0ym0] [youtube https://www.youtube.com/watch?v=F1kYBnY6mwg] [youtube https://www.youtube.com/watch?v=-7k3H2GxE5E] [youtube https://www.youtube.com/watch?v=AQqFZ5t8uNc] == Installation == = Using The WordPress Plugin Repository = 1. Navigate to the 'Plugins' -> 'Add New' . 2. Search for 'Warp iMagick'. 3. Select and click 'Install Now'. 4. Activate the plugin. == Upgrade Notice == None. == Screenshots == 1. **JPEG Settings** 2. **PNG Settings** 3. **WebP Settings** 4. **Other Settings** 5. **Regenerate Thumbnails** 6. **WebP Mobile Page Score** == Frequently Asked Questions == = Where is the "GO" button? = There is no "GO" button. When activated, plugin automatically applies compression on all new JPEG/PNG media uploads. = How do I “bulk compress”? = To bulk (re)compress existing media images use [“Regenerate Thumbnails Plugin”](https://wordpress.org/plugins/regenerate-thumbnails/) or [“WP CLI media regenerate” command](https://developer.wordpress.org/cli/commands/media/regenerate/). = Do I need to keep ‘Regenerate Thumbnails’ plugin? = You don’t have to keep [“Regenerate Thumbnails Plugin”](https://wordpress.org/plugins/regenerate-thumbnails/) plugin installed. = Does this plugin support WooCommerce images? = All image sizes are supported, including any theme and/or WooCommerce specific image sizes. = How to serve converted WebP images? = On the settings page, you will find instructions on how to configure server to redirect \*.jpg/\*.png to \*.jpg.webp/\*.png.webp and to deliver converted WebP images, if such image is generated by this plugin (file exists) and if visitor's browser suports WebP image format. Click on **HELP** at the top right of the plugin **SETTINGS PAGE**. = How to modify Apache .htaccess configuration file? = Use [**WP Htaccess Editor Plugin**](https://wordpress.org/plugins/wp-htaccess-editor/) to safely modify your Apache .htaccess configuration file. = Which PHP extensions are required by this plugin? = 1. PHP-Imagick to compress JPEG/PNG files (required). 2. PHP-GD to convert JPEG/PNG to WebP files (optional, but usually installed). In order to modify/resize/crop photos or images, Wordpress requires at least PHP-GD. When both extensions are installed, WordPress prefers PHP-Imagick over PHP-GD. = Do I have both required PHP extensions installed? = 1. WordPress 5.2 and above: Administrator: Menu -> Tools -> Site Health -> Info -> Expand "Media Handling" and check if "ImageMagick version string" and "GD version" have values. 2. WordPress 5.1 and below: Install [Health Check & Troubleshooting](https://wordpress.org/plugins/health-check/) plugin. Open "Health Check" plugin page and click on "PHP Information" tab. You will find there all PHP extensions installed and enabled. Search (Ctrl-F) on page for "Imagick" and "GD". 3. WordPress Editor class must be WP_Image_Editor_Imagick (or Warp_Image_Editor_Imagick) but **NOT** WP_Image_Editor_GD. 4. PHP-Imagick extension must be linked with ImageMagick library version **6.3.2** or newer. 5. PHP-GD extension version must be at least 2.0.0 to be accepted by WordPress Image Editor. = Does my web hosting service provide PHP-Imagick and PHP-GD extensions? = 1. [WPEngine](https://wpengine.com/support/platform-settings/): Both by default. 2. [EasyWP](https://www.namecheap.com/support/knowledgebase/article.aspx/9697/2219/php-modules-and-extensions-on-shared-hosting-servers): Both by default. 3. [DreamHost](https://help.dreamhost.com/hc/en-us/articles/214893957): By configuration. 4. [SiteGround](https://www.siteground.com/kb/enable-imagick-imagemagick/): Must enable. 5. Ask your host-service provider. = How to install missing PHP-Imagick or PHP-GD extensions? = 1. [CPanel based host](https://documentation.cpanel.net/display/68Docs/PHP+Extensions+and+Applications+Package#PHPExtensionsandApplicationsPackage-PHPExtensionsandApplicationsPackageInstaller) 2. [PHP-Imagick setup](https://www.php.net/manual/en/imagick.setup.php) 3. Debian/Ubuntu: "apt install php-imagick php-gd". 4. Fedora/CentOs: "yum install php-imagick php-gd". 5. Ask your host-service provider. = Why WebP files have two extensions? = To prevent overwriting duplicate "WebP" files. With single extension, when you upload "image.png" and "image.jpg", second "image.webp" would overwrite previous one. = Why is WebP setting (checkbox) disabled? = Because your server has no PHP-GD graphic editing extension or your PHP-GD extension has no WebP support. = What happens with images when plugin is deactivated or deleted? = 1. Existing images remain optimized. If you run ["Regenerate Thumbnails"](https://wordpress.org/plugins/regenerate-thumbnails/) batch process, after plugin is deactivated or deleted, batch process will restore original file-size and quality of WordPress thumbnails. 2. If you have WebP images, they won't be deleted. You can delete all WebP images while plugin is active. To delete WebP images, disable WebP option and then batch-run ["Regenerate Thumbnails"](https://wordpress.org/plugins/regenerate-thumbnails/) for all media images. = Why is plugin disabled or fails to activate? = Because your server has no PHP-Imagick installed or has too old version of PHP-Imagick. == Changelog == = Current Version = * Compatibility: Get ready for WordPress 5.8 WebP media type. * Uninstall: Take care to remove other temporary settings and transients. * Uninstall: Cleanup obsolete user meta keys only once peer installation lifetime. = Previous versions = * [Changelog](https://plugins.trac.wordpress.org/browser/warp-imagick/trunk/changelog.txt).