Introduction

An image on a website should help explain the subject and avoid making the page harder to use. A very large file can increase waiting time, while focusing only on making it smaller can lose details. A better starting point is to consider the image’s purpose, the space where it will appear and its alternative text together.

First define the image’s role on the page

A service photo, a product detail, a team introduction and a background that simply creates atmosphere have different purposes. If the image conveys information, write a short sentence identifying the detail visitors need to see. If that sentence is difficult to write, reconsider whether the image is needed. Repeating similar photographs on the same page can obscure the main message instead of strengthening it.

Know the proportions of the space before placing the image. Choosing a portrait photo for a landscape cover can crop important details. Check that the focal point remains visible on mobile. Pay particular attention to cropping across screen sizes when a person, product or important object is near the edge.

Set file size according to its on-screen use

The largest version of the original photo is not needed everywhere. Export it at suitable dimensions based on the space it occupies and the pixel density of target screens. A small card and a full-width cover may need different files. When choosing a format, consider the differences between photographs, transparent graphics and illustrations, and verify compatibility with the browser and content management system.

After compression, look beyond the file size. Have fine lines, text or facial details deteriorated? View the image on a real phone and desktop. If the page contains several images, assess their combined load. Files that seem small individually can be heavy together.

Write alternative text for the image’s context

Alternative text should not repeat the file name or a list of keywords. For an informative image, describe the necessary information that is absent from the surrounding text, briefly and naturally. If a screenshot shows a sequence of actions, identify the step that matters to the user. Avoid repeating information already explained clearly next to the image.

Treat decorative images differently. Use the content management system’s decorative-image option when appropriate. If an image contains important writing, also provide that information as actual page text. This preserves meaning when the image fails to load or someone uses a screen reader.

Check the file name, crop and source information

Choose a file name your team will understand later. A short name describing the subject and its use makes maintenance easier than a random camera code. Keep usage rights, the photo source and any required permissions with the content files. Make sure stock photographs do not imply that they show the actual business, team or project.

Before uploading, check the version, mobile crop, the relevance of the alternative text and whether the source and licence details are recorded. Remember that the same image may need a different description on different pages.

Review the actual page after publication

The preview and the live page can behave differently. Check that the image loads, important parts remain visible on mobile and the page opens properly at its real address. If a slow connection creates blank space or sudden movement, review the image loading settings. Retesting the page after the last change helps catch incorrect files and stale caches early.

The quality of an image choice depends on more than one technical number. Clear explanation, appropriate dimensions and an accessible description work together. Explore DijitUP’s website design service to plan your website content.