agentsclimarketplace

Image optimization

Skill Dragoon0x/everything-design-taste/skills/image-optimization

Image format selection, responsive images, lazy loading, and image performance optimization.From its SKILL.md

Install
npx -y skills add Dragoon0x/everything-design-taste --skill image-optimization

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 9 stars9 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.3 KB, 306 tokens by cl100k_base, as published. Nobody here has run it

Image Optimization

Format Selection

FormatBest ForNotes
WebPPhotos, illustrations30% smaller than JPEG, wide support
AVIFPhotos (next-gen)50% smaller than JPEG, growing support
SVGIcons, logos, simple graphicsScalable, tiny file size
PNGScreenshots with text, transparencyLossless, larger files
JPEGFallback for photosUniversal support

Responsive Images

<img
  srcset="image-400.webp 400w, image-800.webp 800w, image-1200.webp 1200w"
  sizes="(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw"
  src="image-800.webp"
  alt="Descriptive text"
  loading="lazy"
  decoding="async"
/>

Performance Rules

  1. Lazy load below-fold images. loading="lazy" on img tags.
  2. Size images to display size. Don't serve 4000px images in 400px containers.
  3. Preload hero images. <link rel="preload" as="image"> for above-fold.
  4. Use CDN. Serve images from edge locations.
  5. Set explicit dimensions. Prevent layout shift (CLS).

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.