R2 Image Variants

Resize each image once with Cloudflare Images and serve srcset copies from R2. Install the native plugin from npm; this links to it.

View source
Public name@rajatag.bsky.social/r2-variants

Or open Registry in your EmDash admin and search for this name.

Overview

R2 Image Variants resizes each media image once with the Cloudflare Images binding, stores the copies in R2, and renders srcset URLs that point at them.

This Registry listing is not the plugin. Installing it from the Registry adds one information page to the admin and nothing else. R2 Image Variants itself is a native plugin, installed from npm:

npm install emdash-plugin-r2-variants

Why it must be native

The Registry lists sandboxed plugins only, and this plugin can't run in the sandbox. It reads and writes R2 through the site's bindings, resizes with the Images binding, and ships Astro components (Image and a Portable Text image block) that replace how images render. Those need a native plugin, registered in plugins: [] in astro.config.mjs.

Links

Permissions

Plugins get only the capabilities they declare and you approve. Your EmDash admin lists these again before anything installs.

No special permissions requested

This plugin does not request access to protected EmDash features.

Installation

Installing from the Registry adds an information page only; it does not resize any images. To get R2 Image Variants, install the native plugin from npm with npm install emdash-plugin-r2-variants and register it in plugins: [] in astro.config.mjs. Full setup, including the Cloudflare bindings it needs: README.

Keep exploring

More plugins like R2 Image Variants

Browse by keyword, or see everything @rajatag.bsky.social publishes.

Install on your site

Open in EmDash

R2 Image Variants

@rajatag.bsky.social/r2-variants

Choose the EmDash site where you want to review this plugin. Nothing is installed until you confirm its permissions in that site's admin.

This browser will remember the site. You can change it next time.