Guide5 min readUpdated
Images for Website: Photo Size, Quality and Licence Tips
Choose images for your website the right way: real photos versus stock, consistent crops, photo size and compression, alt text and licence checks.
By Tithi Mondal, UI/UX Designer
A homestay owner near Digha uploads twelve photos taken straight from his phone. Each file is several megabytes. On his home wifi the page loads fine. On a guest's mobile data in a small town, the page takes so long that the guest goes back to the search results.
Images make a website feel real. They can also make it slow and inconsistent. This guide covers five decisions: which photos to use, how to crop them, how heavy the files can be, how to write alt text, and how to stay safe with licences.
Real photos or stock photos
The choice between stock photos vs real photos depends on what the image has to prove.
| Situation | Better choice | Reason |
|---|---|---|
| Your product, shop, food or rooms | Real photos | Visitors want to see what they will actually get |
| Your team or founder | Real photos | Faces build trust, and stock faces do not |
| An abstract idea, such as "growth" | Stock or illustration | No real photo exists |
| Background texture or mood | Stock | Low risk, no promise made |
My position: if a photo makes a promise, it should be real. A restaurant using stock food photos sets an expectation it may not meet. A visitor who notices will doubt the rest of the page.
Real photos do not need a studio. Good light matters more than a good camera. Shoot near a window in daytime, wipe the lens, and keep the background plain.
Product photography for a website
For product photography for a website, aim for repeatable, simple setups.
- Use one plain background, such as a white sheet or a sheet of light card.
- Use daylight from one side. Avoid the phone flash.
- Take every product from the same angle and distance.
- Add one or two extra angles or a detail shot, such as a label or stitching.
- Show the product in use for at least the main item, so people understand size.
For a marketplace, consistency matters even more. On a seller app I designed for a marketplace in Tanzania, sellers upload their own listings, so I thought carefully about photo guidance at the upload step: a clear example of a good photo, and a short note on lighting. I wrote more in marketplace app UI and UX design.
Keep crops and style consistent
A grid of photos looks tidy only when the shapes match. Choose one ratio for each use and keep it.
- Product cards: square (1 to 1) or portrait (4 to 5).
- Hero image at the top of a page: wide (16 to 9 or 3 to 1) on laptop, with a safe centre area that still works on a narrow phone screen.
- Team photos: the same size, same crop, and the same head position.
Also keep the visual style steady: similar brightness, similar background, similar colour feel. If one photo is warm and yellow and the next is cold and blue, the page looks like it came from several places. A small colour adjustment in any basic photo editor fixes most of this.
Photo size, file weight and image compression
Here, two things are called "size", and they are different.
- Dimensions are width and height in pixels.
- File weight is how many kilobytes or megabytes the file takes.
A phone photo may be 4000 pixels wide, but a website rarely shows it larger than 1200 to 1600 pixels. Resize it first. Then use image compression, which reduces file weight by storing the picture more efficiently, with little visible loss.
A simple routine:
- Resize the image to the largest size it will be displayed, or a little more.
- Export as JPEG for photos, or PNG for flat graphics with transparent parts. Modern formats such as WebP are also widely supported, but check what your website builder accepts.
- Compress, and look at the result at full size. Stop when you see visible blur or blocky patches.
- Check how the page feels on a mobile connection.
There is no single perfect weight, but a hero photo that takes many seconds to appear is too heavy. Test on real mid-range Android phones. See my notes on designing for low-end phones and slow networks for why this matters in smaller cities.
Many website builders compress automatically, but not always well. Do not rely on it alone. Resize before you upload.
Write useful alt text
Alt text is a short written description of an image. Screen readers read it aloud for people who cannot see the image. Search engines also use it to understand the picture. It shows if the image fails to load.
Good alt text is plain and specific:
- Weak: "image1" or "best homestay Digha cheap".
- Better: "Double room with a wooden bed and a window facing the sea".
Rules I follow:
- Describe what is in the picture, in one short sentence.
- Do not start with "image of" or "photo of".
- Skip alt text for purely decorative images, if your tool allows an empty value.
- If the image contains text, include that text.
This also supports accessibility. Read more in my guide to accessibility in app and web design.
Check the licence of every stock image
If you use stock images, treat each one as a small contract. Free to download does not always mean free to use in every way.
Before you publish:
- Read the licence for that exact image or library. Check whether commercial use is allowed.
- Check whether you must credit the photographer.
- Check limits, such as use on products for resale, or in a logo.
- If an image shows a recognisable person, check whether a release exists for the kind of use you plan. A site's licence page usually explains this.
- Keep the download receipt or licence link in a folder.
Never copy an image from a search result or from another business's website. If you are unsure about any image, replace it with one you took yourself. I cannot give legal advice, so for a high-stakes use, ask a qualified person.
Put it together on the page
A short checklist before launch:
- Is every photo that makes a promise a real one?
- Do all photos in a group share the same crop and style?
- Has each file been resized and compressed?
- Does each meaningful image have alt text?
- Do you have the licence for each stock image?
Photos work best as part of a plan, so my small business website design guide shows where images belong on each page, and the homepage design checklist covers the hero image. If you want a designer to plan image sizes, crops and placement for your site, see my website design service.
Frequently asked questions
What size should website photos be?
Resize each photo to the largest size it will be shown on the page, often 1200 to 1600 pixels wide for a large image. Then compress the file so it loads quickly on mobile.
Can I use Google Images pictures on my website?
No, not without permission. Images in search results usually belong to someone else. Use your own photos or images with a licence that allows your use.
Do I need alt text on every image?
Add alt text to every image that carries meaning. Purely decorative images can have an empty alt value if your website tool allows it.
Is stock photography bad for a small business site?
Not by itself. It works for backgrounds and abstract ideas. Use real photos for products, your team and your place of work, because those make promises to visitors.
Working on something like this?
Tell Tithi what you are planning. You get a clear scope, a fixed price and a timeline before any work begins. I reply to every enquiry within 24 hours.