Apng creator
npx -y skills add congemcd/skills-collection --skill apng-creatorAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 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.
What its author says it does
Copied from the file, not written here
Create animated PNG/APNG files from a directory or list of PNG frame images. Use when the user wants to generate an APNG from a PNG sequence with numeric prefix or suffix frame indexes, validate frame ordering, handle missing or non-consecutive indexes, and choose a frame rate.
SKILL.md
2.9 KB, as published. Nobody here has run it
APNG Creator
Create an animated PNG from an indexed PNG frame sequence. Use the bundled helper script for validation and assembly so filename handling and output naming stay deterministic.
Workflow
- Check dependencies first. Run
which apngasm.- If
apngasmis missing, explain that it is needed to assemble individual PNG frames into a valid APNG container without reimplementing APNG encoding by hand. - Then directly install it with
brew install apngasm.
- If
- Identify inputs. Accept either one input directory or an explicit list of frame files.
- Validate filenames before generating output.
- PNG frame names must contain a numeric prefix or suffix, such as
001-frame.png,frame-001.png, orframe001.png. - If a name has both prefix and suffix indexes, use the suffix index.
- If duplicate indexes exist, stop and ask the user to rename files.
- PNG frame names must contain a numeric prefix or suffix, such as
- Handle validation decisions.
- If some files are missing indexes, ask whether to ignore unindexed files or stop.
- If indexes are not consecutive, ask whether to continue or stop.
- If the inputs include files that are not
.png, ask whether to ignore them or stop. - If no usable
.pngfile has an index, tell the user and stop.
- Choose frame rate and output.
- Use 60 fps unless the user specifies a target frame rate.
- If no output path is specified, write
<input-folder-name>.pngbeside the input folder. - If that default output path already exists, auto-number as
<input-folder-name>-1.png,<input-folder-name>-2.png, and so on. - If the user provides an explicit output path that already exists, stop unless the user explicitly requested overwrite behavior.
- Generate the APNG. Run:
python3 scripts/create_apng.py <input-dir-or-files> --fps 60
Use --output <path> when the user specifies an output file. Use --overwrite only when the user explicitly says to overwrite an existing explicit output path.
Helper Script
scripts/create_apng.py performs filename validation, prompts for required decisions, creates a temporary consecutive frame sequence, and invokes apngasm <output.png> <first-frame.png> 1 <fps>.
Useful options:
--fps <integer>: target frame rate; defaults to60.--output <path>: explicit APNG output path.--overwrite: allow replacing an explicit existing output path.--ignore-unindexed: ignore PNG files without numeric prefix or suffix indexes.--ignore-non-png: ignore non-PNG inputs.--allow-gaps: continue when numeric indexes are not consecutive.--dry-run: validate inputs and print the command without invokingapngasm.