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 installed on your server to resize or compress images directly on it unlike some other plugins.

What is image optimization / compression?

Image Optimization is delivering the high-quality images in the right format, dimension, size, and resolution while keeping the smallest possible size. This will increase your page load speed and boost your SEO.

How much does MegaOptim cost?

The service comes with 500 FREE images/tokens per month for everyone. Additional tokens can be purchased starting from $4.99 for 6000 tokens. 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 Support – Convert images to WebP upon optimization and automatically replace the content images with WebP version if available
  • Option to choose thumbnail sizes you want to be optimized for both regular and retina thumbnails
  • Option to choose what to backup automatically
  • Auto-backups for the optimized images. If you don’t want the results you can always restore the image from backup with a single click
  • Button to remove all the backups to free up the space if you don’t plan to restore the images
  • Supports large images, no filesize limit
  • Supports WordPress Multisite, setup the plugin separately on the sites you want.
  • Integrates with Media Library and NextGen Galleries screens and adds buttons for optimization/restoration of specific image
  • Integrates with WP Retina 2x(Free and Pro). It will optimize all the retina images too
  • Supports Cloudflare, if you are connected to CF with plugins or you enter your 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 localhost and non-public sites. If your site is not accessible by our server, you can still optimize images as long as you have internet access
  • 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
  • Single api key for multiple sites
  • 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 deducted
  • 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.

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 hosting?

MegaOptim send each image to our cloud service and each image is optimized and then downloaded and replaced with the original, if you have backups enabled the image will be backed up additionally.

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

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!


Excellent potential

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!
Read all 1 review

Contributors & Developers

“MegaOptim Image Optimizer” is open source software. The following people have contributed to this plugin.




  • 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