Skip to content

Commit 5fcc60a

Browse files
niels9001Copilot
andauthored
Revert GIF screenshot support (#23)
* Revert "Adding gif support (#22)" This reverts commit 73f2a26. * Remove GIF screenshot file Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent cd8d6b9 commit 5fcc60a

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/scripts/generate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
# Fields from extension.json that should not appear in the gallery output.
3131
FIELDS_TO_REMOVE = {"$schema", "icon"}
3232

33-
VALID_SCREENSHOT_EXTENSIONS = {".png", ".jpg", ".jpeg", ".gif"}
33+
VALID_SCREENSHOT_EXTENSIONS = {".png", ".jpg", ".jpeg"}
3434
MAX_SCREENSHOTS = 5
3535

3636

.github/scripts/validate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
MAX_SCREENSHOTS = 5
5656
MAX_SCREENSHOT_SIZE_KB = 1024 # 1 MB
57-
VALID_SCREENSHOT_EXTENSIONS = {".png", ".jpg", ".jpeg", ".gif"}
57+
VALID_SCREENSHOT_EXTENSIONS = {".png", ".jpg", ".jpeg"}
5858

5959
# V2 id format: author.extension-name (e.g. "jiripolasek.media-controls")
6060
ID_PATTERN = re.compile(r"^[a-z0-9]+(-[a-z0-9]+)*\.[a-z0-9]+(-[a-z0-9]+)*$")
@@ -257,7 +257,7 @@ def validate_extension(folder: pathlib.Path, schema: dict, id_index: dict[str, p
257257
if sf.suffix.lower() not in VALID_SCREENSHOT_EXTENSIONS:
258258
errors.append(
259259
f"{display_path}/screenshots/{sf.name}: Invalid file type "
260-
f"\"{sf.suffix}\". Screenshots must be .png, .jpg, .jpeg, or .gif"
260+
f"\"{sf.suffix}\". Screenshots must be .png, .jpg, or .jpeg"
261261
)
262262

263263
valid_screenshots = [

docs/ARCHITECTURE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Contributor opens PR
7777
- Icon file exists, is PNG or SVG, and is under 100 KB
7878
- Tags are within limits (max 5 tags, each max 30 characters)
7979
- No duplicate IDs across the gallery
80-
- Screenshots (if present) are valid: max 5 files, PNG/JPEG/GIF only, max 1 MB each
80+
- Screenshots (if present) are valid: max 5 files, PNG/JPEG only, max 1 MB each
8181

8282
### Gallery generation (manual)
8383

docs/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ extensions/<author>/<extension-name>/
133133
| Rule | Detail |
134134
|------|--------|
135135
| Folder name | `screenshots/` inside your extension folder |
136-
| Formats | PNG (`.png`), JPEG (`.jpg`, `.jpeg`), or GIF (`.gif`) |
136+
| Formats | PNG (`.png`) or JPEG (`.jpg`, `.jpeg`) |
137137
| Max file size | 1 MB per screenshot |
138138
| Max count | 5 screenshots |
139139
| Ordering | Alphabetical by filename — prefix with numbers to control order (e.g., `01-`, `02-`) |
-243 KB
Binary file not shown.

0 commit comments

Comments
 (0)