call JxlEncoderInitBasicInfo

new mandatory API for libjxl v0.6
This commit is contained in:
John Cupitt 2021-10-12 17:10:55 +01:00
parent 444a04e94f
commit bd8fad842a

View File

@ -261,6 +261,8 @@ vips_foreign_save_jxl_build( VipsObject *object )
return( -1 );
}
JxlEncoderInitBasicInfo( &jxl->info );
switch( save->ready->BandFmt ) {
case VIPS_FORMAT_UCHAR:
jxl->info.bits_per_sample = 8;