Skip to content
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

Refine NewJxlExportParams and discuss on Effort/Tier #416

Merged
merged 1 commit into from
Mar 18, 2024
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
8 changes: 7 additions & 1 deletion vips/foreign.c
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,13 @@ static SaveParams defaultSaveParams = {

.jp2kLossless = FALSE,
.jp2kTileHeight = 512,
.jp2kTileWidth = 512};
.jp2kTileWidth = 512,

.jxlTier = 0,
.jxlDistance = 1.0,
.jxlEffort = 7,
.jxlLossless = FALSE,
};

SaveParams create_save_params(ImageType outputFormat) {
SaveParams params = defaultSaveParams;
Expand Down
1 change: 1 addition & 0 deletions vips/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ func NewJxlExportParams() *JxlExportParams {
Quality: 75,
Lossless: false,
Effort: 7,
Distance: 1.0,
}
}

Expand Down
Loading