From: Cristy Date: Thu, 11 Apr 2019 10:44:28 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.8-40~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2aa9076c12a9df04408c005004a7fdc1a9a4ecd2;p=imagemagick ... --- diff --git a/coders/pdb.c b/coders/pdb.c index 32af40002..0765c7f39 100644 --- a/coders/pdb.c +++ b/coders/pdb.c @@ -809,6 +809,7 @@ static MagickBooleanType WritePDBImage(const ImageInfo *image_info,Image *image, } else { bits_per_pixel=4; } + image->depth=bits_per_pixel; (void) memset(&pdb_info,0,sizeof(pdb_info)); (void) memset(&pdb_image,0,sizeof(pdb_image)); GetPathComponent(image_info->filename,TailPath,filename);