Image Pipeline
node ./Web_Toolkit/image_pipeline/bin/image-pipeline.mjs --help
Rules
- Default: Astro
Image/Picturefromastro:assetsfor content photos (masters insrc/assets/). PreferOptimizedPicture.astrowithformats={['avif','webp']}. Workers:cloudflare({ imageService: 'compile' }). - Gap-fill only: run this CLI on
public/JPG/PNG leftovers that bypass Astro (not imported assets). - Prefer WebP (default optimize); optional
--format avif|bothwhen Pillow supports AVIF. - Do not overwrite source masters without approval.
- Record asset conventions in client
MEMORY.mdwhen introduced.
node ./Web_Toolkit/image_pipeline/bin/image-pipeline.mjs audit --project-root .
node ./Web_Toolkit/image_pipeline/bin/image-pipeline.mjs optimize --project-root . --apply --replace-references