oops vipsthumbnail needed updating

This commit is contained in:
John Cupitt 2011-05-30 11:41:02 +01:00
parent 47a3bd6689
commit a9045c9ec3
2 changed files with 4 additions and 2 deletions

4
TODO
View File

@ -9,7 +9,7 @@
- perhaps we should have hard refs everywhere? it's very confusing having a
mxture :-( use vips_object_local() to make hard refs autounref
mixture :-( use vips_object_local() to make hard refs autounref
what would the API look like?
@ -51,6 +51,8 @@
vips_unref_array() just unrefs all non-NULL pointers in the array
not too bad! and getting rid of floating refs is a win

View File

@ -244,7 +244,7 @@ thumbnail3( IMAGE *in, IMAGE *out )
* neighbor. Otherwise we makes thumbnails that look fuzzy and awful.
*/
if( !(interp = VIPS_INTERPOLATE( vips_object_new_from_string(
"VipsInterpolate",
g_type_class_ref( VIPS_TYPE_INTERPOLATE ),
residual > 1.0 ? "nearest" : interpolator ) )) )
return( -1 );