From 3d5f2e2b2509aa9a32680563a949d2732cbbb618 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Wed, 27 Jul 2016 17:11:58 +0100 Subject: [PATCH] quicker GA for gifload --- libvips/foreign/gifload.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libvips/foreign/gifload.c b/libvips/foreign/gifload.c index c6264266..15778c73 100644 --- a/libvips/foreign/gifload.c +++ b/libvips/foreign/gifload.c @@ -605,13 +605,13 @@ vips_foreign_load_gif_load( VipsForeignLoad *load ) im = t[1]; } else if( gif->has_transparency ) { - /* GA. + /* GA. Take BA so we have neighboring channels. */ - if( vips_extract_band( im, &t[1], 0, NULL ) || - vips_extract_band( im, &t[2], 3, NULL ) || - vips_bandjoin2( t[1], t[2], &t[3], NULL ) ) + if( vips_extract_band( im, &t[1], 2, + "n", 2, + NULL ) ) return( -1 ); - im = t[3]; + im = t[1]; im->Type = VIPS_INTERPRETATION_B_W; } else {