Skip to content

Fix log callback registration with current libimagequant - #433

Merged
kornelski merged 1 commit into
kornelski:mainfrom
snowyukitty:fix/log-callback
Oct 27, 2026
Merged

kornelski merged 1 commit into
kornelski:mainfrom
snowyukitty:fix/log-callback

Conversation

@snowyukitty

Copy link
Copy Markdown
Contributor

Fixes #430.

The pinned libimagequant now accepts an optional log callback. Wrap the existing callback in Some, matching the adjacent options.log_callback assignment and retaining verbose logging.

Verified on Linux with Rust 1.98.0 after fetching dependencies:

  • cargo test --offline --all (compiles successfully; 0 unit tests).
  • cargo build --offline --release.
  • cargo check --offline --no-default-features and the same command with --features threads.
  • Nine PNG conversions across verbose, normal and stdin/stdout modes: identical decoded pixels for each input, with libimagequant histogram messages present in verbose mode.

The unmodified current base fails with E0308 at this call. No dependency or submodule changes.

@kornelski
kornelski merged commit 6628b9d into kornelski:main Oct 27, 2026
1 check passed
@kornelski

Copy link
Copy Markdown
Owner

Thanks!

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.

Build fails on current main due to liq_set_log_callback type mismatch

2 participants