Compress Images for Blogs and CMS Uploads Before You Publish
Content systems often resize images for you, but starting with a lean file still pays off.
By the Universal Image Compressor Team
What a CMS does with your uploads
Content management systems, blogging platforms and website builders handle images in different ways. Many create several smaller copies of every upload for thumbnails, content width and full size. Some convert images to a modern format, and some apply their own compression. Others store the file exactly as uploaded and serve it unchanged.
Because the behavior differs and changes between versions and plugins, you should not assume that the system will make your images light. Check what your own site does: upload a large picture, open the page, and look at the size of the file that visitors actually receive in the Network panel of the browser's developer tools.
Why compress before uploading
A system that creates smaller copies usually starts from the file you upload, so a lean original gives lean copies, and it uses less storage on your server and in your backups. A smaller upload is also faster on a slow connection and less likely to fail. And if the system does not resize at all, compressing yourself is the only way to avoid serving a multi-megabyte photo.
Another reason is control. When you compress yourself, you choose the quality, the size and the format, and you can look at the result before it goes live, instead of accepting the system's defaults.
Upload limits
Many hosts limit the size of uploaded files, often to a few megabytes by default, and PHP-based systems have upload settings that hosting companies commonly keep low. If an upload fails with an error about file size, the cause may be this limit. Compressing the image below the limit is faster than asking the host to change the setting, and is good practice anyway.
A phone photo of 4 to 8 MB can exceed such a limit, while the same photo at 1920 pixels and quality 80 is a few hundred kilobytes.
Double compression
If you upload an already compressed JPEG and the system compresses it again, the picture goes through two lossy steps, and artifacts can become visible. To limit the damage, upload at a moderately high quality, around 80 to 85, and at the right size, so that the system has little left to change. A picture that is already sized correctly is often left alone by the system.
If you notice that images look worse on the site than on your computer, check the compression settings of the system or its plugins, and compare an uploaded file with the delivered one.
Choosing the size
Look at your theme: what is the widest place where an image is displayed? A typical blog column is 700 to 800 pixels wide, a full-width header can be 1920 pixels. Upload images at that width, or a little more for high-density screens, not at the original camera size. For a content column of 800 pixels, 1600 pixels is generous for sharp display on dense screens.
The maximum size option of the compressor does this in one step: it scales down pictures that are larger than the value and leaves smaller ones alone.
Format choices
JPEG is a safe format for photos in any system. WebP is smaller and is supported by modern browsers and by most current systems, but some older systems and plugins do not accept it for upload. Use PNG for logos, screenshots and graphics with transparency. If a system converts your pictures to WebP automatically, upload the best JPEG or PNG you can make and let it do the conversion.
If you are not sure, upload one test image in each format and see what the system delivers.
File names, alt text and captions
Give the file a descriptive name before you upload, for example blue-bicycle-in-front-of-cafe.jpg, since the name often becomes part of the address of the image. Fill in the alt text field for every image that carries meaning. Add a caption where it helps the reader. These steps take seconds in the upload dialog and help both accessibility and search.
The compressor keeps your base name and adds -compressed to files it has changed (files marked as already optimized keep their original name), so rename the downloaded files if you want a cleaner name.
A simple workflow
Collect the images for a post, add them all to the compressor, set the maximum size to your content width times two, choose JPEG or WebP and a quality of 80, and check the list. Download them, rename the files if needed, upload them to the CMS, add alt text and publish. Keep the originals in a folder for later.
After the first few posts, this takes only a few minutes, and your site stays light without any plugin and without sending your pictures to a third-party service.
Maintenance and updates
Images need care after the first upload. When you redesign the site, change the theme or add high-density layouts, the sizes that were right before may no longer be right. Keep your originals in an organized archive, and revisit the most important pages once a year with a speed test. If you find a heavy image, replace it with a fresh compressed copy created from the original.
It also helps to document your standard settings for the team, so that every author prepares pictures in the same way. A short note with the maximum width, the format and the quality saves many questions and keeps the site consistent over the years.
Prepare your blog images in one batch with the free image compressor.
Open the image compressor