You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(admin): load resized thumbnails in media library and picker (#1488) (#1507)
The media library, library list, and picker modal loaded every grid item's
full-size original through the media proxy, so opening the library and
searching for older items waited on full-resolution downloads (1 min+ on
large libraries).
Route same-origin raster images through Astro's runtime image endpoint
(/_image) to request a small resized rendition instead. Where no runtime
image service transforms (passthrough config, or the endpoint rejects the
request) the original is served as before, so nothing renders worse. Items
with unknown dimensions still load the original so onLoad can backfill true
dimensions rather than the thumbnail's.
Speeds up browsing and searching large media libraries. The media library and the media picker now load small resized thumbnails through Astro's image endpoint instead of fetching every grid item's full-size original, so opening the library and searching for older items no longer waits on full-resolution downloads ([#1488](https://github.com/emdash-cms/emdash/issues/1488)). Where no runtime image service is available the original is served as before, so nothing renders worse than it did.
0 commit comments