Przejdź do treści
Biblioteka skilli
Programowanie · Integracja z narzędziem

imgix

/imgix

Optymalizuje i przekształca obrazy w imgix, czyli sieci CDN obrazów sterowanej parametrami URL: responsywne obrazy, podpisywanie adresów, transformacje w czasie rzeczywistym, miniatury wideo i Core Web Vitals.

Repozytorium
skills ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
25.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
3
Przestarzałość

Brak sygnałów. Repozytorium zmienione 25.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Optymalizuje i przekształca obrazy w imgix, czyli sieci CDN obrazów sterowanej parametrami URL: responsywne obrazy, podpisywanie adresów, transformacje w czasie rzeczywistym, miniatury wideo i Core Web Vitals.

Oryginalny opis (EN)

Optimize and transform images with imgix, a real-time image CDN driven by URL parameters. Use when serving responsive images, implementing an image CDN, signing image URLs, adding real-time transformations, extracting video thumbnails, or optimizing Core Web Vitals with image delivery.

Jak działa

  1. Overview
  2. Instructions
  3. Examples
  4. Guidelines
Sekcje z nagłówków SKILL.md, w oryginale · 107 linii, 527 słów
Podgląd SKILL.md
---
name: imgix
description: >-
  Optimize and transform images with imgix, a real-time image CDN driven by URL
  parameters. Use when serving responsive images, implementing an image CDN,
  signing image URLs, adding real-time transformations, extracting video
  thumbnails, or optimizing Core Web Vitals with image delivery.
license: Apache-2.0
compatibility: 'Any web app, React, Next.js'
metadata:
  author: terminal-skills
  version: 1.1.0
  category: content
  tags: "imgix, images, cdn, optimization, responsive"
  repository: https://github.com/imgix/js-core
---

# imgix

## Overview

imgix is a real-time image processing CDN. Create a Source in the imgix dashboard that points at your image storage (S3, GCS, Azure, R2, a web folder and others), and it serves optimized, transformed images via URL parameters. No pre-processing needed — transformations happen on request and are cached globally. Client libraries: `@imgix/js-core` (URL and `srcset` builder, 3.x) and `react-imgix` (9.x, React 15 through 19).

Install: `npm install @imgix/js-core react-imgix`.

## Instructions

### Step 1: URL API

```typescript
// lib/imgix.ts — Image URL builder
import ImgixClient from '@imgix/js-core'

const client = new ImgixClient({
  domain: 'myapp.imgix.net',
  secureURLToken: process.env.IMGIX_TOKEN,    // server-side only: sign URLs to prevent tampering
})

// Responsive image with auto format/quality
const url = client.buildURL('photos/hero.jpg', {
  w: 1200,
  h: 630,
  fit: 'crop',
  auto: 'format,compress',    // AVIF where supported, else WebP/JPEG/PNG, plus compression
  crop: 'faces',               // crop around detected faces
})

// Generate srcset for responsive images
const srcset = client.buildSrcSet('photos/hero.jpg', {
  auto: 'format,compress',
  fit: 'crop',
  ar: '16:9',
})
```

### Step 2: React Component

```tsx
import Imgix from 'react-imgix'

function ProductImage({ path, alt }: { path: string; alt: string }) {
  return (
    <Imgix
      src={`https://myapp.imgix.net/${path}`}
      sizes="(max-width: 768px) 100vw, 50vw"
      imgixParams={{
        auto: 'format,compress',
        fit: 'crop',
        ar: '1:1',
      }}
      htmlAttributes={{ alt, loading: 'lazy' }}
    />
  )
}
```

### Step 3: Video Thumbnails

Video needs a Source with the imgix video feature enabled. `video-thumbnail=<seconds>` returns a still image; `fm` is optional and only picks the output image format (`jpg` here):

```typescript
const thumbnail = client.buildURL('videos/demo.mp4', {
  fm: 'jpg',
  'video-thumbnail': 3,   // frame at 3 seconds; 0 triggers auto-selection, not the first frame
  w: 640,
})
```

Use `video-thumbnail=0.04` for roughly the first frame at 24 fps.

## Examples

### Example 1: Open Graph image for a blog post

Request: "Make a 1200x630 social card from our hero photo, cropped around the person's face."

```typescript
const og = client.buildURL('blog/2026/launch-hero.jpg', {
  w: 1200, h: 630, fit: 'crop', crop: 'faces', auto: 'format,compress',
})
```

Result: a signed `https://myapp.imgix.net/blog/2026/launch-hero.jpg?ixlib=js-3.8.0&w=1200&h=630&fit=crop&crop=faces&auto=format%2Ccompress&s=...` URL. Put it in the `og:image` meta tag.

### Example 2: Responsive product grid with srcset

Request: "Product thumbnails are square and heavy; serve the right size per screen."

```typescript
const srcset = client.buildSrcSet('products/sku-1042.jpg', { ar: '1:1', fit: 'crop', auto: 'format,compress' },
  { minWidth: 300, maxWidth: 1200 })
```

Result: a `srcset` string with one signed URL per width from 300w to 1200w. Use it in `<img srcset={srcset} sizes="(max-width: 768px) 50vw, 25vw">`, or let `react-imgix` build it as in Step 2.

## Guidelines

- `auto=format,compress` negotiates AVIF/WebP/JPEG per browser and compresses — always include it.
- Enable Secure URLs on the Source and sign URLs in production: a changed path or parameter returns 403 Forbidden, so re-sign after any edit. Never ship `secureURLToken` to the browser; sign on the server. If the token leaks, create a new secured Source and cut over.
- imgix doesn't store images — it proxies from your origin (S3, GCS, HTTP).
- Use `buildSrcSet()` for responsive images — generates proper `srcset` with widths.
- Pricing is credit-based: management (storage, per GB), delivery (bandwidth, per GB) and transformation credits. Serving the same URLs repeatedly keeps transformation costs low, so avoid generating many unique parameter combinations.
Pliki w paczce (2)
  • SKILL.md 4 KB
  • _scores.json 2 KB

Wersje

W bazie nie ma innych skilli o nazwie imgix.

Migawka bazy z 13.11.2026 · wersja paczki 2b88ace9564a (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100netlify-image-cdn
    Przekształca, skaluje, przycina i optymalizuje obrazy na żądanie przez Netlify Image CDN: miniatury, formaty avif i webp, proporcje, jakość oraz komponenty obrazów frameworków.
  • 95netlify-image-cdn
    Optymalizuje i przekształca obrazy przez Netlify Image CDN, tworząc responsywne znaczniki i potoki przesyłania zdjęć.
  • 100cloudinary
    Zarządza obrazami i wideo w Cloudinary: optymalizacja, transformacje, obrazy responsywne, wysyłanie multimediów i serwowanie zasobów z CDN.
  • 100netlify-image-cdn
    Przekształca obrazy na żądanie przez Netlify Image CDN: zmiana rozmiaru, kadrowanie, format (WebP, AVIF), jakość, miniatury, obrazy zdalne i nagłówki cache.
  • 90frontend-image-optimization
    Optymalizuje obrazy na stronie: formaty WebP i AVIF, responsywne srcset, leniwe ładowanie, zastępcze podglądy i integrację z CDN.
  • 100netlify-image-cdn
    Opisuje optymalizację i transformację obrazów przez Netlify Image CDN: endpoint /.netlify/images, parametry zapytania, białą listę zdalnych obrazów, responsywne znaczniki i potok obrazów użytkowników.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.