HostSalt Image Optimizer
Automatically optimize, compress and convert images to WebP or AVIF on upload — powered by the HostSalt IO API.
Install in
HostSalt Image Optimizer connects your WordPress site to the HostSalt IO cloud API to automatically compress and convert images on upload. No server-side libraries required — just install, connect and start saving bandwidth.
Features:
- Automatic optimization on upload — no manual steps needed
- Converts images to WebP or AVIF for maximum compression
- Smart format selection — picks whichever format saves more
- Lossless backup — restore originals any time with one click
- Bulk optimize your entire existing media library
- Bulk restore all images to their originals
- Monthly usage dashboard built into wp-admin
- Works with all themes and page builders
- Multisite compatible
How it works:
When you upload an image, HostSalt Image Optimizer sends it securely to the HostSalt IO API. The API compresses and converts the image, then returns the optimized version. The original is kept as a backup so you can restore at any time.
A free plan is available with 50 optimizations per month. Paid plans are available for higher volumes.
External Services
This plugin sends image data to an external API service operated by HostSalt:
- API endpoints: https://images.hostsalt.com/optimize and https://images.hostsalt.com/usage/{site_id}
- Data sent: image file contents, output format preference, quality setting, max width setting, and a unique site identifier derived from your site URL (MD5 hash)
- Data received: optimized image file
- When: on image upload (automatic), on manual Optimize button click, and during bulk optimization
This service is operated by HostSalt. Please review the following before use:
- Terms of Service: https://hostsalt.com/terms-of-service/
- Privacy Policy: https://hostsalt.com/privacy-policy/
No personal user data is transmitted. Only image files and site configuration are sent.
Written by Joobi from the project's own listing. See the source page
1.1.0
- Compatibility: verified against WordPress 7.1
- Fixed: attachment metadata (file name, dimensions and size) now follows the optimized image, so srcset and full-size URLs stay correct
- Fixed: bulk optimize and bulk restore no longer skip images, because pagination now uses a stable cursor instead of a row offset
- Fixed: the original file is no longer deleted before the optimized copy is safely written, and a restore keeps the active image when it fails
- Fixed: images are only optimized once WordPress finished generating their sizes and metadata
- Fixed: repeated optimization of an already optimized image no longer discards its backup
- Fixed: the API response is verified before it replaces a media file
- Fixed: the plugin settings link now points to the settings page
- Improved: the monthly limit response keeps its details, so the upgrade notice appears
- Improved: bulk actions stop retrying forever after repeated connection errors and report failed restores
1.0.3
- Renamed: internal identifier
hostimopchanged tohsiothroughout the plugin - Drop-in replacement for HostImop plugin with no data loss on upgrade
1.0.2
- Fixed: backup files now stored in a plugin-specific uploads directory instead of beside the original media file
- Fixed:
set_time_limitnow scoped to actual optimization tasks instead of running on every admin request - Fixed: settings form field name mismatch that caused format preference not to save
- Fixed: hardcoded upgrade URL replaced with dynamic value from plugin settings
- Fixed: error suppression removed from file restore operations to surface failures properly
- Improved: removed unused activation code and internal developer comments
- Improved: code indentation and structure consistency
1.0.0
- Initial release
- Automatic optimization on upload via shutdown hook + WP-Cron backup
- WebP and AVIF conversion with smart format selection
- One-click restore of original images
- Bulk optimize and bulk restore
- Monthly usage dashboard
- Multisite support
Follow this listing's changes (Atom feed)