The Ultimate Image Optimization Plugin for WordPress
Boost your site’s speed instantly! Optimize images and PDFs with one click, bulk compress to WebP and AVIF, use lazy loading, and resize images.
Increase your website's SEO ranking, number of visitors, and ultimately your sales by optimising any image or PDF document on your website.
The
ShortPixel plugin is a lightweight, user-friendly, install-and-forget solution for image optimization.
It is designed to work with any website type, whether it's a small blog or a large WooCommerce-powered online store with tens of thousands of products.
Additionally, it's an excellent choice for agencies, offering unlimited image optimization credits for a flat monthly fee.
Ready for a Quick DEMO of our Top Image Optimization Tool?
Test our plugin
here.
Make an instant
image compression test of your site or
compress some images to test our optimization algorithms.
Let's get the ShortPixel plugin running on your WordPress website:
- Sign up using your email at https://shortpixel.com/wp-apikey.
- You will receive your personal API key in a confirmation email, to the address you provided.
- Upload the ShortPixel plugin to the /wp-content/plugins/ directory
- Use your unique API key to activate the ShortPixel plugin in the 'Plugins' menu in WordPress.
- Uploaded images can be automatically optimized in the Media Library.
- Done!
6.0.4
Release date: December 10, 2024
- Fix: Inline images and SVGs are no longer replaced by CDN links;
- Fix: The text domain load has been removed from the plugin code to avoid future errors;
- Fix: When trying to clear the queue, the settings page was not loaded correctly;
- Fix: Forced generation for PNGs could be enabled even if the PNG2JPG option was disabled;
- Tweak: Several minor CSS and wording improvements have been added;
- Tweak: Bulk preparation now runs faster when no images are optimized;
- Language: 0 new strings added, 2 updated, 0 fuzzed and 0 deprecated.
6.0.3
Release date: December 3, 2024
- Fix: With certain WooCommerce themes and CDN delivery enabled, some images were not loaded on the cart and checkout pages
- Fix: Removed an unused hook that was triggering errors in some cases;
- Fix: A JavaScript error was displayed in the browser console when CDN delivery was hidden in the settings;
- Fix: Divi frontend builder now works when CDN delivery is enabled;
- Language: 2 new strings added, 0 updated, 0 fuzzed and 0 deprecated.
6.0.2
Release date: November 28, 2024
- Fix: Resizing and SmartCropping can now both be enabled;
- Fix: Beaver Builder now works when CDN delivery is enabled;
- Fix: In some cases the picture tag was generated even if it was disabled;
- Fix: Some notifications still had links pointing to the old settings structure;
- Fix: The custom media cron generated an error under very specific conditions in PHP 8.2.x;
- Fix: More CSS changes to make the settings usable when other plugins insert their own CSS in wrong places;
- Fix: All database options are now removed from the tools section after uninstalling the plugin;
- Fix: Added a possible fix if the execution of the installation scripts hangs after upgrading to version 6;
- Fix: Some JavaScript errors were displayed in the Theme Customizer section;
- Tweak: Added filter to hide the new CDN delivery method;
- Tweak: Removed a database query for custom media that was no longer needed in wp-admin;
- Tweak: The save settings button function has been improved and prevents multiple saves at once;
- Tweak: The default CDN URL has been updated;
- Language: 1 new strings added, 10 updated, 0 fuzzed and 0 deprecated.
6.0.1
Release date: November 22, 2024
- Fix: Some PHP warnings were displayed for certain images when they were optimized;
- Fix: The plugin settings are loaded correctly even if the Google Reviews & Ratings plugin is active;
- Fix: Help icon pop-ups now look better;
- Language: 0 new strings added, 0 updated, 0 fuzzed and 0 deprecated.
6.0.0
Release date: November 21, 2024
- New: The plugin now also delivers next generation images such as WebP and AVIF via the ShortPixel CDN;
- New: Complete redesign of the plugin settings and layout;
- New: Overview page with image status in a single view;
- New: Simple and advanced settings modes are now available;
- Tweak: Plugin processing is no longer started for users without appropriate rights (such as Authors);
- Fix: The filter "optimized/not optimized" from the Media Library now works correctly when the main image is excluded;
- Fix: The comparator in the NextGen Gallery now looks better;
- Fix: When using WPML, random optimization errors occurred with some images;
- Language: Many of the plugin strings have been updated or changed and we thank the translation teams for their efforts..
5.6.4
Release date: October 9, 2024
- Fix: A Broken Access Control vulnerability has been fixed (safely disclosed by the PatchStack team - thanks!);
- Fix: An SQL injection vulnerability has been patched (also safely disclosed by the PatchStack team);
- Fix: Moved loading of the plugin text domain to the init hook to increase compatibility;
- Language: 2 new strings added, 0 updated, 0 fuzzed, and 0 deprecated.
5.6.3
Release date: July 16, 2024
- Compat: Integration with Polylang Pro is fixed;
- Fix: Some bulk actions in the list view of the Media Library did not work;
- Fix: PHP warning was displayed when an existing Custom Media folder was no longer present on the disk;
- Language: 0 new strings added, 0 updated, 0 fuzzed, and 0 deprecated.
5.6.2
Release date: May 23, 2024
- Fix: The Cover or Contain setting for resizing was not retained when saving;
- Language: 0 new strings added, 0 updated, 0 fuzzed, and 0 deprecated.
5.6.1
Release date: May 21, 2024
- Fix: Folders from the uploads folder can now be selected as Custom Media even if the year/month structure is not used;
- Fix: In certain cases PHP errors were generated when trying to optimize or even upload images;
- Fix: Some typos caused warnings in some cases;
- Fix: Fixed a typo regarding the number of seconds in a day (kudos to @JusGu for pointing this out);
- Fix: Images with a size of 0Kb are no longer processed;
- Compat: The integration with Formidable Forms now works directly in the Media Library (no need for Custom Media anymore);
- Language: 5 new strings added, 2 updated, 1 fuzzed, and 2 deprecated.
5.6.0
Release date: May 2, 2024
- New: Added background mode that uses cron jobs to perform optimizations without having to keep the browser open;
- New: Custom media folders are now automatically checked for new images in the background with cron jobs;
- New: The bulk actions from the list view of the media library have been moved to JS;
- New: BMP and TIFF files are automatically converted to JPG;
- Compat: Added integration for images uploaded via Formidable Forms;
- Compat: Improved performance of PICTURE tag delivery mode when offload is enabled;
- Compat: The images generated by the Uncode theme are now automatically optimized;
- Compat: PNG conversion has been improved to better handle images with alpha channel but without transparent pixels;
- Compat: Added a filter to disable the PHP basedir constraints check;
- Compat: Added filter to allow generation of WebP/AVIF even if they are larger than JPG/PNG;
- Compat: Added new hooks for Regenerate Thumbnails Advanced;
- Compat: Added notification to enable double WebP extension when WebP delivery is enabled in Litespeed Cache;
- Compat: Fixed a conflict with the Getty Images plugin (thanks @pintofbeer);
- Compat: Fixed Photo Engine/WpLr integration when republishing images from Adobe Lightroom;
- Fix: PDF files are now correctly excluded from processing when the option is disabled in the advanced settings;
- Fix: Styling corrected when deactivating the plugin;
- Fix: Added additional checks for silent mode when errors occurred in some cases;
- Fix: Some PHP warnings were displayed under PHP 8.3;
- Fix: The warning about Imagify could not be dismissed;
- Language: 27 new strings added, 6 updated, 0 fuzzed, and 0 deprecated.
5.5.5
Release date: February 13, 2024
- Compat: Added new hooks to be used by the Regenerate Thumbnails Advanced plugin;
- Compat: Adjusted the settings limitations for the new Unlimited plans;
- Fix: Added an additional check to prevent database table errors when the plugin is removed;
- Language: 0 new strings added, 1 updated, 0 fuzzed and 0 deprecated.
5.5.4
Release date: January 22, 2024
- Tweak: The messages displayed when executing WP-CLI "auto" commands have been improved;
- Tweak: More options and flexibility for the filter used when creating the
.htaccess
rules (for WebP delivery);
- Tweak: Added a check and mechanism to prevent running out of memory if the bulk process preparation fails due to lack of memory;
- Tweak: Added back the "Optimize" option in the "Bulk actions" section in the list view of the Media Library;
- Compat: Added integration with the "Media File Renamer" plugin;
- Fix: Under PHP 8.1+, a notice was displayed when re-optimizations were performed;
- Fix: A PHP warning was displayed converting optimization metadata via WP-CLI;
- Fix: Multiple exclusion checkboxes in the plugin settings can now be selected with the SHIFT key;
- Fix: Converting optimization metadata without backups could cause the main images to be incorrectly set to unprocessed;
- Language: 4 new strings added, 0 updated, 0 fuzzed, and 0 deprecated.
5.5.3
Release date: January 3, 2024
- Fix: In some cases, an error was displayed when adding a folder to Custom Media, even if the folder was added correctly;
- Fix: For WebP files uploaded directly to the Media Library, the plugin could remove the wrong files during certain operations;
- Fix: Bulk processing of Custom Media could lead to errors in some cases;
- Fix: A PHP Warning was displayed on the Custom Media page if no items were present;
- Language: 0 new strings added, 0 updated, 0 fuzzed and 0 deprecated.
5.5.2
Release date: November 24, 2023
- Fix: The excluded thumbnails are no longer checked out when saving the settings;
- Fix: Adding new exclusions is now fixed;
- Fix: Updated the wording of exclusions to make them consistent;
- Fix: An error was displayed in the logs if an image could not be loaded at all;
- Fix: An error is now displayed when a Custom Media folder cannot be added instead of silently crashing the page;
- Fix: If WP_CONTENT_DIR does not contain wp-content, adding a Custom Media folder failed;
- Language: 8 new strings added, 2 updated, 0 fuzzed and 7 deprecated.
5.5.1
Release date: November 17, 2023
- New: Added a filter to change the parameters sent to the API (e.g. for granular resizing);
- Fix: Some PHP notices were displayed in the logs when no exclusions were set;
- Fix: when using the Media Library Grid view, a request for a non-existent image resulted in an Ajax error;
- Fix: Add checks to prevent errors when WebP files cannot be copied to their destination;
- Tweak: Removed notification about HEIC files;
- Language: 0 new strings added, 0 updated, 0 fuzzed and 2 deprecated.
5.5.0
Release date: November 8, 2023
- New: The Custom Media folders have been redesigned, more features have been added and everything has been moved to Media -> Custom Media;
- New: The exclusions have been redesigned to provide a simpler and more flexible mechanism;
- New: The ability to override exclusions and manually optimize excluded images has been added;
- New: The ability to mark images as completed (optimized) has been added;
- New: Added migration of optimization data to WP-CLI;
- New: Added constant to disable the feedback survey when the plugin is deactivated;
- Compat: Added proper validation and integration for the Swift AI plugin;
- Compat: Added filter to suppress cache clearing for various cache plugins (useful for large websites);
- Fix: If an image has been excluded, it can now be restored from the backup;
- Fix: Envira and Soliloquy have been added to the list of pages where processing is performed automatically;
- Fix: Websites with many Custom Media folders and/or NextGen galleries should no longer hang;
- Fix: Added some checks and validations to avoid
open_basedir
warnings;
- Fix: Updated wording and banners throughout the plugin;
- Language: 94 new strings added, 3 updated, 5 fuzzed and 33 deprecated.
5.4.3
Release date: September 28, 2023
- Fix: in some very isolated cases, the previous security fix could result in corrupted data for PNG2JPG in some page builders;
- Language: 0 new strings added, 0 updated, 0 fuzzed, and 0 deprecated.
5.4.2
Release date: September 14, 2023
- Fix: A possible PHP Object Injection was patched, which could be exploited under certain conditions;
- Fix: added another fix for WebP path for old multisite setups still using blogs.dir folder structure;
- Language: 0 new strings added, 0 updated, 0 fuzzed, and 0 deprecated.
5.4.1
Release date: September 4, 2023
- Compat: a filter has been added that allows customizing the metadata migration paramaters;
- Fix: a missing space broke the HTML structure in some cases when using the PICTURE tag delivery method for next generation images;
- Fix: added fix for WebP path for old multisite setups still using blogs.dir folder structure;
- Fix: custom uploads folders (by using constants) are now handled correctly in all cases;
- Fix: added supplemental checks to prevent some isolated JS errors that occurred only in certain cases;
- Fix: the plugin now only displays fatal errors when debug mode is enabled;
- Fix: the Shortpixel typos are now corrected in ShortPixel;
- Language: 0 new strings added, 4 updated, 0 fuzzed, and 0 deprecated.
5.4.0
Release date: August 1, 2023
- New: Images are now processed directly on the "Add New Media" screen;
- New: Support for WordPress image editing functions; a notification is now displayed when you use the editing features;
- New: PNG-to-JPG conversion now replaces posts in states other than published, such as scheduled, pending, draft, etc;
- Compat: Added additional checks when WP Offload Media is used together with Enable Media Replace;
- Compat: Added integration with Total theme, thanks @AJ for the great support;
- Fix: Improved the way the ShortPixel box loads on different screens;
- Fix: Empty ALT tags on images are now preserved when using the PICTURE tag delivery method for next generation images;
- Fix: The PICTURE tag delivery generated invalid HTML code due to a missing space (thanks @kittmedia for pointing these two out!);
- Fix: Several minor fixes and improvements related to PNG-to-JPG conversion;
- Fix: Resize information was not written corectly when using WP Offload Media and backups were not enabled;
- Fix: Restoring backups when Offload is disabled now works without affecting image metadata;
- Fix: When object cache was enabled, transients used for processing were recreated too often;
- Fix: Improved thumbnail handling for SmartCropping: only cropped thumbnails are now send for SmartCropping;
- Language: 1 new string added, 6 updated, 0 fuzzed, and 3 deprecated.
5.3.0
Release date: June 27, 2023
- New: Added the ShortPixel box on the Media Library Grid view;
- New: Added the option to re-optimize an image with or without Smart Cropping;
- New: Added the images with errors to the Media Library filters, for easier retries;
- New: Added an option in the plugin tools to reset the optimization errors;
- Compat: Added integration with WordPress image editing features (crop, flip, rotate etc.);
- Compat: Added integration for S3 Uploads by HumanMade;
- Compat: Fixed integration with LiteSpeed Cache version 5.4 and older. Read more about it in our knowledge base article;
- Compat: Fixed bulk processing when WP Media Recovery plugin is active;
- Fix: ABSPATH die statement added to each file, for increased security;
- Fix: Improved bulk processing statistics for large installations;
- Fix: Improved the text and output of WP-CLI commands;
- Fix: In some cases the transient used for bulk processing could get stuck and prevent automatic optimization;
- Fix: When processing a non-optimized image with Bulk Actions from the Media Library, it was not optimized with the correct compression level;
- Fix: Do not add
.htaccess
files in folders where it is not strictly necessary;
- Fix: Interaction with the the database was improved and optimized when using an offloading solution;
- Fix: In some cases an error was displayed when debug mode was enabled;
- Fix: Not all file statuses were displayed correctly in the ShortPixel box of the Media Library;
- Fix: Various text and layout improvements on the plugin pages;
- Language: 24 new strings added, 3 updated, 0 fuzzed, and 0 deprecated.
5.2.3
Release date: May 26, 2023
- Fix: an error was displayed when an image had only a
srcset
(and no src
) and the PICTURE tag delivery mode was enabled;
- Fix: a warning was displayed for lazy-loaded images using
data-src
;
- Fix: if the optimization queue contained an item that was added a long time ago, an error caused the optimization to crash;
- Fix: If duplicate thumbnails are no longer present in WordPress, they are ignored when trying to optimize;
- Fix: a typo when checking an array caused an error in certain cases;
- Fix: text changes on the settings page related to AVIF generation for the Unlimited plan;
- Fix: in case of a failed backup, the retry mechanism did not actually retry the optimization in all cases;
- Tweak: the optimization error notification system will only trigger when the plugin's debug mode is enabled;
- Language: 1 new string added, 1 updated, 0 fuzzed, and 0 deprecated.
5.2.2
Release date: May 10, 2023
- New: If a 5xx error is thrown during optimization, the plugin will attempt to output it for easier debugging;
- Fix: Added multiple fixes and improvements of the PICTURE tag delivery method, including a more stable fallback mechanism in case WebP/AVIF isn't available;
- Fix: In some cases, the PICTURE tag delivery wasn't working properly when WP Offload Media was active;
- Fix: Added a check for old items stuck in the queue to avoid potential errors after plugin updates;
- Fix: In some cases, when WP Offload Media is active, a "Not processable: Image processable" message was displayed;
- Fix: Added a check to prevent the main file to be passed as a thumbnail because that could crash the de-duplication mechanism;
- Tweak: Added a "Trusted mode" for file systems that respond very slowly and slow down or freeze the Media Library;
- Tweak: Added a button to start earler the optimization for huge sites, where preparing the bulk optimization queue can take a very long time;
- Tweak: updated styling for various notices to make it unitary;
- Tweak: thumbnails with ~0% optimization will be grouped toghether and displayed only once;
- Compat: Fixed a bunch of deprecation notices and warnings on PHP 8.1 and PHP 8.2;
- Language: 8 new strings added, 0 updated, 0 fuzzed, and 0 deprecated.
5.2.1
Release date February 21, 2023
- Fix: an error was displayed when trying to migrate PNG files saved in the old optimization format;
- Fix: in some strange cases, the JS worker URL was called with
http
instead of https
, blocking plugin functionalities;
- Fix: a JS error affected optimization when another plugin defined prototypes;
- Fix: if the main image was also detected as a thumbnail an error was thrown;
- Language: 0 new strings added, 0 updated, 0 fuzzed, and 0 deprecated.
5.2.0
Release date February 15, 2023
- New: added support for automatic conversion of HEIC files (Apple image format for iOS devices) to JPG;
- New: the conversion from PNG to JPG has been completely reworked, making it more robust and stable;
- Compat: the integration with WP Offload Media has been updated, according to the latest version;
- Compat: fully tested and working with PHP 8.1;
- Tweak: fractional optimization is now possible, especially useful for images with many thumbnails;
- Tweak: Custom Media stats are now retrieved with only one DB query, speeding up the settings page;
- Tweak: if a PNG is not converted, there is now a reason in the ShortPixel box on the Edit Media screen;
- Tweak: notifications are no longer reset when the plugin is activated/updated, preventing the same notifications from reappearing;
- Fix: security hardening for the settings controller and debug functions;
- Fix: a 4-digit Custom Media folder could not be added due to Media Library exclusions;
- Fix: a check is now performed before adding a NextGen gallery to Custom Media, to avoid duplicates;
- Fix: a failed PNG conversion to JPG can now be retried;
- Fix: credits can no longer be purchased from a sub-account;
- Fix: when converting a large PNG to JPG, the resulting scaled JPG was not optimized properly;
- Fix: size exclusions work as expected again;
- Fix: when credits are insufficient for the entire bulk, a notification is displayed again;
- Fix: page selection on the Custom Media screen now works as expected again;
- Fix: NextGen Gallery pages no longer crash due to jQuery errors;
- Fix: NextGen galleries are no longer added twice, a check for double slashes has been added;
- Fix: if a PNG image has the same filename as a JPG image after conversion, it's now renamed correctly to avoid conflicts;
- Fix: when an image is deleted from NextGen Gallery, the WebP/AVIF files are also removed;
- Fix: if an optimized image is in a folder without write permissions, WebP/AVIF generation is no longer attempted;
- Fix: when entering a very long email address, the browser no longer hangs;
- Fix: notification for list view mode in Media Library works again;
- Fix: various fixes and updates to the plugin's CSS and text;
- Language: 31 new strings added, 8 updated, 0 fuzzed, and 15 deprecated.
5.1.6
Release date December 31, 2022
- Fix: in some cases, AVIF files were not cropped correctly;
- Language: 0 new strings added, 0 updated, 0 fuzzed, and 0 deprecated.
5.1.5
Release date November 29, 2022
- Fix: WebP/AVIF delivery now works correctly, without affecting SVG files or other images or requests (e.g. in WooCommerce). Sorry about this!;
- Fix: a PHP warning was displayed if no valid API key was added;
- Fix: error in Custom Media if the folder is not in the root directory;
- Language: 0 new strings added, 0 updated, 0 fuzzed, and 0 deprecated.
5.1.4
Release date November 28, 2022
- New: added a filter to force a file check for WebP/AVIF if they were manually deleted from disk;
- Fix: if only small WebPs are available, include the JPG version in the
picture
tag to avoid blurry images;
- Fix: the notification about unlisted thumbnails incorrectly reported WebP and AVIF files;
- Fix: improved integration with WP Offload Media by including Retina images in virtual/offload file checks;
- Fix: if the main file was optimized but some thumbnails did not have WebP/AVIF, it was not displayed correctly in the UI;
- Fix: added a % margin when generating WebPs/AVIF, so that files that are only a few bytes larger are also generated;
- Fix: when running WP-CLI, the percentage of finished items in the total was calculated incorrectly;
- Fix: the settings page crashed in certain cases for new accounts;
- Tweak: various CSS fixes and improvements on the Media Library, especially for cases with many thumbnails;
- Language: 2 new strings added, 2 updated, 0 fuzzed, and 0 deprecated.
5.1.3
Release date November 9, 2022
- Fix: a typo related to Custom Media that caused an error when adding a new Custom Media folder;
- Fix: some minor cosmetic fixes on the settings and bulk processing pages for new plans;
- Fix: the notification about the ShortPixel column in List view is now displayed when you switch back to the Grid view in Media Library;
- Language: 1 new string added, 0 updated, 0 fuzzed, and 0 deprecated.
5.1.2
Release date November 7, 2022
- Fix: when converting PNG to JPG, the PNG path was saved in the post editor, which could result in broken images;
- Fix: the bulk restore of Custom Media was performed without saving it to the previous bulks history;
- Fix: various wording updates and fixes throughout the plugin code;
- Fix: PNG to JPG conversion failed under certain Windows environments due to wrong path construction;
- Fix: the plugin now works with thumbs that have a numeric name (e.g.
0
);
- Fix: on certain hosting restrictions, requesting a new API key caused a fatal error;
- Fix: the original image was not processed when thumbnail processing was turned off;
- Compat: added compatibility with the Uncode theme's adaptive images feature;
- Tweak: minor updates to the settings and Media Library layout for new plans that will be introduced soon;
- Tweak: added filter/constant that can be used by affiliates;
- Tweak: reworked plugin notification system to make it more robust and reliable;
- Language: 44 new strings added, 2 updated, 0 fuzzed, and 39 deprecated.
5.1.1
Release date October 20th, 2022
- Fix: a fatal error for PHP 7.2 and lower was discovered and fixed by @KZeni, thanks!
- Language: 0 new strings added, 0 updated, 0 fuzzed, and 0 deprecated.
5.1.0
Release date October 20th, 2022
- New: added SmartCropping, especially useful for eCommerce sites;
- New: if the WebP/AVIF files are larger than the JPG/PNG/GIF version, they are no longer generated to ensure that the smallest file is always delivered;
- Fix: various DB-related settings were adjusted for files with very long names and to keep AVIF/WebP optimization data correct;
- Fix: bulk processing history was lost when deleting the plugin;
- Fix: the file name in the bulk preview was added back;
- Fix: various situations and edge cases with WPML are now fixed;
- Fix: when a Custom Media item was excluded, there was no clear message next to it;
- Fix: added a check to prevent re-optimization when using bulk actions in the Media Library;
- Fix: the deactivation pop-up is also displayed in a multisite environment;
- Fix: minor wording and CSS fixes in the plugin settings and notifications;
- Fix: if there are still images to optimize and/or generate, all of them are counted and displayed correctly in the Media Library;
- Tweak: added check of necessary GD library functions to use PNG to JPG conversion;
- Compat: in some very special cases an error was triggered when the YITH Watermark Premium plugin was enabled;
- Language: 20 new strings added, 2 updated, 1 fuzzed, and 2 deprecated.
EARLIER VERSIONS
- please refer to the changelog.txt file inside the plugin archive.