Back to Templates
Responsive Image Pipeline
Marketing

Responsive Image Pipeline

Generate thumbnail, mobile, tablet, desktop, and retina sizes from one source

pipeline
responsivewebperformancesrcsetresizepipeline
Claude Code Ready Multi-step Pipeline

How It Works

6 steps in this workflow

  1. 1 Input image
  2. 2 Resize to 150px wide
  3. 3 Resize to 320px wide
  4. 4 Resize to 768px wide
  5. 5 Resize to 1024px wide
  6. 6 Resize to 2048px wide

Code Examples

Use this template programmatically with the FloImg SDK or CLI

// One source → all responsive sizes
const responsive = await floimg.from(source)
  .transform('resize', { width: 320 })   // Mobile
  .transform('resize', { width: 768 })   // Tablet
  .transform('resize', { width: 1024 })  // Desktop
  .transform('resize', { width: 2048 })  // Retina
  .toBlob();
# Responsive Image Pipeline
name: "Responsive Image Pipeline"
steps:
  # See JavaScript example for full pipeline
  - kind: transform
    op: resize
    params:
      width: 800
    out: result
# Responsive Image Pipeline
# Run pipelines via YAML config:
floimg run workflow.yaml