Host images and video for your website

Put product photos, blog images, videos, audio and PDFs on a fast, stable public address, resized and converted to WebP for each screen. Culacc makes the responsive HTML for you. Storage and delivery are in the EU.

Publish a file

const { Culacc } = require('@culacc/sdk');
const culacc = new Culacc({ key: process.env.CULACC_KEY });   // files:write and links:write

const file = await culacc.upload(buffer, { name: 'hero.jpg', path: '/Site' });
const { link, html } = await culacc.files.publish(file.id);

link.url   // https://media.culacc.com/aB3…/hero.jpg
html       // <picture> with WebP srcset, width, height and lazy loading

Nothing is public until you publish it, and switching a link off stops it at once.

Resize on the way out

Add parameters to any published image address:

https://media.culacc.com/aB3…/hero.jpg?w=800&format=webp
ParameterMeaning
w, hwidth and height in pixels
formatwebp, jpeg, png, or auto for whatever the browser prefers
qquality, 1 to 100
fitcover, contain or inside
culacc.image(link.url, { width: 800, format: 'webp' })

Versioned addresses are cached for a year. Videos stream with range requests, so seeking works, and get a poster frame.

Keep other sites from embedding your files

await culacc.files.publish(file.id, { allowedHosts: ['your-site.com'] });
await culacc.files.update(file.id, { status: 'off' });     // switch off
await culacc.files.unpublish(file.id);                     // remove for good

Costs and limits

Also

Reference