From 510801ec1583f25d3cbf41afe15721e66db3e8b8 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Mon, 11 Jan 2010 17:33:40 +0000 Subject: [PATCH] stuff --- TODO | 8 ++++++++ tools/iofuncs/vipsthumbnail.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index ddef6b05..8eea31d5 100644 --- a/TODO +++ b/TODO @@ -1,3 +1,11 @@ +- vipsthumbnail.c should import untagged images with an sRGB profile + + argh ... lcms has + + LCMSAPI cmsHPROFILE LCMSEXPORT cmsCreate_sRGBProfile(void); + + perhaps we should expose this in VIPS somehow? + - we sill have the old flood-fill code there, move to deprecated should we have new API? we could have a single "im_floodfill" that allows diff --git a/tools/iofuncs/vipsthumbnail.c b/tools/iofuncs/vipsthumbnail.c index 97ebf2fd..c3b44a31 100644 --- a/tools/iofuncs/vipsthumbnail.c +++ b/tools/iofuncs/vipsthumbnail.c @@ -172,7 +172,7 @@ shrink_factor( IMAGE *in, IMAGE *out ) t[2] = t[4]; } - if( im_copy( t[4], out ) ) + if( im_copy( t[2], out ) ) return( -1 ); return( 0 );