From: cristy Date: Sat, 4 Jan 2014 01:00:14 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~2983 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b3445a0ed914cb7b2905d1785da2da62ad9d604b;p=imagemagick --- diff --git a/coders/jp2.c b/coders/jp2.c index 137caabc0..2df3ce45f 100644 --- a/coders/jp2.c +++ b/coders/jp2.c @@ -415,6 +415,7 @@ static Image *ReadJP2Image(const ImageInfo *image_info,ExceptionInfo *exception) */ image->columns=(size_t) jp2_image->comps[0].w; image->rows=(size_t) jp2_image->comps[0].h; + image->depth=jp2_image->comps[0].prec; image->compression=JPEG2000Compression; if (jp2_image->numcomps <= 2) {