Przejdź do treści
Biblioteka skilli
Projektowanie i UX · Konwersja i formaty

edit-image

/edit-image

Edytuje istniejący plik graficzny przez gpt-image-2 w Codex CLI: podmienia tło, koloryzuje lub poprawia tekst, zachowując resztę.

Repozytorium
codex-bridge ↗
Licencja
MIT
Ostatnia zmiana repozytorium
10.08.2026

Ocena i bezpieczeństwo

84/ 100Klasa: dobry
Format9 / 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
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

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

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Edytuje istniejący plik graficzny przez gpt-image-2 w Codex CLI: podmienia tło, koloryzuje lub poprawia tekst, zachowując resztę.

Oryginalny opis (EN)

Edit, restyle, or vary an EXISTING image file using OpenAI gpt-image-2 through the Codex CLI — change one thing and keep the rest, swap a background, recolor to a brand palette, add or fix text, or produce style-matched variants of a reference image. Use whenever the user points at an image file and asks to change, fix, restyle, clean up, or make a version of it.

Jak działa

  1. Examples
  2. Writing the change description
  3. Rules
Sekcje z nagłówków SKILL.md, w oryginale · 71 linii, 493 słów
Podgląd SKILL.md
---
description: Edit, restyle, or vary an EXISTING image file using OpenAI gpt-image-2 through the Codex CLI — change one thing and keep the rest, swap a background, recolor to a brand palette, add or fix text, or produce style-matched variants of a reference image. Use whenever the user points at an image file and asks to change, fix, restyle, clean up, or make a version of it.
---

# Edit an existing image (gpt-image-2 via Codex CLI)

Same wrapper as generation, plus `--ref` to attach the source image:

```bash
codex-imagegen "<what to change>" <output.png> --ref <source.png> [--size WxH]
```

The wrapper attaches the reference with `codex exec -i`, tells Codex to preserve
everything not mentioned, and prints the absolute path of the new file. **The
source file is never modified** — always write to a new path.

## Examples

```bash
# change one thing, keep the rest
codex-imagegen "change the sky to a sunset orange, keep the building and people identical" \
  ./out/hero-sunset.png --ref ./assets/hero.png

# recolor to a brand palette
codex-imagegen "recolor to a monochrome palette of #2563EB on white, keep the exact shapes" \
  ./out/icon-blue.png --ref ./assets/icon.png

# style-matched sibling asset
codex-imagegen "a settings gear icon in exactly the style of the reference: same stroke weight, same palette, same corner radius" \
  ./out/settings.png --ref ./assets/home.png
```

Up to four `--ref` images can be passed — useful when one is the subject and the
others are style references. Say in the prompt which is which.

## Writing the change description

Be surgical. The model preserves what you don't mention, so name the change and
then name what must survive it:

- Good: *"replace the text on the sign with 'OPEN 24/7', keep the font style, lighting and every other element identical"*
- Bad: *"make it better"* — produces an unrelated image

For a series of edits, chain them one at a time (each output becomes the next
`--ref`) rather than stacking five changes into one prompt.

## Rules

1. **Never overwrite the source.** Write to a new file; offer to replace only after
   the user has seen the result. Note that Codex itself resists overwriting — the
   wrapper prints the path actually written, which may be a versioned sibling like
   `out-v2.png`. Use the printed path, not the one you asked for.
2. **Verify by viewing.** Read the output PNG with the Read tool and compare
   against the request before reporting done. Regenerate with a sharper prompt if
   the model drifted — at most 2 retries.
3. **Use a Bash timeout of at least 300000 ms** (5 minutes).
4. **For a transparent result**, regenerate the subject on a flat `#00FF00`
   background (`#FF00FF` if the subject is green) and strip the key with the
   helper Codex ships:
   ```bash
   python "${CODEX_HOME:-$HOME/.codex}/skills/.system/imagegen/scripts/remove_chroma_key.py" \
     --input ./keyed.png --out ./final.png --auto-key border --soft-matte \
     --transparent-threshold 12 --opaque-threshold 220 --despill
   ```
   Verify transparent corners and no colour fringe afterwards. True native
   transparency needs Codex's CLI fallback plus an `OPENAI_API_KEY` — only raise
   that option for hard subjects (hair, fur, glass, smoke) and let the user decide.
5. **Not for precise pixel work.** Cropping, resizing, rotating, format conversion
   and compression are faster and lossless with ImageMagick or `sips` — use those
   directly instead of regenerating.
6. Each edit spends the user's ChatGPT plan quota. Don't loop unprompted.

For multi-image jobs, hand the whole brief to the `codex-artist` subagent instead.

Wersje

W bazie nie ma innych skilli o nazwie edit-image.

Migawka bazy z 28.10.2026 · wersja paczki e4a376f564af (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

  • 100gpt-image-1-5
    Generuje i edytuje obrazy modelem OpenAI GPT Image 1.5, w tym tworzenie z tekstu oraz modyfikacje istniejącego pliku z opcjonalną maską.
  • 100gpt-image-2-skill
    Generuje i edytuje obrazy przez strukturalne CLI zwracające JSON i zdarzenia JSONL postępu, w tym logo, ikony, przezroczyste tła i edycję zdjęć referencyjnych modelami GPT Image.
  • 100gpt-image-skill
    Generuje lub edytuje obrazy, gdy użytkownik wskazuje OpenAI, GPT Image lub model gpt-image, a bez wskazanego dostawcy działa domyślny skill obrazów.
  • 100codex-imagegen
    Generuje i edytuje obrazy rastrowe (zdjęcia, ilustracje, makiety, logo, grafiki gier i UI, infografiki) wbudowanym narzędziem image_gen Codex przez codex exec, bez klucza API OpenAI.
  • 100gpt-image-skill
    Generuje i edytuje obrazy przez OpenAI GPT Image API (gpt-image-2, gpt-image-1), gdy użytkownik wyraźnie wskazuje OpenAI lub GPT jako dostawcę.
  • 100generating-images
    Generuje lub edytuje obrazy przez OpenAI Image API (gpt-image-2): ikony, loga, makiety, ilustracje, obrazy OG, grafiki blogowe i zasoby marketingowe, także na podstawie obrazu referencyjnego.

Uwagi i zgłoszenia

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