Change default PNG quantization quality to 100

and improve parameter description.
This commit is contained in:
Felix Bünemann 2018-06-19 09:19:43 +02:00
parent d9d2f7b89a
commit c63d7f7373
1 changed files with 4 additions and 4 deletions

View File

@ -144,11 +144,11 @@ vips_foreign_save_png_class_init( VipsForeignSavePngClass *class )
2, 256, 256 ); 2, 256, 256 );
VIPS_ARG_INT( class, "Q", 14, VIPS_ARG_INT( class, "Q", 14,
_( "Q" ), _( "Quality" ),
_( "Q factor" ), _( "Quantization quality" ),
VIPS_ARGUMENT_OPTIONAL_INPUT, VIPS_ARGUMENT_OPTIONAL_INPUT,
G_STRUCT_OFFSET( VipsForeignSavePng, Q ), G_STRUCT_OFFSET( VipsForeignSavePng, Q ),
0, 100, 75 ); 0, 100, 100 );
VIPS_ARG_DOUBLE( class, "dither", 15, VIPS_ARG_DOUBLE( class, "dither", 15,
_( "Dithering" ), _( "Dithering" ),
@ -165,7 +165,7 @@ vips_foreign_save_png_init( VipsForeignSavePng *png )
png->compression = 6; png->compression = 6;
png->filter = VIPS_FOREIGN_PNG_FILTER_ALL; png->filter = VIPS_FOREIGN_PNG_FILTER_ALL;
png->colors = 0; png->colors = 0;
png->Q = 75; png->Q = 100;
png->dither = 1.0; png->dither = 1.0;
} }