How do I edit and save images for the web so they look good but load quickly?
Edit images by cropping and resizing, choose suitable file formats, and compress images so they load quickly while still looking clear
A practical answer to the N-Level Computer Applications outcome on editing images for the web: cropping and resizing, choosing JPEG, PNG or GIF, and compressing files so pages load quickly while staying clear.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this dot point is asking
This outcome is about preparing images for the web so they look good but do not slow the page. You should be able to crop and resize an image, choose a suitable file format (such as JPEG, PNG or GIF), and compress images to keep file sizes small. The key idea is the balance between quality and file size. In the written paper you explain cropping versus resizing, file formats and why large images slow a page.
The answer
Cropping and resizing
These two are different:
- Cropping cuts away part of an image to keep only the part you want. It changes what is shown, for example removing a distracting background to focus on the subject.
- Resizing changes the overall size (the dimensions) of the whole image without removing any part. Resize from a corner so the proportions stay correct and the image is not stretched.
You usually crop to improve what is in the picture, then resize so it is no larger than it needs to be on the page.
Why large images slow a page
An image is a file, and the browser must download the whole file before it can show the image. A very large image is a large file, so it takes longer to download, and the page loads slowly, especially on a slow connection. Making images no bigger than needed keeps pages fast.
Choosing a file format
Different formats suit different images:
- JPEG suits photographs. It compresses well, giving small files, which is ideal for photos on the web.
- PNG suits images that need sharp edges or a transparent background, such as a logo. Files can be larger than JPEG.
- GIF suits simple graphics with few colours and supports simple animation.
Choosing the right format helps keep the file small while it still looks clear.
Compressing images
Compression reduces a file's size. For photos, saving as a JPEG at a sensible quality removes detail the eye barely notices, so the file is much smaller but still looks clear. Always check the result: too much compression makes a photo look blocky, so aim for the balance between small size and good quality.
Examples in context
Example 1. A gallery page. A student building a photo gallery crops each photo to its subject, resizes them all to the same display width, and saves them as JPEGs at a sensible quality. The gallery looks sharp and loads quickly because every file is small.
Example 2. A transparent logo. For the club logo with a see-through background, the student saves a PNG rather than a JPEG, because PNG keeps the transparency and the sharp edges, whereas JPEG would add a white box and blur the edges.
Try this
Cue. Explain the difference between cropping and resizing. (Cropping removes part of the image to keep only what you want; resizing changes the dimensions of the whole image without removing any part.)
Cue. State which file format suits a photograph and why. (JPEG, because it compresses photos well into small files that load quickly while still looking clear.)
Cue. Explain why a very large image makes a web page load slowly. (The image is a large file that the browser must download fully before showing it, so a big file takes longer, especially on a slow connection.)
Exam-style practice questions
Practice questions written in the style of SEAB exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
Original4 marksA student adds a very large photo to a web page and the page loads slowly. Explain why a large image slows the page, and describe two things the student can do to the image so the page loads faster while still looking clear.Show worked answer →
A large image is a large file, and the browser must download all of it before showing the page, so a big file makes the page load slowly, especially on a slow connection.
Two things to do, for example:
- Resize the image to the size it is actually shown at, so the file is not bigger than needed.
- Compress the image (save it at a sensible quality, or as a suitable web format such as JPEG), which reduces the file size while keeping it looking clear.
What markers reward: the link between large file size and slow loading, and two genuine fixes such as resizing to the display size and compressing or choosing a suitable format.
Original3 marksExplain the difference between cropping and resizing an image, and give one situation where you would crop.Show worked answer →
Cropping cuts away part of an image to keep only the part you want, which changes what is shown. Resizing changes the overall size (the dimensions) of the whole image without removing any part of it.
One situation to crop: a photo has a distracting background or empty space around the subject, so you crop it to focus on the subject.
What markers reward: cropping as removing part of the image and resizing as changing the whole image's dimensions, plus a sensible reason to crop such as focusing on the subject.
Related dot points
- Plan a simple web page or small site, identifying purpose and audience, sketching a layout and structure, and planning clear navigation
A practical answer to the N-Level Computer Applications outcome on planning a web page: deciding purpose and audience, sketching layout and structure, and planning clear, consistent navigation before building.
- Explain what HTML is and use basic tags for headings, paragraphs, lists, links and images to structure a simple web page
A practical answer to the N-Level Computer Applications outcome on HTML: what HTML is, how opening and closing tags work, and using basic tags for headings, paragraphs, lists, links and images.
- Work with audio and video files, perform simple edits such as trimming, choose suitable formats, and keep file sizes sensible for sharing online
A practical answer to the N-Level Computer Applications outcome on audio and video: common formats, simple edits such as trimming, and keeping file sizes sensible for sharing or embedding online.
- Insert and arrange images, audio and video on slides, resize and position them tidily, and credit sources, keeping file sizes sensible
A step-by-step answer to the N-Level Computer Applications outcome on slide media: inserting and arranging images, audio and video, resizing without distortion, crediting sources and keeping file sizes sensible.
- Explain copyright and plagiarism, use licensed or permitted content, credit sources correctly, and avoid copying work without permission
A practical answer to the N-Level Computer Applications outcome on copyright: what copyright and plagiarism are, using licensed or free content, crediting sources, and avoiding copying work without permission.