Set an image rule for each template
Document a preferred aspect ratio and maximum rendered width for hero, card, portfolio and article imagery. Use responsive sources if the template serves materially different screen sizes. Avoid enlarging small screenshots beyond their useful resolution. Check the page after lazy loading and with images disabled to confirm that layout dimensions and text alternatives still make sense.
Choose an image treatment by purpose
A portfolio screenshot should preserve enough detail for visitors to inspect the interface. A decorative banner may use a wider crop; a meaningful image needs a useful alternative. Set dimensions, choose a responsive size, compress a copy and compare it at display dimensions. Keep the original asset so a poor export can be reversed.
Quick answer
Match image dimensions to rendered size, compress with visual review, reserve layout space and lazy-load only images below the fold.
Use appropriate pixel dimensions
Oversized source images waste transfer when shown small. Create responsive source sizes where useful and avoid upscaling a small screenshot. Match the image to the actual display box.
Compress and inspect
Compare WebP or AVIF output visually, especially screenshots, fine UI details and gradients. Keep source masters. Write concise alt text for meaningful images and avoid repeating nearby copy in decorative image descriptions.
Protect crop and loading behaviour
Reserve space with width/height or a correct aspect ratio. Lazy-load below-fold images; keep important hero media discoverable early. Avoid cover-cropping illustrations when the full composition matters, and retest at desktop and mobile sizes.
Does each image display at the right size without losing important content?
- Measure its rendered dimensions.
- Create suitable source variants.
- Review compression visually.
- Set dimensions and loading priority.
Next step
Review our Website Development service page and prepare the details that matter to your project. A clear brief makes a first conversation more useful.
Further reading
Discuss your project
Share your current website, requirements or workflow with the Anil Designer studio.


