How to optimise images for design formats.

Image Formats and Art Direction

I’ve spent nine years un-breaking sites that people thought were “fine” until they realized the page load speed was slower than a dial-up connection in 1998. Most of the time, the culprit isn’t a bad host or a bloated plugin; it’s the fact that someone uploaded a 5MB uncompressed JPEG straight from a DSLR and called it a day. I’m tired of seeing designers treat file weight like an afterthought. If you want to build something that actually works, you need to understand how to optimise images for design before you even think about hitting “publish” on your WordPress dashboard.

I’m not here to give you a lecture on theoretical compression algorithms or sell you on another expensive, “magic” optimization plugin that just adds more bloat to your header. Instead, I’m going to show you the actual workflow I use to balance visual fidelity with technical performance. We’re going to talk about smart file formats, sensible resolution limits, and why your retina-ready dreams shouldn’t tank your Core Web Vitals. This is about making deliberate decisions that respect both your aesthetic and your user’s patience.

Table of Contents

Mastering the Math of Lossless vs Lossy Compression

Mastering the Math of Lossless vs Lossy Compression

Look, I’ve inherited enough bloated media libraries to know that most people treat compression like a magic “make it smaller” button without actually understanding what they’re breaking. If you’re choosing between lossless vs lossy compression, you need to stop guessing. Lossless is your best friend when you’re dealing with logos or intricate typography where every pixel counts; it shrinks the file size without touching the data. But if you try to use lossless for a massive, high-res hero background, you’re basically sabotaging your site’s performance for no reason.

The real trick—and where most developers get lazy—is knowing when to embrace the “loss” in lossy. For standard photography, a little bit of data sacrifice is a small price to pay for improving page load speed with images. I always look for that sweet spot where the human eye can’t detect the artifacts, but the file size drops by 70%. If you’re just dumping unoptimized JPEGs into a theme, you aren’t designing; you’re just decorating a slow-loading mess. You have to decide: is this asset meant to be crisp and mathematical, or is it just supposed to feel right?

Choosing Between Vector vs Raster for Design Intent

Choosing Between Vector vs Raster for Design Intent

If you’re still using a heavy PNG for a logo, we need to talk. I’ve spent too many afternoons cleaning up client sites where the “brand identity” is actually just a massive, pixelated raster file that’s choking the server. When you’re deciding on vector vs raster for design intent, the choice shouldn’t be about what looks “cool” in your design software; it’s about the math behind the rendering. Vectors are math; they’re instructions that scale infinitely without adding a single byte of bloat. If it’s an icon, a logo, or a simple geometric shape, and you aren’t using an SVG, you’re basically making a bad technical decision before the site even goes live.

Raster files—your JPEGs and WebPs—are for the heavy lifting, like photography where color depth and texture matter. But here’s the thing: even with a perfect photo, you have to think about responsive image implementation. You wouldn’t serve a 4000-pixel wide hero image to a smartphone on a 3G connection, right? I see people bypass this step constantly, treating every image like a one-size-fits-all solution. Stop doing that. Match the format to the content, and then scale the resolution to the device, or you’re just adding unnecessary weight to the page load.

Stop letting your assets sabotage your performance

  • Stop using “Save for Web” as a personality trait; if you aren’t checking the actual pixel dimensions against your layout container, you’re just uploading bloat for the sake of it.
  • I’ve inherited enough 5MB hero images to last a lifetime—if your image is larger than the actual viewport it’s sitting in, you’re wasting bandwidth and my patience.
  • Don’t trust a plugin to fix a bad workflow; if you aren’t stripping metadata and unnecessary color profiles before the upload, you’re just asking for a slow site.
  • Stop the JPEG obsession; if you have transparency needs or sharp lines, use PNG, but if you’re doing photography, learn to embrace WebP or you’re fighting a losing battle.
  • Audit your “decorative” elements; sometimes a complex, heavy PNG should have just been a simple CSS background color or a lightweight SVG to begin with.

Stop treating your assets like an afterthought

Stop treating your assets like an afterthought.

At the end of the day, optimizing images isn’t some magical SEO trick you do right before launch; it’s about understanding the fundamental trade-offs you make every time you export a file. We’ve covered why you can’t just blindly throw lossy compression at every JPEG and why using a raster file for a logo is essentially design malpractice. If you aren’t looking at the math behind your compression or the intent behind your vector choice, you aren’t designing—you’re just hoping for the best. I’ve spent too many hours un-building bloated, sluggish sites because someone thought “high resolution” was a substitute for intentional asset management.

Stop letting your beautiful designs get buried under a mountain of unoptimized megabytes. A great website is a balance of visual impact and technical discipline, and that balance starts with the very first pixel you export. When you take control of your file decisions, you stop fighting your page builder and start building with purpose. Don’t just upload and pray; read the decisions you are making with every single asset. Your users—and your site speed—will actually thank you for it.

About Rasheeda Volkov

A theme is a set of decisions somebody else made. I read them before installing.

Author photo