]> granicus.if.org Git - imagemagick/commitdiff
Also set the min_channels.
authorDirk Lemstra <dirk@lemstra.org>
Sun, 21 Oct 2018 11:35:30 +0000 (13:35 +0200)
committerDirk Lemstra <dirk@lemstra.org>
Sun, 21 Oct 2018 11:35:30 +0000 (13:35 +0200)
coders/tiff.c

index 633b0d16271d74a36a5e38d13d50c5f07d81fd3a..2da50712fb5dbc0291f34c98fcdb91ebe2960626 100644 (file)
@@ -292,6 +292,7 @@ static void InitPSDInfo(const Image *image, PSDInfo *info)
   /* Setting the mode to a value that won't change the colorspace */
   info->mode=10;
   info->channels=1U;
+  info->min_channels=1U;
   if (image->storage_class == PseudoClass)
     info->mode=2; /* indexed mode */
   else