Search
Enter at least two characters without personal information.

    LibraryArticles & FAQ Your projectRequest a quote
    LanguageEN
    Practical guides

    How to choose and prepare website images

    A useful image shows an activity, person, place, product or step that the text alone cannot convey as clearly. Select it for the page and the visitor’s question before editing or compressing the file.

    Go to the method

    Illustration of website project planning: How to choose and prepare website images
    Read the journey

    Check an image in its actual placement

    A usable file can become misleading after cropping, or too heavy for its display size. Check meaning, rights, framing and served variants together.

    1. Source and rights

      Identify the author, permission and real or illustrative nature.

    2. Role on the page

      Establish what information the image contributes.

    3. Displayed frame

      Inspect the retained subject on phones and large screens.

    4. Served version

      Check dimensions, size and alternative text in the published context.

    Fictional teaching scenarios to adapt to your system. This page performs no operation on your website.

    Open the situation you want to check

    The important subject disappears inside a card
    What is known
    Cropping has changed what the reader can observe.
    The next check
    Adjust the focal point, format or chosen image; check each placement rather than approving only the source file.
    The photograph is decorative in this placement
    What is known
    It may not contribute additional information.
    The next check
    Choose its alternative according to that specific role. The same image can be informative on another page.
    A generated scene resembles completed work
    What is known
    The visual alone does not prove that work or a place exists.
    The next check
    Identify illustrative material and use documented photography when the page needs to show work actually completed.
    The photo changes but its alternative stays old
    What is known
    The fictional gallery switches from DEMO-1 to DEMO-2; the alternative still describes the first product.
    The next check
    Check the image, caption, alternative and any link together after the change. A successful download does not establish that this information remains consistent.
    Evidence to retain
    DEMO-1 and DEMO-2, before/after text and the image’s role in the tested location.

    Technical reference : W3C WAI · Images · Consulted .

    Inventory every image placement

    Walk through the site as a visitor: home, services, articles, lists, cards, testimonials and social previews. For each placement, record display size, intended subject, current file, owner and approval status. A missing hero or internal-page image is easier to spot in this list than in a folder full of assets.

    Mark repeated pictures within one list and generic images used for unrelated subjects. Sharing one photograph across translations of the same page may be sensible; a set of cards comparing different activities usually needs distinct visuals.

    • Placement and purpose of the image.
    • Specific subject and relationship to nearby copy.
    • Rights, credit, version and approval status.

    Create a shot list

    For each priority page, describe a short scene: who or what appears, the setting, the action or detail and the orientation. Leave enough room for mobile cropping and avoid putting the subject where overlaid text will sit. One shoot can provide a portrait, a working scene, a material detail and a place without repeating the same crop everywhere.

    When an image comes from a third party, check publication permission, permitted uses and identifiable people. Do not present an illustrative scene as a real client project or team if it is not one.

    • A page-specific main image.
    • Complementary visuals for cards and process steps.
    • Horizontal or vertical versions to suit the component.

    Optimize while retaining useful information

    Diagram comparing a complete letterboxed image, a centred crop and a distorted image in three square frames.
    Illustration · A: contain retains the whole image. B: cover crops the sides. C: fill distorts proportions. Example: 1,600 × 900 into 480 × 480.

    Keep a high-quality source, then export variants for the sizes actually displayed. WebP and AVIF often work well for photographs; a browser should not download a huge image for a small card. Declare width and height to prevent layout shifts, and prioritize the main image visible at first load.

    A short descriptive filename, context-specific alternative text and a caption when helpful do more for understanding than stuffing EXIF fields with keywords. Google Search Central calls alt text the most important descriptive image attribute. Review credits and rights before stripping metadata: Google can also use IPTC metadata or licensing structured data.

    Fictional exercise: a 1,600 × 900-pixel source is placed in a 480 × 480 CSS-pixel square with centred alignment. With contain, the complete image occupies 480 × 270 pixels, leaving 105-pixel bands above and below. With cover, the frame shows a central 900 × 900-pixel source area, retaining 56.25% of its width.

    cover fills the frame while preserving proportions, at the cost of cropping; fill can distort the image. object-position moves the retained area without changing those proportions. If an essential detail remains outside the frame, prepare a suitable crop, possibly selected with picture. Review the alternative text too: it should not describe a detail no longer visible.

    • Responsive variants, checked file weight and HTML dimensions.
    • Alt text that describes the image’s role, or empty alt when decorative.
    • Credits and rights information consistent with the permission held.

    Scroll the table horizontally to read every column. With a keyboard, focus the table area and use the arrow keys.

    Fictional exercise: a 16:9 source in a square frame
    SettingGeometric resultEditorial check
    contain480 × 270 px image; two 105 px bandsThe complete subject remains visible with spare space
    Centred cover900 × 900 px source area; 56.25% of source width retainedEssential details must not disappear at the sides
    fillEntire source stretched to 480 × 480 pxCheck proportions of faces, objects and circles

    Check the published result

    Open every page on phone and desktop. Check crops, sharpness, text overlays, dark backgrounds, loading errors and whether card images match their destinations. In social previews, the chosen image should represent the page and survive a shorter crop.

    Update the inventory when services or campaigns change. It prevents removed pictures returning, credits being lost and main images disappearing from important pages. The prelaunch checklist includes this review in the wider visitor journey.

    Choose for the image’s role

    A photograph needs controlled compression; a diagram can remain vector artwork to preserve detail. Supply variants for displayed width and inspect the mobile download. A modern format cannot fix excessive dimensions or a crop removing the useful subject.

    Retain source, author, licence and attribution conditions for third-party photographs. A generated photograph illustrates a subject; it does not prove a location, team or completed project. Alternative text conveys useful information; provenance and credit belong in associated visible text.

    Check the useful crop

    Canvas bag buckle and strap beside a phone
    Check that the useful detail stays visible across display formats.

    Proposed case: a product image looks correct on desktop, but a variant's distinguishing detail disappears on a phone. The file exists; its purpose is no longer met.

    Compare the original and actual placements. Keep a capture per format with visible subject, alternative text and selected variant; file size alone cannot settle the review.

    • Identify the essential detail
    • Compare card and detail page
    • Keep captures at tested sizes

    Estimate variant width without sending the original everywhere

    For a raster image, multiply displayed width in CSS pixels by the target density to estimate a file width. These calculations assume a large enough source and the same crop. Enlarging a small original does not recreate missing detail.

    Scroll the table horizontally to read every column. With a keyboard, focus the table area and use the arrow keys.

    Example display widths and densities
    Fictional placementCalculationIndicative variant
    360 CSS pixel card, density 2360 × 2720 pixels wide.
    600 CSS pixel illustration, density 1600 × 1600 pixels wide.
    Same illustration, density 2600 × 21,200 pixels wide.
    • WHATWG · HTML · Images

      This helps prepare candidates; it does not independently predict the file selected by the browser. Check srcset, sizes, the actual loaded file and the crop. The HTML standard distinguishes density, display width and art direction.

    Reference documents

    Content updated on

    Test the crop before preparing variants

    This fictional illustration contains three jars. The yellow rectangle on the right-hand jar is the detail to preserve in full. Change the format, then move the crop: filling a slot does not guarantee showing the right subject.

    Three illustrated jars; the yellow label on the right-hand jar is the detail to preserve.
    Square · 1:1Educational vector illustration with no real brand or product. The text result describes the visibility of the yellow rectangle.
    Original area retained
    62.5%
    Window in the original, in drawing units
    1 000 × 1 000

    The yellow rectangle is partly cropped. Move the crop or prepare a different shot.

    The percentage measures visible area, not quality, rights or file size. Moving the crop cannot restore content missing from the shot.

    Cropping with object-fit: cover preserves proportions and hides overflow. It does not itself reduce the downloaded file; also prepare suitable variants.

    Technical references : MDN · object-fit · MDN · object-position ·

    Acceptance matrix to adapt to your project

    These proposed checks use synthetic cases. Decide the required behaviour with the team, record the result and assign unresolved gaps before release.

    Scroll the table horizontally to read every column. With a keyboard, focus the table area and use the arrow keys.

    Test cases, expected outcomes and useful evidence
    CaseExpected outcomeEvidence to retain
    A logo is the only content of a link.The accessible link name clearly identifies its destination.Accessible name in the accessibility tree and link destination with the image hidden.
    Mobile photographUseful subject visible and variant appropriateScreenshot and downloaded URL
    Informative imageAlternative text conveys the informationRead without the image
    Third-party or generated imageProvenance and use documentedSource, licence or illustration label

    Frequently asked questions

    Does every image need descriptive alternative text?

    Every image needs an alt attribute, but its value depends on its role. Describe useful information and use an empty value for decoration. A logo acting as the only content of a link should identify its destination. Check the result in the page context.

    Does a newer image format automatically make a page lighter?

    No. Compare the resource actually loaded at dimensions and visual quality suited to the same use. A large variant remains costly in an efficient format. Check crops, unnecessary resources and the initial-view image. Retain the source so new variants do not repeatedly recompress an already degraded copy.

    How can you check that cropping preserves useful information?

    Choose an image whose subject matters, such as a product, gesture or venue entrance. Compare the full image with narrow and wide variants, then review caption and alternative text in context. If an essential detail disappears, change the crop or explain it in text; enlarging the same thumbnail cannot recover it.