fix --sharpen=none

thanks ferryfax
This commit is contained in:
John Cupitt 2014-02-13 08:42:59 +00:00
parent de0448b53d
commit bf2acf2621
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
13/2/14 started 7.38.4
- --sharpen=none option to vipsthumbnail was broken, thanks ferryfax
22/1/14 started 7.38.3 22/1/14 started 7.38.3
- undeprecate VIPS_MASK_IDEAL_HIGHPASS and friends, ruby-vips was using them, - undeprecate VIPS_MASK_IDEAL_HIGHPASS and friends, ruby-vips was using them,
thanks ahacking thanks ahacking

View File

@ -608,15 +608,15 @@ thumbnail_write( VipsImage *im, const char *filename )
static int static int
thumbnail_process( VipsObject *process, const char *filename ) thumbnail_process( VipsObject *process, const char *filename )
{ {
VipsImage *sharpen = thumbnail_sharpen( process );
VipsImage *in; VipsImage *in;
VipsInterpolate *interp; VipsInterpolate *interp;
VipsImage *sharpen;
VipsImage *thumbnail; VipsImage *thumbnail;
VipsImage *crop; VipsImage *crop;
if( !(in = thumbnail_open( process, filename )) || if( !(in = thumbnail_open( process, filename )) ||
!(interp = thumbnail_interpolator( process, in )) || !(interp = thumbnail_interpolator( process, in )) ||
!(sharpen = thumbnail_sharpen( process )) ||
!(thumbnail = !(thumbnail =
thumbnail_shrink( process, in, interp, sharpen )) || thumbnail_shrink( process, in, interp, sharpen )) ||
!(crop = thumbnail_crop( process, thumbnail )) || !(crop = thumbnail_crop( process, thumbnail )) ||