Skip to content

Conversation

@lovell
Copy link
Owner

@lovell lovell commented Dec 19, 2025

In the prebuilt binaries, libultrahdr wraps mozjpeg (via the libjpeg API) but does not expose any of the underlying settings, so gainmap generation is ~3x slower than expected due to use of the default compression profile.

This change matches the default behaviour of libvips.

/cc @kleisauke as you might be interested in this for wasm-vips etc.

libultrahdr wraps but does not expose these
Copy link
Collaborator

@kleisauke kleisauke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! I suppose this would also be useful when encoding a TIFF with JPEG compression (AFAIK, it currently triggers this warning).

@lovell lovell merged commit e23ad2c into main Dec 19, 2025
32 checks passed
@lovell lovell deleted the mozjpeg-default-fastest branch December 19, 2025 14:19
kleisauke added a commit to kleisauke/wasm-vips that referenced this pull request Dec 19, 2025
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.

3 participants