Skip to content

Commit

Permalink
Refine NewJxlExportParams (#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
n0vad3v committed Mar 18, 2024
1 parent 143c4c1 commit e348555
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
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

0 comments on commit e348555

Please sign in to comment.