Skip to content

PhoenixKit 1.7.168: Sharper thumbnails on media cards

PhoenixKit 1.7.168 makes the pictures on media browser cards sharp on high-resolution screens. Grid and stack cards used the 150 px thumbnail, which looked blurry there.

Cards now prefer the 400 px thumbnail baked by the annotation tools or the 300 px small size. When a file has neither, for example an older upload or one whose sizes are turned off, the card falls back to the 150 px thumbnail rather than the full-size original, so a grid of large photos stays light to load.

Full release notes: PhoenixKit 1.7.168

1.7.168 · 27 June 2026

Changed

  • Sharper non-full-res thumbnails for grid/stack media cards. Added a :card size mode to MediaThumbnail and switched the grid card, stack card, and stacks-view grid card to it. Cards now prefer the 400px baked Etcher thumbnail / 300px small variant instead of the blurry 150px thumbnail, so media piles render crisply at 2× DPI. (#609)

Fixed

  • :card thumbnails no longer load a full-res original when intermediate variants are missing. A file with a thumbnail but no small/medium (partial variant generation, legacy upload, or admin-disabled dimensions) now falls back to the light 150px thumbnail before the multi-megabyte original — keeping the card payload light as intended. Reconciled the MediaThumbnail moduledoc and attr docs with the actual :card priority chain. (#609 follow-up)
  • Added pure-function unit tests for MediaThumbnail.resolve_url/2 covering every size mode and the :card fallback chain.

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