Renditions: the image sizes and video versions made from uploads
Describes PhoenixKit 3.5.0.
A rendition is a smaller or re-encoded copy of an upload, such as a thumbnail or a 720p video, made so pages load faster. A rendition profile is the set of renditions a library’s uploads get. Every library uses one; a library without one of its own uses the Default.
Where to find it
Settings → Media, tab Rendition profiles (/admin/settings/media?tab=renditions). Each profile is a tab of its own. You need the Manage storage permission, or the Owner or Admin role.
Image renditions need ImageMagick on the server and video renditions need FFmpeg. The External libraries tab of the same page says whether they are there.
Rendition profiles: which smaller copies each upload gets.
A rendition profile
At the top of each profile:
- Name.
- Create renditions automatically after an upload: with this off, uploads get no renditions until one is asked for.
- Users may choose it for their own libraries: offers the profile to users who create their own libraries.
- Save keeps these.
- Check every file: goes through every file of the libraries on this profile and makes any rendition a file never got.
- Reset to Defaults: puts back the standard renditions.
- Delete profile (not for the Default): deletes the profile and its renditions. A profile a library uses cannot be deleted.
The Default says Every library without its own profile uses this one.
New rendition profile asks for a Rendition profile name. A new profile starts with a copy of the Default’s standard renditions.
The renditions tables
Image renditions lists Name, Dimensions, Mode (Keeps proportions or Fixed size), Quality, Format (Original when it keeps the upload’s format) and Status (Enabled or Disabled). Video renditions shows Resolution, Mode, Quality (CRF), Codec and Status.
The standard renditions are listed first and marked standard: thumbnail, small, medium, large and video_thumbnail. They cannot be deleted or renamed, and small, medium and large always keep their proportions.
Each row’s menu has Edit, Disable or Enable, and Delete (after “Are you sure you want to delete this rendition?”).
Add image rendition and Add video rendition open the form.
Adding or editing a rendition
The form (/admin/settings/media/renditions/new/image, …/new/video or …/<id>/edit) has:
Basic Information
- Rendition name: a unique name, such as thumbnail, medium or 720p.
Size Configuration
- Maintain Aspect Ratio: on, only one side is fixed and the other follows the picture; off, both width and height are used for a fixed size.
- Fixed side (when keeping proportions): Width: the height follows each photo or Height: the width follows each photo. Fixing the height suits horizontal panoramas.
- Target Width (px) and Target Height (px), or Width (px) and Height (px) for a fixed size.
- Crop (fixed size): Around the middle of the photo or Around the subject of the photo.
- Made for: Every picture, Wide pictures only (panoramas, 2:1 or wider) or Tall pictures only (1:2 or taller).
- Camera metadata: Remove the camera’s metadata.
- Animated pictures: Keep the animation.
- HDR photos (for a video rendition, HDR video poster): Keep the HDR (gain map).
Quality & Format
- Quality: 1 to 100 for images, higher is better (80 to 90 is recommended). For video, Quality (CRF): 0 to 51, lower is better (18 to 28 is recommended).
- Format Override (or Codec Override for video): leave empty to keep the original format, or choose another, such as webp.
- Alternative Formats (images): tick WebP, AVIF, PNG or JPEG to make extra copies of the rendition in those formats alongside the main one.
Adding an image rendition. The form shows its errors before anything is typed.
How renditions behave
- A rendition never enlarges a picture.
- A video rendition fits the video inside its box, without cropping or stretching.
- HDR video is converted to ordinary (SDR) video in its renditions; the original is untouched.
- A picture with transparency keeps it: a rendition set to JPEG is written in a format that keeps transparency instead.
- While a size is still being made, a page asking for it gets the nearest smaller size the file has, or a placeholder.
- Changing a rendition or a profile makes PhoenixKit bring the files on that profile up to date in the background. The Health tab shows how many are waiting.
“Around the subject of the photo” needs libvips. Without it, those renditions are cropped around the middle; the External libraries tab says how to add it.
What it doesn’t do
- A library’s rendition profile is chosen once, when the library is created, and cannot be changed afterwards from the admin.
- Zoomable tiles (deep zoom) are not part of a rendition profile: they are a switch on the library’s page.
- ImageMagick refuses pictures wider or taller than 16,384 px, which a very large stitched panorama can exceed.
- After an upgrade that changes how sizes are made, existing files are not remade automatically.