How to Reduce the Maximum Image Upload Size in WordPress

How to Reduce the Maximum Image Upload Size in WordPress Featured Image

Large, uncompressed images can slow down a WordPress website. One way to avoid this is to set restrictions on the maximum image upload size so that users are encouraged to compress and resize images before uploading. There are several ways to reduce the maximum image upload size, and the easiest of them is with the help of a plugin.

There are a few plugins for the purpose. Some of them haven’t been updated in a while, so it’s not certain if they are working properly with the latest WordPress versions. Because of this I don’t usually recommend them. Unfortunately, WP Image Size Limit is the only plugin I managed to find that limits the file size of the image files you want to upload.

The next best thing are plugins that limit the dimensions of images. Unlike with file sizes, the choice here is rich. However, you need to install and use only one plugin – if you run two plugins simultaneously, this can cause conflicts. For the purposes of this tutorial I chose to use Max Image Size Control.

Install and Activate Max Image Size Control

As with any other WordPress plugin, before you can use it you need to install and activate it. To do this, in your admin interface go to “Plugins -> Add New.” In the search box enter the name of the plugin, and when it shows in the list, click Install. Then click Activate. Now go to “Settings -> Max Image Size Control,” and open the configuration page for the plugin.

reduce-upload-image-size-wp-01-settings

Set the Desired Restrictions

When you are inside the configuration page for the plugin, you can set the desired limits. As you see, the plugin gives a lot of flexibility – you can choose whether to apply image size restrictions to every single post or only to specific posts/categories. This makes sense because sometimes you really need the image in whole, in its glory, and if you restrict image sizes everywhere, your hands are tied.

Next set the thumbnail, medium, and large sizes. You can also set a custom size.

All image sizes have the option to automatically crop the images to the desired size. While this is handy, I don’t recommend it. When images are autocropped, you don’t have much control over what’s left and what’s cropped. You’d better do the cropping manually in a graphics image editor such as GIMP so that you can see the result before you upload it to WordPress.

Rescale Images with Imsanity

If you are not happy with Max Image Size Control, you can check other plugins. For instance, Imsanity does a similar job, but instead of cropping files, it scales them. This means everything in the image remains, only its sizes are proportionally scaled down. The plugin doesn’t allow you to set different rules for individual posts or categories, though, which is kind of limiting.

reduce-upload-image-size-wp-02-imsanity

There are other approaches to setting max image sizes, too. You can set the image size restrictions in the configuration files for your site or (sometimes) in the theme itself, but you’d better stick with the plugin approach. Mess with the configuration files as a last resort only, because if you make a mistake there, you might render your whole WordPress site worthless for a while. The plugin approach might not be that flexible, but it’s the much safer way to restrict the maximum image upload size in WordPress.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Ada Ivanova Avatar

Read next

Suzanne Simard sealed paper birch and Douglas fir seedlings inside plastic bags, fed them carbon-14 and carbon-13 dioxide, and nine days later found carbon had crossed between species through fungal threads in the British Columbia soil beneath her boots
A species of jellyfish called Turritopsis dohrnii can revert its adult cells back to a juvenile polyp stage when injured or starving, effectively restarting its life cycle, and biologists have so far failed to identify any natural limit to how many times it can do this.
A Japanese man named Jiroemon Kimura, who lived to 116, was born in 1897 when Queen Victoria still ruled and died in 2013, meaning a single human life personally overlapped with the invention of the airplane, the atomic bomb, the internet, and Instagram
The Hollywood sign originally read HOLLYWOODLAND when it was built in 1923 as a real estate advertisement for a housing development, and it was only meant to stand for 18 months, but nobody ever got around to taking it down and the city eventually adopted it as a landmark
Almost all of the world’s internet traffic does not travel by satellite but through fibre-optic cables lying on the ocean floor, a hidden web of wires crossing the deepest parts of the sea to connect the continents.
People who flip their phone face down on every table aren’t being secretive. They figured out that staying interruptible meant handing their time to whoever rang first
Twitch vs. Facebook Gaming vs. YouTube Gaming: What’s the Best Live Game Streaming Platform?
Chrome Extensions Ownership Transfer is a Direct Threat to You: How to Stay Safe