oops vipsthumbnail needed updating
This commit is contained in:
parent
47a3bd6689
commit
a9045c9ec3
4
TODO
4
TODO
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
|
|
||||||
- perhaps we should have hard refs everywhere? it's very confusing having a
|
- 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?
|
what would the API look like?
|
||||||
|
|
||||||
@ -51,6 +51,8 @@
|
|||||||
|
|
||||||
vips_unref_array() just unrefs all non-NULL pointers in the array
|
vips_unref_array() just unrefs all non-NULL pointers in the array
|
||||||
|
|
||||||
|
not too bad! and getting rid of floating refs is a win
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -244,7 +244,7 @@ thumbnail3( IMAGE *in, IMAGE *out )
|
|||||||
* neighbor. Otherwise we makes thumbnails that look fuzzy and awful.
|
* neighbor. Otherwise we makes thumbnails that look fuzzy and awful.
|
||||||
*/
|
*/
|
||||||
if( !(interp = VIPS_INTERPOLATE( vips_object_new_from_string(
|
if( !(interp = VIPS_INTERPOLATE( vips_object_new_from_string(
|
||||||
"VipsInterpolate",
|
g_type_class_ref( VIPS_TYPE_INTERPOLATE ),
|
||||||
residual > 1.0 ? "nearest" : interpolator ) )) )
|
residual > 1.0 ? "nearest" : interpolator ) )) )
|
||||||
return( -1 );
|
return( -1 );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user