How to Size and Export Images for a Client Website
Plan image dimensions, crops and formats for a client website, compare exports without guessing, and verify what the published page actually loads.
Start with the image placement and displayed size, preserve the original, agree crops and output formats with the implementer, and compare exported files at their intended size. Verify the selected image on the actual page; a smaller file in a delivery folder is not proof of a faster website.
Start with a placement, not a universal file-size target
A client sends a large photograph and asks for a web-ready version. Before moving a quality slider, find out where that picture will appear. A full-width banner, a small service card and a zoomable product image have different needs. One export labeled “optimized” does not describe which job it is ready to do.
This workflow is for freelancers preparing still images for an existing website design. Use an image editor and browser you already have. It does not require buying a compression service or uploading private client assets to a new website. Technical format and responsive-image guidance comes from the two MDN sources linked here.
All project details, filenames, dimensions, file sizes and worksheet results below are hypothetical teaching examples, not client work or performance measurements. The running example is a fictional bicycle repair shop with a service-card photo. The goal is a reviewable export package, not a promised speed score or search-ranking improvement.
1. Write a small placement specification
Ask the designer or implementer for the page, component, intended crop, maximum displayed width and relevant narrow-screen layout. Record whether the image is decorative, informative or part of a link so its content treatment can be reviewed separately. Do not infer these decisions from the dimensions of the source photograph.
Hypothetical specification: “Repairs page; tune-up service card; landscape 3:2 crop; up to 600 CSS pixels wide; bicycle and mechanic’s hands must remain visible; same crop on narrow layouts; no text overlay.” A separate mobile crop would need its own row and approval if the subject became too small.
Distinguish CSS pixels from the pixels stored in the file. MDN explains that high-density screens can benefit from a higher-resolution version at the same displayed size. For this hypothetical 600 CSS-pixel placement, a 1200-pixel-wide export is a 2x candidate, not a universal requirement for every image or device. Agree the candidate sizes with the implementer rather than multiplying every source by two.
Ask what the CMS already does. It may generate smaller versions, convert formats or accept only certain uploads. If it already produces the needed variants, agree on a suitable source upload instead of manually creating a duplicate set that nobody will use.
2. Preserve the source and approve the crop
Keep the supplied original unchanged and make a working copy. Record the source filename and the approved use in the project folder. Confirm that the client has supplied an asset intended for this placement; compression is not a permissions check.
Hypothetical source: repair-bench-original.jpg is 3600 by 2400 pixels, already a 3:2 landscape image. Resizing the whole image to 1200 pixels wide gives a height of 800 pixels. A 600-pixel-wide variant of that same crop is 600 by 400. Changing both width and height independently to force a different shape would distort the picture.
If the target shape differs, crop deliberately before resizing. Mark the subject or focal area that must remain visible. Review the crop at the actual card size, not only enlarged in the editor. A technically sharp photograph can still fail its purpose when the important detail is too small.
MDN distinguishes resolution switching, where the same composition is supplied at different sizes, from art direction, where different crops serve different layouts. Label those decisions separately. Do not give a developer a close-up mobile crop and a wide desktop crop as if they were interchangeable resolutions of the same image.
3. Choose a format the website can actually serve
Use the MDN format guide as a starting point, then test the actual asset and delivery pipeline. JPEG is a common choice for photographs when transparency is not needed. PNG supports lossless images and transparency and can suit sharp graphics, but it is not automatically the smallest choice for a photograph.
WebP and AVIF support modern compression options, including transparency. Their usefulness still depends on the editor, CMS, image-processing service and browsers the project supports. Ask the implementer which outputs and fallbacks the site can deliver before sending a format that the upload interface rejects.
Do not convert every asset to the same format by habit. A photograph, a transparent illustration and an existing vector logo deserve separate decisions. Keep an approved vector logo available to the implementer rather than rasterizing it solely to follow a photo-export checklist.
For the hypothetical service photo, compare JPEG and WebP only if both are supported by the agreed workflow. Keep dimensions and crop identical for the comparison. A smaller WebP file with a different crop or visibly worse detail is not a like-for-like result.
4. Compare exports at the intended viewing size
Export from the preserved working source, not by repeatedly recompressing the last compressed output. Save candidate names that identify placement, crop, pixel width and version. Record the editor and settings so a later revision can be reproduced without guessing.
Inspect each candidate at its intended displayed size and inspect important details more closely when needed. Look for blocky edges, halos, smeared textures, changed colors, damaged transparency and unreadable lettering already present in the photograph. Check against the original; a smaller file is not useful if it loses the information the image was chosen to communicate.
Hypothetical comparison: the 1200 by 800 JPEG candidate is 180,000 bytes; the same-size WebP candidate is 120,000 bytes. That is 60,000 fewer bytes, or about 33.3% less than the JPEG candidate. These invented numbers illustrate the calculation: difference divided by the starting size. They are not typical format savings or measured results.
Treat the byte count as one input to the decision. A quality value of 75 in one exporter is not a promise of the same appearance as 75 in another. There is no single kilobyte target in this guide for every photo. Choose the smallest supported candidate that preserves the detail needed for this placement, and record any unresolved visual trade-off.
5. Package the variants with implementation instructions
Use one row per delivered variant: placement; source version; crop identifier; pixel dimensions; format; byte count; intended display role; approval state; filename. Keep draft candidates outside the approved upload folder so the implementer does not have to guess which file won the comparison.
Hypothetical approved rows: “Tune-up card | crop A | 600 by 400 | WebP | bytes to measure | standard candidate | tune-up-card-crop-a-600-v02.webp” and “Tune-up card | crop A | 1200 by 800 | WebP | bytes to measure | higher-density candidate | tune-up-card-crop-a-1200-v02.webp.” Do not copy the hypothetical comparison sizes into a real worksheet; measure the actual exports.
MDN explains that srcset can list image candidates and sizes can describe the expected display slot for width-based selection. The browser uses those inputs and device conditions to choose an image. Merely uploading two files does not connect them to the page; the implementer must configure the CMS or markup appropriately.
Provide the intended crop behavior and display sizes, not guessed production HTML. Ask the implementer to confirm how the website selects variants and whether it generates additional outputs. Keep alt text tied to the image’s page context in a separate field; an export filename does not replace an image alternative.
6. Verify the rendered image and the downloaded resource
Open the implemented page at a narrow layout and a wider layout. Check that the correct photograph and crop appear, the subject remains visible, the aspect ratio is not distorted and the page does not overflow. Record the page version, viewport and device pixel ratio used for the check.
Then inspect the browser’s Network panel to see which image resource was requested. MDN recommends browser developer tools for checking responsive-image loading and notes that disabling cache can help avoid reusing a previously downloaded image. Reload under the recorded conditions instead of assuming that shrinking an already-loaded page must download a smaller file.
Compare the requested URL and resource with the intended variant. A CMS may serve a transformed image rather than your original export, so inspect that output too. If the page still downloads the large original for every card, hand the observation to the implementer; do not report the delivery-folder savings as website savings.
Hypothetical test note: “Narrow-layout check loaded the smaller crop-A variant and retained the bicycle and hands. Wider high-density check loaded the larger variant. Browser, viewport, pixel ratio and resource URLs recorded separately. No whole-page performance measurement performed.” This is a sample report format, not a test that occurred.
A smaller image response is not the same as a measured reduction in total page-load time. Other resources, caching, network conditions and page behavior matter. If performance measurement is in scope, compare repeatable before-and-after conditions and report the actual metric instead of turning a file-size percentage into a speed claim.
Copy this image-export handoff checklist
Before export: [placement, intended content, maximum display size, narrow-layout crop, source file, approved use, CMS output behavior]. For each candidate: [crop, dimensions, format, editor settings, actual byte count, visual review, decision].
For delivery: [approved filenames and versions, required variants, crop behavior, contextual alt-text decision, implementer, unresolved items]. For verification: [page version, viewport, pixel ratio, requested resource, displayed result, reviewer, untested conditions].
Hypothetical client note: “The service-card exports are ready for implementation using crop A. Please keep the original in the project archive and use the approved versioned files for the card. The public-page resource selection is not yet checked; that remains an implementation verification task.”
Finish when another person can identify the right export, understand why it exists and see what was actually checked. A tidy folder is helpful, but a documented connection between source, export and rendered page is what makes the work maintainable.
Ready to turn this into a client-ready workflow?
Build the agreement, add your deposit amount, and send one link for signature and payment.
Read more practical freelance guides