The marketing CMS where agents draft and people publish
Menu

Add an image from the media library

This guide covers uploading an image to the media library, giving it alt text and a focal point, and placing it on a page with the Image block, including photos from the free photo libraries.

Video: Add an image from the media library, 1:39, with captions and a transcript

Watch it: Add an image from the media library, a 1:39 video with no sound; its captions and the transcript on the page carry every step.

Before you start: an author account or higher (media.upload) and a page to put the image on (Build a page with the page builder). Files are limited to 25 MB; the library takes images (PNG, JPEG, GIF, WebP, AVIF, SVG), PDFs, video (MP4, WebM) and the animation and 3D files the motion blocks play.

Steps

  1. Content → Media. Drag files anywhere onto the library, or choose Upload. The type is read from the file itself, so a renamed file is refused. The new file opens in the Details panel.
  2. Describe the image. Click a file to open its Details. Fill in Alt text: what the image shows, for people who cannot see it ("Volunteers sorting donated coats at the community center"). Leave it empty only for pure decoration. With AI on, Suggest next to it drafts a description for you to review.
  3. Set the focal point. Click the subject of the image in the preview, or focus the preview and use the arrow keys. The wide and square crop previews update; every crop the site makes (hero backgrounds, card thumbnails) keeps that point in frame. Reset returns to the center. Choose Save.
  4. Place it on a page. Open the page in the page builder, add an Image block, and under its image choose Choose image. Choose media opens over the builder: search by file name or alt text, or choose Upload to add a file without leaving the page, then click the image and choose Select. The block's Alt text (required) is filled from the image when it is empty; adjust it for this page if the context differs.
  5. Finish the block. Add a Caption if the image needs one, pick a Width (Normal, Wide or Full) and Rounded corners, then Save draft. The other image fields (the Hero's background and side images, each card's image) work the same way.
  6. Or use a free photo. With a free photo library module installed (System → Modules → Install from registry: Pexels, Pixabay, Openverse or Wikimedia Commons), the picker has a Free photos tab. Pick the library, describe the photo in a few words, and choose Use this: a copy goes into your library with its Credit (the author, a link and the license). When the license asks for credit, picking the photo for an Image block fills an empty caption with the credit line.

Check the result

  • The page's preview shows the image at every screen width; the published page serves it in sizes that fit the screen (srcset), as WebP where the browser takes it.
  • The image's details in Media list the page under Used on.
  • Checks on the page reports no "image without alt text" error; an Image block with a picture and no alt text blocks publishing.

Notes

  • Replace file in an image's details uploads a new version: every page that uses it shows the new file and the old link keeps working.
  • Copy URL gives the path on this site (/media/<id>/<filename>), which keeps working when the domain changes; Copy full URL adds the host, for use outside the site.
  • Folders keep a large library in order: New folder, then upload while the folder is open, or move a file with Folder in its details.
  • With a DAM connected (Cloudinary, Bynder or Brandfolder, under Site settings → Media), the picker gets a tab for it as well.

Going further

Spillway 0.1.24

Was this page helpful?