]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/1643
authorCristy <urban-warrior@imagemagick.org>
Sat, 20 Jul 2019 20:21:10 +0000 (16:21 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 20 Jul 2019 20:22:43 +0000 (16:22 -0400)
ChangeLog
PerlMagick/t/write.t
coders/pnm.c

index 2eb363e30ddfc2c278f6ca74d28483172dde8669..c7a8e3201cbed16a15a36cd4470ac8b901104022 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,8 @@
 2019-07-20  7.0.8-56 Cristy  <quetzlzacatenango@image...>
   * Unexpected -alpha shape results (reference
     https://imagemagick.org/discourse-server/viewtopic.php?f=3&t=36396).
+  * Converting from PDF to PBM inverts the image (reference
+    https://github.com/ImageMagick/ImageMagick/issues/1643).
 
 2019-07-18  7.0.8-55 Cristy  <quetzlzacatenango@image...>
   * Release ImageMagick version 7.0.8-55, GIT revision 15930:ac09240:20190718.
index 6c5f401a1f10dfd03c9a11416b3f8aa2bd42f619..c8465818e37b35a572ca4c6e90f36691fb3b65e5 100644 (file)
@@ -106,7 +106,7 @@ print("Portable bitmap format (black and white), binary format ...\n");
 testReadWrite( 'PBM:input_p4.pbm',
   'PBM:output_p4.pbm',
   q//,
-  '88ad5b37729ccd4fc292fbaf32776e8009f72abc6136827383231af3676ba956');
+  '71e1a6be223e307b1dbf732860792b15adba662b7a7ef284daf7f982f874ccf1');
 
 print("ZSoft IBM PC Paintbrush file ...\n");
 ++$test;
index 13d1beae22e7b5a1b4f155a1bed996f2a06b4a5b..e828f7cac7ce2473706f8afe1ad76561c6219a25 100644 (file)
@@ -1945,6 +1945,7 @@ static MagickBooleanType WritePNMImage(const ImageInfo *image_info,Image *image,
         if (quantum_info == (QuantumInfo *) NULL)
           ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed");
         (void) SetQuantumEndian(image,quantum_info,MSBEndian);
+        SetQuantumMinIsWhite(quantum_info,MagickTrue);
         pixels=GetQuantumPixels(quantum_info);
         for (y=0; y < (ssize_t) image->rows; y++)
         {