Step 1.2 · Plan and prepare

Source and prepare images

Find images you are allowed to use, record where they came from, and export them at the right size for screens.

You will work in
resources/, site/images/thumbs/, site/images/large/
Learning outcome
Image prep and licensing

Use images you have permission to use

Citing a URL does not give you permission to publish someone's image. Use only images that are licensed for reuse, or your own work.

Your own photographs and illustrations are always allowed, and they make your site more original.

Reading a Creative Commons license

Creative Commons licenses are made of short codes. Each code is a condition you must follow.

CodeMeansWhat you do
CC0Public domain dedicationUse freely; a credit is still good practice
BYAttributionCredit the creator, link the source and name the license
SAShareAlikeIf you change the image, share your version under the same license
NCNonCommercialFine for a class site; not for paid or client work
NDNoDerivativesDo not crop heavily, recolor or alter it

A good credit names all four parts: “Red Door” by Jane Doe, Wikimedia Commons, CC BY 4.0.

  1. Collect 9–12 images per topic and save the originals in your resources folder.

  2. Record every image in a credits table (a spreadsheet in resources):

    File nameTitleCreatorSource URLLicense
    red-01Red door, AmsterdamJane Doeunsplash.com/photos/…Unsplash License

    You will reuse this information in your image captions and footer.

Size images for screens

On a screen, only the pixel dimensions matter. The resolution setting (72 dpi, 300 dpi) has no effect on how big an image looks on a website.

Many phones and laptops have high-density (Retina) screens that pack two pixels into the space of one. To look sharp there, export images at twice the size they will display.

VersionFolderFile nameSizeAim for
Thumbnailimages/thumbsred-01-sm.jpg560 × 560 px, cropped squareunder 80 KB
Largeimages/largered-01-lg.jpg1000 px tall, width in proportionunder 300 KB
  1. Open each image in Photoshop and crop the thumbnail to a square (Crop tool, ratio 1:1).

    Photoshop Image menu with Image Size selected
    Image > Image Size sets the pixel dimensions.
  2. Export with File > Export > Export As: format JPG, quality about 60–70%, color space sRGB, and the pixel size from the table. Check the file size shown in the dialog.

  3. Name the files with your topic, a two-digit number and the size: red-01-sm.jpg and red-01-lg.jpg. Each thumbnail and its large version share the same number.

  4. Write alt text for each image in your credits table. Alt text describes what the image shows for people who cannot see it.

    Weak alt textUseful alt text
    image of redRed front door with a brass knocker on a brick row house
    red-01.jpgMondrian-style poster with a large red square in the upper left
  5. Compare JPG and WebP. Drop one large image into Squoosh and compare the two formats side by side. WebP files are often 25–35% smaller at the same quality, and every current browser displays them. If WebP wins, export that format instead (Photoshop: File > Save a Copy > WebP) and use .webp in your file names and code.

Before you continue

All images exported, named and recorded in the credits table. Skipping this step causes most of the broken images later in the project.

© Created by Sara Rosenstock, Marietta College Graphic Design.