Reduce image file sizes and improve performance for images within WordPress including NextGEN Gallery. Uses jpegtran, optipng, and gifsicle.
|Author:||Exactly WWW (profile at wordpress.org)|
|WordPress version required:||4.9|
|WordPress version tested:||5.0|
|Added to WordPress repository:||07-06-2012|
|Total downloads:||11 231 179|
|Active installs:||700 000+|
Click to start download
Plugin settings page.
Additional optimize column added to media listing. You can see your savings, manually optimize individual images, and restore originals (converted only).
Bulk optimization page. You can optimize all your images at once and resume a previous bulk optimization. This is very useful for existing blogs that have lots of images.
Google Pagespeed says my images need compressing or resizing, but I already optimized all my images. What do I do?
Try this for starters: https://docs.ewww.io/article/5-pagespeed-says-my-images-need-more-work
The plugin complains that I’m missing something, what do I do?
This article will walk you through installing the required tools (and the alternatives if installation does not work): https://docs.ewww.io/article/6-the-plugin-says-i-m-missing-something
Does the plugin replace existing images?
Yes, but only if the optimized version is smaller. The plugin should NEVER create a larger image.
Can I resize my images with this plugin?
Yes, you can, set it up on the Resize tab.
Can I lower the compression setting for JPGs to save more space?
The lossy JPG optimization using the API will determine the ideal quality setting and give you the best results, but you can also adjust the default quality for conversion and resizing. More information: https://docs.ewww.io/article/12-jpq-quality-and-wordpress
The bulk optimizer doesn’t seem to be working, what can I do?
See https://docs.ewww.io/article/39-bulk-optimizer-failure for full troubleshooting instructions.
What are the supported operating systems?
I’ve tested it on Windows (with Apache), Linux, Mac OSX, FreeBSD 9, and Solaris (v10). The cloud API will work on any OS.
How are JPGs optimized?
Lossless optimization is done with the command jpegtran -copy all -optimize -progressive -outfile optimized-file original-file. Optionally, the -copy switch gets the ‘none’ parameter if you choose to strip metadata from your JPGs on the options page.
How are PNGs optimized?
There are three parts (and all are optional). First, using the command pngquant original-file, then using the commands pngout-static -s2 original-file and optipng -o2 original-file. You can adjust the optimization levels for both tools using the Overrides. Optipng is an automated derivative of pngcrush, which is another widely used png optimization utility.
How are GIFs optimized?
Using the command gifsicle -b -O3 –careful original file. This is particularly useful for animated GIFs, and can also streamline your color palette. That said, if your GIF is not animated, you should strongly consider converting it to a PNG. PNG files are almost always smaller, they just don’t do animations. The following command would do this for you on a Linux system with imagemagick: convert somefile.gif somefile.png
I want to know more about image optimization, and why you chose these options/tools.
That’s not a question, but since I made it up, I’ll answer it. See these resources:
- Feature requests can be viewed and submitted at https://github.com/nosilver4u/ewww-image-optimizer/labels/enhancement
- If you would like to help translate this plugin in your language, get started here: https://translate.wordpress.org/projects/wp-plugins/ewww-image-optimizer/
- fixed: ExactDN duplicates srcset instead of replacing it
- security: remote code execution, low exposure
- added: automatic migration to move image paths from absolute to relative
- changed: default quality for PNG to JPG did not match WordPress default
- fixed: legacy absolute paths not matched during bulk scanner when relative matching is enabled
- fixed: PNG to JPG auto-convert produces larger JPG images in some cases
- changed: optimization results are tracked by relative urls instead of absolute ones for better portability, migration tool coming soon
- changed: ExactDN defaults to crop when explicit dimensions are given to image_downsize(), revert to scaling with EXACTDN_IMAGE_DOWNSIZE_SCALE
- fixed: WooCommerce thumbnail regeneration triggers excessive admin-ajax requests within EWWW IO
- fixed: ExactDN filtering REST API media endpoint for Gutenberg editor requests
- fixed: ExactDN adding unneeded resize parameters to full-size image urls
- fixed: Alt WebP skipping images with query strings
- fixed: Alt WebP not working with Jetpack Lazy Load for images missing srcset
- fixed: Show Optimized Images table does not display images saved to ewwwio_images table with relative path matching
- fixed: Show Optimized Images table has broken thumbs when WP_CONTENT_DIR is outside of ABSPATH
- added: Alt WebP supports BJ Lazy Load, a3 Lazy Load, WP Rocket Lazy Load, Jetpack Lazy Load, and WP Retina Lazy Load
- added: ExactDN rewrites relative image urls that start with a single slash
- changed: ExactDN srcset markup for smaller images improved
- fixed: errors during upload/download with WP Offload Media
- fixed: Alt WebP refuses to process page when FB tracking pixel is present
- fixed: SVG files within tags throw errors with ExactDN
- fixed: thumbnail generation fails with S3 Uploads plugin
- fixed: unable to modify WebP conversion option when ExactDN is enabled
- fixed: ExactDN inserts full-size image without arguments
- removed: PHP 5.5 no longer supported
Please refer to the separate changelog.txt file.