All articles

For developers

A Web Developer's Image Workflow: Resize, Crop, Convert, Compress

By the ImageBerry team · November 23, 2026 · 2 min read

Every project has the same moment: the client sends a folder of photos straight off a phone or camera, and you have to make them work on a website. Over time I've settled into a routine. Nothing clever, just doing the steps in the right order so I don't redo work or lose quality.

The order matters

  1. Crop. Decide the shape each image needs and cut away what you don't need. Cropping first means you never resize pixels you're about to throw away.
  2. Resize. Scale to the largest size the image will be displayed at, or up to about twice that for high-density screens.
  3. Convert. Choose the format: WebP for most things on the web, PNG or WebP for transparency and sharp graphics, JPG where compatibility matters.
  4. Compress. Fine-tune the quality so the file is as small as it can be without visible loss.
  5. Name and test. Use descriptive file names, drop them in, and check the page.

Do it backwards and you'll compress a huge file, then shrink it, then wonder why it looks rough. Every extra save of a lossy file costs a little quality.

Which tool for which step

StepTool
Crop to a ratio and resize one image[Image Resizer & Cropper](/tools/resize)
Resize a whole folder[Bulk Image Resizer](/tools/bulk-resize)
Change the format[Image Converter](/tools/convert)
Squeeze the file size[Image Compressor](/tools/compress)

Why I like a browser-based tool for this

Client photos can be private: unreleased products, staff pictures, internal documents. With a tool that processes files inside the browser, nothing gets uploaded to someone else's server, so I'm not sending a client's material to a third party just to resize it. That's a real comfort. It also means there's nothing to install and it works the same on any machine.

When to automate instead

I'd be misleading you if I said a manual tool is right for everything. Once a site has hundreds of images, or content editors who upload new ones every week, it's worth moving the work into the build or upload process, using an image pipeline or a framework's built-in image handling, so every picture is resized and converted automatically. A manual workflow is perfect for small business sites, landing pages, one-off projects and quick fixes, which is a big share of the real-world work.

Keeping the repository healthy

  • Don't commit giant originals. Image files pile up in a git history and can't be removed easily later. Commit the optimized versions and keep the originals elsewhere.
  • Use a consistent naming pattern, such as page-purpose-width.webp.
  • Keep one folder per page or section, so unused images are easy to spot and delete.

A short pre-launch check

  • Does every image have width and height set, so the layout doesn't jump?
  • Is the hero image optimized but not lazy-loaded?
  • Do the images have meaningful alt text?
  • Is the total image weight on a typical page reasonable on a mobile connection?

The longer checklist is in our image optimization checklist for websites.

Try the tools mentioned here