Skip to content

v11.0.0 #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# Changelog

## 11.0.0 (2025-05-04)

### Breaking Changes

- Replaced [imagemin/gifsicle-bin](https://github.com/imagemin/gifsicle-bin) package with [343dev/gifsicle](https://github.com/343dev/gifsicle).
- Added new configuration parameters in [.optimiztrc.cjs](.optimiztrc.cjs):
- [optimize.gif.lossy.gamma](https://github.com/343dev/optimizt/blob/a53d5b82facf4d24a25d2e60d9dd15868e79acbf/.optimiztrc.cjs#L55)
- [optimize.gif.lossless.gamma](https://github.com/343dev/optimizt/blob/a53d5b82facf4d24a25d2e60d9dd15868e79acbf/.optimiztrc.cjs#L62)
- Updated gifsicle to version 1.96.

### Benefits

- **Reduced Dependencies**: Total project dependencies decreased from 218 to 41.
- **Improved Platform Support**: Added arm64 binary versions for `guetzli` and `gifsicle`.

### Important Note About Gamma Parameters

The new gamma parameters were added because of changes in gifsicle 1.96. In this version:

- The `--lossy` option now measures color errors using the color space selected by `--gamma` (defaults to sRGB).
- A new algorithm for computing color differences has been implemented.
- This means `--lossy=N` will behave differently than in previous versions and may compress less than expected.
- For behavior similar to previous versions, use `--lossy=N --gamma=1`.


## 10.0.0 (2024-10-28)

Breaking Changes:
Expand Down
8 changes: 8 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Migration

## 10.0.0 → 11.0.0

If you use an external configuration file (`.optimiztrc.cjs`), add the following parameters with a value of `1` to preserve the previous behavior:

- [optimize.gif.lossy.gamma](https://github.com/343dev/optimizt/blob/a53d5b82facf4d24a25d2e60d9dd15868e79acbf/.optimiztrc.cjs#L55)
- [optimize.gif.lossless.gamma](https://github.com/343dev/optimizt/blob/a53d5b82facf4d24a25d2e60d9dd15868e79acbf/.optimiztrc.cjs#L62)


## 9.1.1 → 10.0.0

Node.js version must be 18.18 or higher.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@343dev/optimizt",
"version": "10.0.0",
"version": "11.0.0",
"description": "CLI image optimization tool",
"keywords": [
"svg",
Expand Down