Skip to content

PhoenixKit 1.7.97: WebP and AVIF image variants, scheduled maintenance

PhoenixKit 1.7.97 can make WebP and AVIF copies of each image size, and lets you plan maintenance mode for a set time window instead of only switching it on by hand.

Each image dimension now has an Alternative Formats card where you tick extra formats to generate next to the primary one. The media detail page shows each variant’s size in pixels and bytes, and the media search accepts a file’s UUID. Developers get an ImageSet component that renders a <picture> with AVIF, WebP and JPEG sources.

The maintenance settings page gains Scheduled Maintenance: a Start Time and End Time that switch maintenance on and off by themselves, next to the Manual Toggle. Visitors see the maintenance page in place of the page they were on, with a countdown when an end time is set. Other requests get a 503 maintenance page, with a Retry-After header when the end time is known.

Upgrading

Run mix phoenix_kit.update for the V97 and V98 migrations: a per-item markup for catalogue items and the alternative formats on dimensions.

Full release notes: PhoenixKit 1.7.97

1.7.97 · 15 April 2026

Added

  • V97 migration: per-item markup_percentage override on catalogue items (PR #493)
  • V98 migration: alternative_formats column on storage dimensions
  • PhoenixKit.Modules.Shared.Components.ImageSet — responsive <picture> component with AVIF/WebP/JPEG <source> entries
  • PhoenixKit.Modules.Storage.VariantNaming — format-suffix parsing utility
  • Multi-format variant generation (WebP/AVIF alongside primary format per dimension)
  • Variant dimensions and file sizes shown on media detail page
  • UUID search support on media page search bar

Changed

  • V95 migration made truly idempotent for folder_uuid column (raw SQL IF NOT EXISTS block)
  • Dimensions table format cell renders as JPEG + WEBP, AVIF (fixed stray " +" separator)

Fixed

  • Long text overflow in media detail sidebar
  • Missing original file size in variant download buttons

PhoenixKit 1.7.97. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.