Skip to content

Replace the gif optimizer command by a Castor task - #74

Merged
pyrech merged 2 commits into
mainfrom
optimizer-cleanup
Oct 11, 2026
Merged

pyrech merged 2 commits into
mainfrom
optimizer-cleanup

Conversation

@pyrech

@pyrech pyrech commented Oct 11, 2026

Copy link
Copy Markdown
Member

The optimizer is only ever run locally when adding a new gif, so it has no reason to live in the bundle as a Symfony command.

  • Replace GifOptimizerCommand and bin/optimizer.php by a castor optimize task calling gifsicle directly.
  • Drop spatie/image-optimizer, the command tests and fixtures, and the gifsicle install step in CI.
  • Add a test checking that every bundled gif is resized to 145px wide, and document in the README that running the task is mandatory when adding gifs.

@pyrech
pyrech merged commit b77a7d3 into main Oct 11, 2026
16 checks passed
@pyrech
pyrech deleted the optimizer-cleanup branch October 11, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant