Skip to content

Media Tools

Media is stored on Cloudflare R2 and served via cdn.typeroll.com.

Fetches an image from a URL and uploads it to the CDN. Returns the CDN URL.

Upload the hero image from https://unsplash.com/... as the OG image for the homepage.

Claude uses this when importing content from external sources (WordPress, Squarespace, etc.) to transfer images to the Typeroll CDN.

Uploads an image provided as a base64-encoded string. Useful when the image is generated locally or provided as a data URI.

Returns all media assets for this site with their CDN URLs, filenames and sizes.

All CDN URLs are absolute (https://cdn.typeroll.com/...). Always use these in:

  • <img src> attributes in page HTML
  • og_image and logo settings fields
  • Collection item image fields

Never use relative paths or the original source URL — those won’t survive a deploy.

UseRecommended size
Hero images1920×1080px or 1600×900px
Open Graph / social1200×630px
Card thumbnails800×600px
LogoSVG preferred; PNG at 2× if SVG not available
Favicon32×32px PNG or ICO

Typeroll doesn’t resize images at serve time. Use appropriately-sized source images.