oop thumbnail sharpen could turn off for int shrinks

This commit is contained in:
John Cupitt 2010-07-04 20:05:20 +00:00
parent 5fae2763a5
commit caede02a22
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,8 @@
12/5/10 started 7.22.2
- the conditional image of ifthenelse can be any format, a (!=0) is added if
necessary
- oops vipsthumbnail sharpening was turning off for integer shrinks,
thanks Nicolas
12/5/10 started 7.22.1
- fix a problem with tiff pyramid write and >1cpu, thanks Ruven

View File

@ -17,6 +17,8 @@
* - and the mask coefficients were messed up
* 26/5/10
* - delete failed if there was a profile
* 4/7/10
* - oops sharpening was turning off for integer shrinks, thanks Nicolas
*/
#ifdef HAVE_CONFIG_H
@ -235,7 +237,7 @@ shrink_factor( IMAGE *in, IMAGE *out,
/* If we are upsampling, don't sharpen, since nearest looks dumb
* sharpened.
*/
if( residual < 1.0 && !nosharpen ) {
if( shrink > 1 && residual <= 1.0 && !nosharpen ) {
if( verbose )
printf( "sharpening thumbnail\n" );