add changelog notes

and linewrap for 80 column limit
This commit is contained in:
John Cupitt 2022-05-07 12:51:58 +01:00
parent 894ed1cb13
commit cdcafbc4c5
8 changed files with 30 additions and 22 deletions

View File

@ -19,6 +19,10 @@
- deprecate "properties" option to dzsave (now always on) - deprecate "properties" option to dzsave (now always on)
- always set the min stack size for pthreads, if we can - always set the min stack size for pthreads, if we can
- add fail-on to thumbnail - add fail-on to thumbnail
- add "gap" option to vips_reduce[hv]() and vips_resize() [kleisauke]
- add "ceil" option to vips_shrink() [kleisauke]
- quality improvements for image resizing [kleisauke]
26/11/21 started 8.12.3 26/11/21 started 8.12.3
- better arg checking for hist_find_ndim [travisbell] - better arg checking for hist_find_ndim [travisbell]

View File

@ -477,8 +477,8 @@ vips_reduceh_build( VipsObject *object )
/* The int part of our reduce. /* The int part of our reduce.
*/ */
int_hshrink = VIPS_MAX( 1, int_hshrink = VIPS_MAX( 1, VIPS_FLOOR(
VIPS_FLOOR( (double) in->Xsize / width / reduceh->gap ) ); (double) in->Xsize / width / reduceh->gap ) );
if( int_hshrink > 1 ) { if( int_hshrink > 1 ) {
g_info( "shrinkh by %d", int_hshrink ); g_info( "shrinkh by %d", int_hshrink );

View File

@ -846,8 +846,8 @@ vips_reducev_build( VipsObject *object )
/* The int part of our reduce. /* The int part of our reduce.
*/ */
int_vshrink = VIPS_MAX( 1, int_vshrink = VIPS_MAX( 1, VIPS_FLOOR(
VIPS_FLOOR( (double) in->Ysize / height / reducev->gap ) ); (double) in->Ysize / height / reducev->gap ) );
if( int_vshrink > 1 ) { if( int_vshrink > 1 ) {
g_info( "shrinkv by %d", int_vshrink ); g_info( "shrinkv by %d", int_vshrink );

View File

@ -178,10 +178,12 @@ vips_resize_build( VipsObject *object )
target_width = VIPS_ROUND_UINT( in->Xsize * hscale ); target_width = VIPS_ROUND_UINT( in->Xsize * hscale );
target_height = VIPS_ROUND_UINT( in->Ysize * vscale ); target_height = VIPS_ROUND_UINT( in->Ysize * vscale );
int_hshrink = int_hshrink = VIPS_FLOOR(
VIPS_FLOOR( (double) in->Xsize / target_width / resize->gap ); (double) in->Xsize / target_width /
int_vshrink = resize->gap );
VIPS_FLOOR( (double) in->Ysize / target_height / resize->gap ); int_vshrink = VIPS_FLOOR(
(double) in->Ysize / target_height /
resize->gap );
} }
int_hshrink = VIPS_MAX( 1, int_hshrink ); int_hshrink = VIPS_MAX( 1, int_hshrink );

View File

@ -278,7 +278,8 @@ vips_shrinkh_build( VipsObject *object )
*/ */
resample->out->Xsize = shrink->ceil ? resample->out->Xsize = shrink->ceil ?
VIPS_CEIL( (double) resample->in->Xsize / shrink->hshrink ) : VIPS_CEIL( (double) resample->in->Xsize / shrink->hshrink ) :
VIPS_ROUND_UINT( (double) resample->in->Xsize / shrink->hshrink ); VIPS_ROUND_UINT(
(double) resample->in->Xsize / shrink->hshrink );
if( resample->out->Xsize <= 0 ) { if( resample->out->Xsize <= 0 ) {
vips_error( class->nickname, vips_error( class->nickname,
"%s", _( "image has shrunk to nothing" ) ); "%s", _( "image has shrunk to nothing" ) );

View File

@ -383,7 +383,8 @@ vips_shrinkv_build( VipsObject *object )
*/ */
t[2]->Ysize = shrink->ceil ? t[2]->Ysize = shrink->ceil ?
VIPS_CEIL( (double) resample->in->Ysize / shrink->vshrink ) : VIPS_CEIL( (double) resample->in->Ysize / shrink->vshrink ) :
VIPS_ROUND_UINT( (double) resample->in->Ysize / shrink->vshrink ); VIPS_ROUND_UINT(
(double) resample->in->Ysize / shrink->vshrink );
if( t[2]->Ysize <= 0 ) { if( t[2]->Ysize <= 0 ) {
vips_error( class->nickname, vips_error( class->nickname,
"%s", _( "image has shrunk to nothing" ) ); "%s", _( "image has shrunk to nothing" ) );