mirror of
https://github.com/smogon/sprites.git
synced 2026-09-27 19:57:47 -05:00
`magick convert` is ImageMagick 7 running its 6 compatibility entry point, which since 7.1.1 prints a deprecation warning on every invocation. The build runs it about eleven thousand times, so a deploy is eleven thousand lines of it, and the one warning worth reading -- gifsicle's, when a rule hands it more colors than a global colormap holds -- is buried in them. Drop `convert` and give gifsicle -w. Neither is a free rename: v7 semantics differ from the compatibility mode's, and gifsicle's rule identity is its command line, so the -w rebuilds every gif in the tree. `refactor --record` before and `refactor` after says 21847 files, 0 changed, so nothing published moves and no upload follows this. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
17 lines
516 B
TypeScript
17 lines
516 B
TypeScript
|
|
import {type Artifact, forEachRule} from '../tools/build/artifact.ts';
|
|
|
|
// Shared by the smogon xy/ set and the PS ani/ set.
|
|
|
|
export function gen10Modelslike(): Artifact[] {
|
|
return forEachRule('src/champions/*.png', {
|
|
display: '96x96 %f',
|
|
// TODO, add customizable compression for gif
|
|
// ... or investigate using webp instead of both png/gif here
|
|
cmds: [
|
|
'magick %f -trim +repage -resize 90x90 %o',
|
|
'gifsicle -O3 -w -b %o',
|
|
],
|
|
}, '%B.gif');
|
|
}
|