From: cristy Date: Tue, 7 Apr 2015 01:27:46 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~1127 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e0f31c843d3c16cdc1fa58f7b182e96a78ecffd;p=imagemagick --- diff --git a/coders/jp2.c b/coders/jp2.c index ffd5d1252..ae64da84d 100644 --- a/coders/jp2.c +++ b/coders/jp2.c @@ -955,6 +955,11 @@ static MagickBooleanType WriteJP2Image(const ImageInfo *image_info,Image *image, ((image->columns == 2048) || (image->rows == 1080) || (image->columns == 4096) || (image->rows == 2160))) CinemaProfileCompliance(jp2_image,¶meters); + if (channels == 4) + jp2_image->comps[3].alpha=1; + else + if ((channels == 2) && (jp2_colorspace == OPJ_CLRSPC_GRAY)) + jp2_image->comps[1].alpha=1; /* Convert to JP2 pixels. */