Image optimization
The Gallery
The Gallery resizes, converts, and compresses images at the edge — AVIF, WebP, and quality ladders without changing files on your origin. This is a Cloudflare Cloudflare Images / Polish alternative included on every Zipper plan.
Cloudflare analogue: Cloudflare Images / Polish
What it is
The Gallery resizes, converts, and compresses images at the edge — AVIF, WebP, and quality ladders without changing files on your origin.
Cloudflare analogue: Cloudflare Images / Polish. SLA 99.95% · p99 55ms. Admins publish presets. Viewers may preview.
- ▸AVIF and WebP
- ▸On-the-fly crop
- ▸Quality ladders
- ▸Hotlink protection
How it works
Request an image through The Crown with a preset or query. The Gallery emits AVIF/WebP at the requested width.
GPS and EXIF are stripped. Hotlink guard refuses foreign Referers.
Use cases
Concrete ways teams use this service on day one.
Hero images without Photoshop exports
Design uploads one 4000px JPEG.
- Create presets Hero 1600 AVIF and Card 640 WebP. Point <img src> at the Gallery URL for that preset.
Set it up in the dashboard
Dashboard → Services → The Gallery. Create presets. Origin files stay unchanged.
API
Control-plane: GET|POST|DELETE /api/v1/gallery/presets. Send Authorization: Bearer tz_live_YOUR_TOKEN.
Creates count against the plan quota. A 402 plan_limit means you are at the cap — upgrade or delete an unused resource.
Read Gallery policy
curl -sS https://tinyzipper.com/api/v1/services/gallery \ -H "Authorization: Bearer tz_live_YOUR_TOKEN"
List the same resource in JavaScript
const res = await fetch("https://tinyzipper.com/api/v1/gallery/presets", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.ZIPPER_TOKEN}`,
"Content-Type": "application/json"
}
});
const json = await res.json();
if (!res.ok) throw new Error(json.error ?? res.statusText);
console.log(json);Tips
Prefer AVIF then WebP. JPEG remains the last fallback.
- ▸SOC 2
- ▸GDPR
Runbook
Served from zipper-b (Streama VPS) at /edge/gallery. Prefer AVIF, then WebP. Strip GPS. Block hotlinks.
Next: The Archives · All docs · Create a free account