Bajorat Media
Optimise Images for Websites: Balance Quality, Speed and SEO
How businesses prepare, deliver and review website images for faster pages, better accessibility and practical image SEO.

Images shape a website’s first impression, and they are often among the largest files a page has to load. An oversized hero image can slow down a mobile page. A poor crop can make a reference photo confusing on a phone. When alt text is missing, a graphic loses context for screen-reader users and search engines.
Optimising images for websites therefore takes more than pressing a compression button. Image selection, cropping, file format, delivery and page context all matter. This guide outlines a practical workflow for company websites, editorial content, case studies and ecommerce pages.
Optimise images for websites by defining their job first
Before exporting an image, define what it is meant to do on the page. A large hero image may set the tone and needs a different image area from a product card. A screenshot has to keep the relevant detail readable. A decorative background should never contain information that does not also appear in the content.
A short image plan prevents unnecessary variants and rework:
| Use | What matters | Common problem |
|---|---|---|
| Hero image | clear focal point, crop works on mobile and desktop | the relevant subject disappears in the mobile crop |
| Case study or product image | details and real proportions remain visible | a small source file is enlarged |
| Screenshot | relevant area is readable, sensitive information removed | the whole interface is scaled down until it is illegible |
| Editorial image | adds to the section it accompanies | generic stock imagery without a connection to the text |
| Decorative image | supports the design without carrying required information | a message appears only in the image |
For a relaunch, image areas belong in the planning phase: which motifs does the homepage need, which service pages need case-study imagery, and which formats appear in editorial content? Our web design and conception service connects content, layout and technology from the beginning. Responsive web design adds the device perspective needed for flexible crops.
Keep file size, dimensions and image format separate
These terms are often mixed up, but they solve different problems:
- Dimensions define the number of image pixels. A 4,000-pixel-wide file is usually excessive for a 600-pixel card.
- File size describes the number of bytes transferred. It depends on dimensions, format, compression and the image itself.
- Format determines how image data is stored and which features browsers can use.
WebP and AVIF are useful formats for many website photographs and illustrations. Google lists both as supported image formats and recommends current optimisation and responsive-image techniques to combine image quality with a fast experience. Changing the format alone is not a cure-all: an oversized AVIF is still oversized when a page only displays a small portion of it.
As a starting point, export for the largest real display size, leaving sensible room for high-density screens but not automatically using the camera’s original resolution. Then review the file on the actual page type rather than judging it only in the media library.
Responsive images should not send the same file to every device
On a desktop display, an image may span the full content width. On a phone, it may appear only half as wide or need a different crop. When both devices download the same large source file, mobile visitors pay for pixels they never see.
Image variants at graduated widths, combined with srcset and sizes, let the browser select a more appropriate resource. Google still recommends a fallback URL in the src attribute for responsive images. That keeps delivery robust even when a client does not handle every additional attribute the same way. Google’s image SEO guidance also explains why images should be embedded with HTML img elements instead of existing only as CSS backgrounds.
Editorial teams do not need to create ten files by hand for every image. A good content system, image CDN or build process can create those variants. The important rule is that the template needs to know the likely display width, while the source image must retain enough room for sensible crops.
Reserve space with explicit width and height
When a browser can calculate an image area only after loading the file, content below it shifts. This is especially disruptive in lists, article pages and shop cards: text moves while someone is already reading or trying to select an action.
Defined width and height attributes, or a dependable aspect ratio, reserve the image area in advance. They do not improve every performance metric on their own, but they reduce avoidable layout shifts. Along with sensible prioritisation for above-the-fold hero images and restrained lazy loading for content below the first viewport, this creates a more stable loading experience.
Performance optimisation considers images alongside fonts, scripts, caching and the actual page templates. This is especially useful on ecommerce and image-led case-study pages, where reviewing templates is often more effective than adjusting one media file at a time.

Image SEO comes from context, not keyword lists
Search engines do not interpret a file in isolation. They connect an image with its surrounding section, embedding and description. Google recommends descriptive filenames, relevant nearby text and useful alt text. A filename such as manufacturing-floor-control-panel-installation.webp says more than IMG_4832.webp.
Alt text explains the information value of the specific image. It does not replace a caption, and it is not the place for a string of keywords. For a photo, “Technician installing a control panel on a manufacturing floor” can be appropriate. For a chart with measurements, the key finding also needs to be in the body copy because a long sequence of values is hard to use as alt text.
For a purely decorative element, empty alt text can be correct because it avoids interrupting screen-reader users. Once an image explains a decision, step or outcome, it needs a meaningful alternative. This overlaps with the requirements of accessible websites and improves editorial quality at the same time.
Google also explains that structured data or og:image can communicate a preferred preview image for a page. That does not guarantee appearance in a particular search feature, but it helps provide a relevant candidate instead of an arbitrary one. See Google’s image metadata best practices for the details.
A practical review before publishing
This checklist works for new pages as well as for an existing media library:
- Define the image purpose: does it lead, explain or simply decorate?
- Check the subject on desktop and mobile; plan a separate crop where needed.
- Review the source for unnecessary margins, sensitive information and irrelevant detail.
- Export dimensions that fit the image’s actual space in the template.
- Test WebP or AVIF and inspect quality at 100% zoom; a different format can make sense for fine-line graphics.
- Deliver variants for different widths where the template supports them.
- Define width, height or aspect ratio in the markup.
- Assign a descriptive filename pattern and contextual alt text.
- Test the page on a mobile device and a slower connection.
- Measure the important page types after release: weight, loading speed and layout stability.
A website acceptance checklist puts image review into the wider pre-launch process, alongside contact paths, consent, copy and mobile use. When formats, sizes and crops are inconsistent across a large media library, a shared set of media rules is usually more efficient than fixing individual files one by one.
Conclusion: Good images support content and technology together
A good website image does more than look appealing. It shows the right crop, loads at an appropriate size, remains understandable on a phone and relates clearly to its surrounding section. Users, editors and technical quality all benefit.
Start with images on pages that bring significant traffic or inquiries. That is where a better export pattern, responsive variants or template improvements can have the greatest impact. The same standard can then be applied across the rest of the site.
