r24640 by jghali - #16554: Color-indexed PNG causes bad color after export for Printer

scribus-commit scribus-commit at lists.scribus.net
Thu Apr 29 20:12:46 UTC 2021


Author: jghali
Date: Thu Apr 29 20:12:46 2021
New Revision: 24640

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24640
Log:
#16554: Color-indexed PNG causes bad color after export for Printer

Modified:
    trunk/Scribus/scribus/imagedataloaders/scimgdataloader_qt.cpp

Modified: trunk/Scribus/scribus/imagedataloaders/scimgdataloader_qt.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24640&path=/trunk/Scribus/scribus/imagedataloaders/scimgdataloader_qt.cpp
==============================================================================
--- trunk/Scribus/scribus/imagedataloaders/scimgdataloader_qt.cpp	(original)
+++ trunk/Scribus/scribus/imagedataloaders/scimgdataloader_qt.cpp	Thu Apr 29 20:12:46 2021
@@ -59,7 +59,7 @@
 		yres = 72.0;
 	int resInf = m_imageInfoRecord.lowResType;
 	m_imageInfoRecord.colorspace = ColorSpaceRGB;
-	if (m_image.depth() == 1)
+	if (m_image.depth() == 1 && m_image.allGray())
 		m_imageInfoRecord.colorspace = ColorSpaceMonochrome;
 	else if (m_image.isGrayscale() && m_image.depth() <= 16)
 		m_imageInfoRecord.colorspace = ColorSpaceGray;




More information about the scribus-commit mailing list