Skip to content

Commit 6d135b8

Browse files
committed
v0.9.0
1 parent f48a627 commit 6d135b8

File tree

4 files changed

+26
-5
lines changed

4 files changed

+26
-5
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

okolors-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "okolors-cli"
3-
version = "0.8.1"
3+
version = "0.9.0"
44
rust-version.workspace = true
55
edition.workspace = true
66
description = "Create color palettes from images by performing k-means clustering in the Oklab color space."

okolors/CHANGELOG.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,46 @@
11
# Changelog
22

3+
# v0.9.0
4+
5+
## Breaking
6+
7+
- Removed the `sampling_factor` and `batch_size` options in favor of the new `kmeans_options` method. It takes the new `KmeansOptions` struct as input.
8+
- Removed the `ColorSlice` and `AboveMaxLen` types. Instead, `Okolors::new` now takes a regular slice and can error with a `LengthOutOfRange` error.
9+
- Methods on the `Okolors` builder struct now take owned `self`s instead of references to `self`.
10+
- The `palette_size` option now takes just `PaletteSize` as input instead of `impl Into<PaletteSize>`. `PaletteSize`s can also no longer be zero, requiring other breaking changes to its API.
11+
12+
## Other
13+
14+
- Added the `dedup` option to control when the pixel deduplication optimization is run. Previously, deduplication was always performed.
15+
- Added the `std` cargo feature to enable/disable Rust `std` usage for `no_std` support.
16+
- In theory, this library is now `no_std` compatible (still needs `alloc` though). The `image`, `threads`, and `std` features must be disabled.
17+
- Bumped `quantette` dependency version to `0.5.1`.
18+
319
# v0.8.1
20+
421
- Bumped `quantette` dependency version to `0.3.0`.
522

623
# v0.8.0
724

825
## Breaking
26+
927
- Methods on the `Okolors` builder struct now take references to `self` instead of owned `self`s.
1028

1129
## Other
30+
1231
- `Okolors::palette_size` now takes `impl Into<PaletteSize>` instead of just `PaletteSize`.
1332
- Added re-exports for constants from `quantette`.
1433
- Updated/expanded documentation.
1534

1635
# v0.7.0
36+
1737
- External crates that have types present in `okolors`'s public API are now reexported (`palette` and `image`).
1838
- Types from `quantette` that are in the public API are also now reexported.
1939
- Bumped `image` version to `0.25.0`.
2040

2141
## Breaking changes
22-
Removed the `{color}_palette_par` functions in favor of the `Okolors::parallel` function.
42+
43+
- Removed the `{color}_palette_par` functions in favor of the `Okolors::parallel` function.
2344

2445
# v0.6.0
2546

okolors/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "okolors"
3-
version = "0.8.1"
3+
version = "0.9.0"
44
rust-version.workspace = true
55
edition.workspace = true
66
description = "Create color palettes from images by performing k-means clustering in the Oklab color space."

0 commit comments

Comments
 (0)