MegaOptim Image Optimizer


MegaOptim is image optimization plugin/service and that is easy to use, stable and actively maintained by dedicated team behind.

The plugin uses minimal resources on your server and all the heavy lifting is done by our API service in the cloud. No binaries will be ever installed on your server.

What is image optimization / compression and why it is important?

Image Optimization is delivering the high-quality images in the right format, dimension, size, and resolution while keeping the smallest possible size.

How much does MegaOptim cost?

The service comes with 500 FREE images/tokens per month for everyone. We also have unlimited plan and creating sub-accounts for your clients. Check out our prices here.

Want more tokens for free? Help us spread MegaOptim and earn 120 tokens per sign up and 300 tokens once customer becomes paid customer. Our Referral program can be found in the dashboard area.

What features does MegaOptim offer?

  • Three different optimization levels (ultra, intelligent, lossless)
  • Bulk optimization for the Media Library, NextGen Libaries, MediaPress, Envira and other
  • Bulk optimization of Custom folders by your choice in your hosting account
  • Auto-optimization for the Media Library, NextGen Libraries, MediaPress, Envira and other
  • WebP Management (Enable/Disable WebP. Convert images to WebP upon optimization and automatically replace the content images with WebP version if available)
  • Thumbnail Management (Select which thumbnail versions to be optimized for both regular and retina)
  • Backup Management (Enable/disable backup for specific module or remove backups that you don’t need.)
  • Subaccount Management (Manage your client sites and have separate statistics and subaccount/api key for each. Transfer tokens from onetime or monthly balances between accounts.)
  • Supports WordPress Multisite, setup the plugin separately on the sites you want.
  • Integrates with WP Retina 2x(Free and Pro). It will optimize all the retina images too.
  • Supports Cloudflare, if you are using it with plugins or you enter your CF credentials in the setup page it will purge the image automatically from CloudFlare cache after it is optimized
  • Option to enable/disable auto conversion from CMYK to RGB (A better color profile for web)
  • Option to preserve EXIF data(location, time, camera model) or remove it upon the optimization
  • Option to specify maximum dimensions of optimized images. You may not need plugins like Imansity
  • Supports both HTTP and HTTPS
  • Supports public, local and password protected sites. Huge benefits for developers with local environments.
  • Supports Basic HTTP authentication, if your site is protected with .htpasswd
  • Uses progressive JPEG for the larger images to display them faster in the browser
  • Compatible with WP Engine, SiteGround and other hosting providers
  • Compatible with Windows/UNIX(Linux, OSx) hosting environments
  • Images that are optimized and the total saved size is less than 5% are free, no tokens are charged
  • Optimization stats available at the dashboard area
  • Dedicated support team ready to help you 24/7.

Have a question? Contact us!

Are you a developer?

Click here to read more about the actions and filters that are available.


  • General Settings
  • Advanced Settings
  • Debug Page
  • Media Library: Optimizer
  • Media Library: Table screen buttons integration
  • Media Library: Edit attachment screen buttons integration
  • Custom Folders: Folder select dialog
  • Custom Folders: Optimizer
  • NextGen Galleries: Optimizer
  • NextGen Galleries: Gallery table screen buttons Integration


1.) Sign up for api key at
2.) You will receive your API key in the email address you provided.
3.) Upload the MegaOptim plugin to /wp-content/plugins or install it via the wp-admin interface, finally activate it.
4.) Navigate to wp-admin and in the sidebar menu click on „MegaOptim“, hover over and go to „Settings“, here you can paste the api key and save the settings.
5.) In the same section check the other settings, change them according to your needs.
6.) You are all set! Begin optimizing by navigating to „MegaOptim“ > „Optimizer“ ( In the top right corner you can select optimizer )


What is API token?

One API token is one image. Please note that WordPress generates multiple thumbnails per one image. You will be charged one token for each thumbnail. If the total saved size per image is less than %5 you will not be charged.

Can i use the same API Key on multiple websites?

Absolutely. You can use your API key on as many websites as you want or you can also create sub accounts for each of the sites you manage if you want to keep the things separate or bill your clients separate.

Can i manage multiple sites separately with sub-accounts?

You can create sub-account for your client and transfer tokens to the sub-account balance. This way your client will have separate account and api key and you will be managing it. You have the option to add or remove api tokens from it.

Which compression level should i use?

For most of the websites intelligent method is enough, it auto determines the level of compression of the image that works best for the human eye. The ultra mode is similar to intelligent but goes a bit further to save more space. If you are willing to sacrifice small bits of the image quality then this mode is the way to go. Finally, with the lossless method the service attempts to optimize the images without touching the image quality. It is not recommended method if you are looking for google pagespeed score or page load speed.

