Urgent.News

What's breaking now, across hundreds of outlets.

Tech

How to Compress Images Without Losing Quality (Free, No Signup)

A few weeks ago I was putting together a page and dropped in some photos straight from my phone. They looked great. The page did not. Each photo was 6 to 8 MB. The page took forever to load, and I sat there wondering why a simple page felt so heavy. It was the images. It is almost always the images. I have done this the wrong way for years. My old method was: open a compressor, drag the quality…

A few weeks ago, I was assembling a webpage and included some photos directly from my phone. They looked great, but the page felt heavy. It took forever to load. I realized later that the images were the culprit. I had been compressing images the wrong way for years: opening a compressor, dragging the quality slider all the way down, and hoping for the best. The file size shrank, but the photos looked terrible, like they had been through a washing machine.

Three factors determine the size of an image file: dimensions, format, and quality. First, adjust the dimensions. If the image is going to display at a smaller size, reduce its dimensions accordingly. This can cut the file size in half. Next, choose the right format. JPG is suitable for photos with lots of color and detail, while PNG is better for images with sharp edges and transparency, such as logos, screenshots, and graphics. WebP is a modern option that offers smaller file sizes compared to JPG.

Finally, set the quality between 75 and 85. For JPG and WebP, this range provides a good balance between file size and image quality. A quality setting around 80 is usually sufficient for normal viewing.

To compress images easily, I use a free online tool that runs entirely in the browser, so no data leaves my device. I simply open the tool, drop in the photo (JPG, PNG, WebP, or GIF), set the quality to 80, and adjust the max width if necessary. The tool shows the size before and after compression, allowing me to see the exact amount of space saved. The tool supports JPG, PNG, WebP, and GIF formats, and allows me to pick the desired output format.

After compressing the image, I zoom in at 100% to check the detailed parts, such as hair, text, and edges against a plain background. If the image looks clean at this zoom level, it will look clean everywhere. If not, I can increase the quality setting to 85 or 90 and try again. It's essential to compare the compressed image with the original on a full-size screen, rather than relying on tiny thumbnails.

In summary, the key to compressing images without losing quality is to adjust the dimensions, choose the right format, and set the quality to around 80. Keep the original image as a backup, and use the compression tool to create a copy with the optimized settings. This method has significantly improved the loading speed of my web pages.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

🧑💻 Portfolio Revamp: Powered by Agents, Steered by Me 🤖

Picture this: I open my own portfolio and it greets me with a giant yellow sunset, four windmills, and a typing animation that proudly announces "I'm a developer." Meanwhile, I spend my whole workday…

  • Author introduces new site showcasing AI-assisted development
  • Site features yellow sunset, windmills, and developer animation
  • Live terminal log demonstrates code generation and testing

More from Tuesday, 1 December 2026 →