From 8048bbc7a2c82d8342c3372690ccd3c9a6359425 Mon Sep 17 00:00:00 2001 From: mayeut Date: Sat, 18 Jul 2015 00:07:04 +0200 Subject: Add tests for TIFF input with Alpha channel Update uclouvain/openjpeg#322 --- src/bin/jp2/converttif.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/bin/jp2/converttif.c b/src/bin/jp2/converttif.c index 21bb11f8..d93e5f53 100644 --- a/src/bin/jp2/converttif.c +++ b/src/bin/jp2/converttif.c @@ -977,6 +977,7 @@ opj_image_t* tiftoimage(const char *filename, opj_cparameters_t *parameters) { planes[j] = image->comps[j].data; } + image->comps[numcomps - 1].alpha = (OPJ_UINT16)(1 - (numcomps & 1)); strip_size = TIFFStripSize(tif); -- cgit v1.2.3