I am using PHP 5.2 but want to still use the plugin?

MegaOptim plugin supports PHP 5.3 or newer, but no worries. We offer up to one hour support to upgrade your hosting account with newer PHP version if you have access to do so.

Is the plugin compatible with WP offload S3 and WP Stateless?

Not fully compatible, but we are already working and testing this feature. It will be released soon.

Can i optimize the WordPress Media Library

Sure, just go to MegaOptim > Optimizer and in the top right select \“WP Media Library\“ and start the process!

Can i backup and restore the images?

Yes, MegaOptim have option to backup the images and it is enabled by default. You can alawys restore the original images if there is backup.

What image formats can be optimized?

MegaOptim supports JPEG, PNG, GIF (animated or non animated)

Does the plugin optimizes the images in cloud or in my website’s server?

No. The plugin will send every image to our API service and all the processing is done by our powerful servers. You won’t notice any slowdown while the optimizer is running.

Do i need separate tokens for WebP Images?

No, WebP versions are free of charge!

What payment methods do you support?

We support both PayPal and Credit Card via Paddle. The payments can be recurring or onetime.

What happens if i stop using or deactivate MegaOptim plugin?

Nothing, your images will remain optimized, if you used the WebP feature the site won’t serve WebP any longer.

What are the pricing packages?

We do both one-time and monthly. Please check out here.

Can i cancel my subscription?

Absolutely! You can cancel your subscription whenever you want.

Do you have an API?

Yes, please check out here for more documentation.

Will MegaOptim work with CloudFlare?

Yes! You need to use the CloudFlare plugin with correct credentials or setup credentials in the Settings > Advanced menu. If the credentials are setup correctly, the plugin will automatically purge from the CloudFlare cached images when they are optimized with MegaOptim.

I have problem, the plugin won’t work.

Please contact us as soon as possible and we can assist you. We even have a live chat.


März 17, 2019
Excellent plugin! Since it is brand new, i wanted to give it a try and i am quite impressed with the results. I optimized around 8000 images and saved about 2.2GB in total. I recommend this plugin and installing it on other sites i maintain!
Lies alle 1 Rezension

Mitwirkende & Entwickler

„MegaOptim Image Optimizer“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:




  • Added Support for the Unlimited plan
  • Added Support for sub accounts
  • Revamped media library optimizer
  • Revamped nextgen library optimizer
  • Revamped retina support & WP Retina @2x integration
  • Improved optimization speed by at least 50%
  • Improved WebP support
  • Improved Settings pages
  • Improved WPEngine compatibility
  • Fixed Cloudflare purge compatibility
  • Fixed problem when auto-optimizing nextgen gallery images
  • Improved stats display when optimizing single attachment in Media Library table
  • Added detection for the child theme folder in ‚Local Folders‘ optimizer
  • Fixed several typos


  • Improved Admin pages
  • Improved WebP support


  • Added WebP Support
  • Removed MegaOptim from main menu and added the settings part in „Settings“ and the optimizer in „Media“ tabs.
  • Improved settings data persistence
  • Improved security
  • Improved Admin UI
  • Fixed PHP Strict Standards warning
  • Fixed saving max dimensions value
  • Revamped database upgrade process


  • Improved WP Retina 2x compatibility


  • Fix error triggered on media table and media edit screen in the MegaOptim column/metabox when attachment is not image.


  • Updated MegaOptim php library
  • Fix problems with non-ascii parts in the urls


  • Security hardening
  • WordPress 5.1+ compatibility
  • Fix undefined variable problem on ‚Custom folders‘ screen
  • Fix non-unique html ids for thumbnail size checkboxes


  • Fixed error warnings


  • Added feature to sign up for api key from the WordPress Dashboard
  • Improved UI & added scan library button
  • Improved instructions
  • Removed the unnecessary database queries for faster bulk processing
  • Removed the unnecessary megaoptim API calls for faster bulk processing
  • Removed unnecessary code leftovers
  • Fixed nextgen gallery sql query used to find all unoptimized images
  • Improved compatibility with PHP5.3 and onwards


  • Don’t stop the bulk process when image is missing on the server, continue to next instead.
  • Added the WP version in the useragent header when sending request to the api server
  • Corrected info message in the Media List Table and the Media Edit Metabox.


  • Imrpoved settings instructions
  • Removed tag folder from the plugin directory.


  • Fix error when editing post
  • Improved Welcome instructions
  • Improved API Key form


  • Added megaoptim_after_restore_attachment action hook (Called after attachment is restored.)
  • Improved readme and fixed typos


  • Initial release