SHADE is young: 0.1.0-next.2 is a pre-release, and 0.1.0 isn't out yet.

SHADE
Content

Media

The media library holds every image (SVG images too), document (PDF), web font (WOFF2), video, audio file and captions file the website uses. Editors upload files once and pick them in pages, collections and settings. SHADE makes resized copies of images and removes hidden location data from them; videos and audio are kept exactly as uploaded. When the site is built, the files are copied into the static website.

What users can do

Editors and admins

  • Upload one or more files by dropping them on the library or choosing them: JPEG, PNG, WebP, AVIF, GIF, SVG, PDF, WOFF2, MP4 and WebM videos, MP3 audio and WebVTT captions, up to 20 MB each and videos and audio up to 100 MB (an SVG up to 5 MB, and only when it passes the SVG check, below).
  • Browse, search, filter and sort the library, as a grid of small, medium or large tiles, or as a list.
  • Open an item in a side panel to:
    • write its alt text (the description for people who can't see the image), also per site language;
    • set the focal point: the part of the image that stays visible when the site crops it;
    • replace its file with a new one of the same kind: everything that uses it shows the new file, with the same alt texts and focal point;
    • crop an image (not GIFs, SVGs or other animated images): everything that uses it shows the cropped image, and the focal point is reset;
    • rename it (the name is only shown in the library);
    • see its details and where it is used, and open the original;
    • delete it, if it is not used anywhere: it goes to the trash, and Undo in the toast puts it back.
  • Choose an image or a document in an image field, a file field or the website editor, and upload new files from that picker. When the chosen image has no alt text, the picker asks for it before using it.

AI users (through MCP)

  • Search the library, list images without alt text, and set alt text. Nothing else.

Visitors

  • See images in the size and format their browser handles best, cropped around the focal point.
  • Download documents a page links to.

Who may do it

ActionPermissionRoles
See the library, usage, pick mediamedia.readadmin, editor, ai
Uploadmedia.uploadadmin, editor
Change alt textmedia.updateadmin, editor, ai (only images not used by published content)
Change focal point or name, replace or cropmedia.updateadmin, editor (ai: refused, alt text only)
Deletemedia.deleteadmin, editor
  • An AI user that tries to change more than alt text is refused, not silently ignored. AI users can never upload or delete.
  • A module can never be given media.delete. It may be given media.upload (the install consent says Upload images, PDF files and fonts to the media library) and media.update (which also replaces and crops files, and the consent says so).
  • The website reads media with its own token, which needs media.read.

In the admin

Media (sidebar entry Media, shortcut g m; also Media library on the dashboard). Shown to users who may see the library.

  • Tiles, newest first, 48 per page.
  • Top bar: the item count, a search box (Search filename or alt text…), a type select (All types, Images, GIFs, SVG images, Documents (PDF), Web fonts (WOFF2), Videos (MP4, WebM), Audio (MP3), Captions (WebVTT)) and a Missing alt text checkbox. Missing alt text finds images without alt text in the default language or in any of the site's other languages (on the site a missing translation falls back to the default alt silently, so this is where editors find them).
  • Upload area (only for users who may upload): Drop files here or click to choose, with the hint Images (JPEG, PNG, WebP, AVIF, GIF or SVG), PDF, web fonts (WOFF2), video (MP4, WebM), audio (MP3) or captions (WebVTT) · up to 20 MB each, video and audio up to 100 MB · location data is removed from images, but video and audio keep their metadata as uploaded (such as where and when they were recorded); SVGs with scripts or outside links are refused. Several uploads end with Uploaded {count} files. Each file is sent separately, so one bad file gets its own error message and the others still upload. Afterwards a message reminds: Add alt text before publishing pages that use them.
  • Grid of tiles, each with its file name below it. Each image is shown whole, never cut off, on a checkerboard so transparent parts show: a wide logo shows from end to end, with empty space above and below it. Images without alt text get a No alt badge. A video shows a frame of itself with a play mark, a font "Aa" in its own letters, and other files an icon for their kind (document, audio, captions). The list and the media picker show the same previews. In a file's details a video plays, and a font shows a sample line. Empty states: No media yet or Nothing matches.
  • Tile size, next to the grid and list buttons (Tile size: Small tiles, Medium tiles, Large tiles): small tiles fit more files on the screen, large tiles show more detail. Medium is the size the library starts with. The choice is remembered in the browser, and only shown with the grid.
  • Or a list (Show as a list / Show as a grid in the toolbar, remembered in the browser): a small thumbnail, the name, a No alt badge, the dimensions (or PDF), the file size and the upload date. A Sort select next to it: newest or oldest first, name A–Z or Z–A, largest or smallest first.

Detail panel (click a tile). The title is the file name.

  • Images: the focal point picker. Click or drag on the image; arrow keys move the point by 1% (Shift: 10%); Escape or Reset to centre clears it. Three small previews show 1:1, 16:9 and 4:5 crops. Disabled for AI users.
  • Images (not GIFs, SVGs or other animated images, such as an animated WebP): Crop swaps the focal point picker for the cropper: drag over the image to draw the part to keep, or type it as Left, Top, Width and Height in percent; Crop image applies it ("Image cropped").
  • Documents: an Open the document button instead of the image; no alt text fields.
  • Alt text (max 300 characters), and Alt text (<language>) for every other site language. An empty translation means the default language's alt text is used.
  • Name: display name only; the stored file is not renamed. Folders and control characters are taken out, as in an uploaded name.
  • Facts: Size, Type (with the number of generated sizes), Uploaded, Original (Open in new tab).
  • Used in: each entry or the site settings, the field it is used in, and whether it is used in the draft, live only, or live and draft. Each title links to where it can be edited. When this cannot be loaded, the panel says so, with Try again, rather than calling the item unused.
  • Footer: Delete (to the trash at once, without asking; the toast Moved to the trash has Undo), Replace file (a file chooser for the same kind of file; "File replaced: everything that uses it shows the new one") and Save (only enabled when something changed; Ctrl/Cmd+S also saves).
  • Closing the panel (or opening another item) while a save, crop or replacement is still on its way is fine: it still completes ("Saved") and the library shows the result, but the panel stays closed.

Media picker, opened from fields:

  • Image fields: title Choose image, shows only images; button Use image. The field shows a thumbnail and warnings No alt text or Image no longer exists.
  • File fields: shows only the field's kinds of document (PDFs); button Use file. The field shows the file name (a link to the file) and Choose file / Change file.
  • Search, pagination (24 per page), an Upload button, double-click to choose. Images are shown whole, as in the library. A selected image without alt text gets an alt text input; it is saved when the image is used (a warning, not a block: publishing enforces it).

The admin is available in English and Dutch.

On the website

  • Images are shown in every generated size and format, so each browser picks the best one, with their width and height set so the page does not jump while they load. Alt text is in the page's language, falling back to the default language.
  • Files are part of the site: when the site is built, every media file it uses is copied into it. Visitors never load anything from SHADE itself. A missing file stops the build.
  • SVG images are only ever shown as images, never put into the page's own HTML, where their markup would be part of the page.
  • Previews of drafts load media straight from SHADE (only the team sees them).

Rules and limits

Uploads

  • Maximum 20 MB per file, 100 MB for a video or audio file, and up to 200 MB in one upload of several files.
  • The type is recognised from the file's content, never from its name or the type the browser claims. Accepted: JPEG, PNG, WebP, AVIF, GIF, SVG (checked as below), PDF, WOFF2, MP4 and WebM video, MP3 audio and WebVTT captions. Anything else is refused with Unsupported file type … use JPEG, PNG, WebP, AVIF, GIF, SVG, PDF, WOFF2, MP4, WebM, MP3, WebVTT. HEIC (iPhone photos) is recognised but refused; so are QuickTime (.mov) and audio-only MP4 (.m4a).
  • Images above about 100 megapixels are refused (protection against "decompression bombs").
  • File names are cleaned for display: folders and control characters removed, max 200 characters.

Video, audio and captions

  • Kept exactly as uploaded: SHADE doesn't convert, shrink or strip them, so any metadata in the file (where and when it was recorded, the camera) stays. Remove it before uploading when it shouldn't be public. Make videos web sized yourself: SHADE makes no smaller copies.
  • Captions are WebVTT text files (.vtt, starting with WEBVTT). They are served as captions only, never as a page.
  • A video is replaced by a video (MP4 or WebM), audio by audio and captions by captions.
  • In the website editor a video, audio or captions element picks its file from the library; see The visual editor.

Images

  • Hidden metadata (GPS location, camera serial numbers) is removed before storing; colour profiles are kept. Portrait photos stay portrait.
  • Generated sizes: widths 320, 640, 960, 1280, 1920 and 2560 that are smaller than the original, plus the original width, each in AVIF and WebP. Images are never enlarged.
  • Animated GIFs (and other multi-frame images) get no other sizes; the original is shown, animation kept.
  • Alt text: max 300 characters per language. Translations may only use the site's other languages. An empty translation removes it.
  • Publishing: a page or entry that uses an image without alt text (in the default language) cannot be published: Image "…" needs alt text before publishing. Referring to a media item that no longer exists is also refused.
  • Changing alt text (any language) or the focal point of an item used in published content rebuilds the site. Renaming does not.
  • Replacing and cropping (never by AI users): the new file goes through the same checks as an upload (size, type, metadata removed, sizes made) and gets a new address, so no visitor's browser keeps showing the old one; the old files are deleted after the change is saved. An image can only be replaced by an image and a PDF by a PDF ("Replace an image with an image"), so fields that take only one kind keep fitting. A crop must lie inside the image and be at least 10 pixels a side. Both are recorded in the audit log ("Replaced the file of …" / "Cropped … to W × H") and rebuild the site when published content uses the item.

SVG images

An SVG is not a picture but a document: it can run scripts, load other files and hold a whole web page. So an SVG is accepted only when it passes a strict check on upload, and a file that fails is refused with the reason and the line ("logo.svg" is refused: it has an event attribute (onload, line 3), which runs code.). SHADE never changes an SVG to make it pass: what is stored is exactly what was uploaded, or nothing.

  • The check allows drawing only (shapes, text, gradients, patterns, clipping and masks, filters, markers, simple animation). It refuses:
    • scripts and anything that runs code when the image is shown or clicked;
    • another document inside the image (an embedded web page or object);
    • anything outside the file: links to other files or addresses, other images or styles loaded from elsewhere;
    • addresses that run code or hold data, however they are written, except a PNG, JPEG or WebP picture inside the image (Figma exports an image fill this way);
    • animations of a link, of anything that runs code or of another animation's settings, and an animation inside another animation or a style;
    • declarations that can make the server read other files or blow up in size;
    • an editor's own extra data (such as Inkscape's or old Sketch files'): save the file as a plain SVG;
    • in its styles: escaped characters, and rules other than screen-size and animation rules;
    • broken files, text not in UTF-8, files over 5 MB, and files without a width and height in pixels or a view box (the image needs dimensions).
  • Typical logo and icon exports pass: Figma, Illustrator (SVG with internal CSS), Sketch and Inkscape's Plain SVG.
  • Stored as uploaded, with no other sizes (the browser draws an SVG sharp at any size). Like any image it needs alt text before publishing and has a focal point. It is never cropped; it can be replaced by any image, and an image by an SVG.
  • Opened on its own, an SVG runs nothing and loads nothing. Where files are kept in a cloud bucket, opening an SVG at the bucket's address downloads it instead, while pages show it as usual.

Documents (PDF)

  • Stored as uploaded: no other sizes, no dimensions, no alt text, no focal point. The details panel shows only the file size (… KB) and the type (application/pdf).
  • The Missing alt text filter and the publishing alt text check skip documents.

Web fonts (WOFF2)

  • Stored like documents: no other sizes, no dimensions, no alt text. The type filter has Web fonts (WOFF2); the Theme screen's Add a web font opens the picker with fonts only (Choose file, Use file). A font is replaced only by a font ("Replace a font with a WOFF2 font").
  • Only WOFF2: every current browser reads it and it is the smallest. Convert TTF or OTF files first.
  • A font the theme uses counts as used (Theme, with the font's name), so it cannot be deleted.
  • Where files are kept in a cloud bucket, the preview shows the fallback font until the bucket allows the site to load fonts from it; the published site has its own copy and needs nothing.

Deleting

  • An item that is used cannot be deleted: "…" is still used in About, … Remove it there first. "Used" means: in an image or file field or inside the content of any page or entry, in its draft or published version, as the default social image in the site settings, or as one of the theme's web fonts.
  • Content in the trash doesn't count for that, but it keeps the item from being deleted forever ("… (in the trash)").
  • A deleted item goes to the trash with its files: it leaves the library, pickers and the site, and its files still count toward the storage limit. Restored, it is back as it was.
  • Deleted forever (from the trash, or by retention after 30 days), the original and all its sizes are removed. Older versions in the history do not count; their reference becomes empty. If the storage cannot be reached at that moment, SHADE retries every hour until the files are gone.

Kinds per field. An image field (and an image in a page's content) takes images only, a file field the types it accepts. The picker shows that kind, and another is refused on save: This file is not an image / This type of file is not allowed here.

Storage. Files are kept on the server's disk or in an S3-compatible bucket, whichever the instance is set up for; see Self-hosting by hand. The site build only downloads files it has not copied before.

For developers

The code and its tests: shade/features/media/README.md in the shade repository.