Skip to content

Commit cd0f14e

Browse files
committed
add check for presence of use-lct
1 parent 4085b9e commit cd0f14e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libvips/foreign/cgifsave.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,8 @@ vips_foreign_save_cgif_build( VipsObject *object )
597597
vips__quantise_set_speed( cgif->attr, 11 - cgif->effort );
598598

599599
if( !cgif->reoptimise &&
600-
vips_image_get_typeof( cgif->in, "gif-palette" ) ) {
600+
vips_image_get_typeof( cgif->in, "gif-palette" ) &&
601+
vips_image_get_typeof( cgif->in, "use-lct" ) ) {
601602
VipsQuantiseImage *tmp_image;
602603
int *tmp_gct;
603604

0 commit comments

Comments
 (0)