r24639 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:15 UTC 2021
Author: jghali
Date: Thu Apr 29 20:12:14 2021
New Revision: 24639
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24639
Log:
#16554: Color-indexed PNG causes bad color after export for Printer
Modified:
branches/Version14x/Scribus/scribus/scimgdataloader_qt.cpp
Modified: branches/Version14x/Scribus/scribus/scimgdataloader_qt.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24639&path=/branches/Version14x/Scribus/scribus/scimgdataloader_qt.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/scimgdataloader_qt.cpp (original)
+++ branches/Version14x/Scribus/scribus/scimgdataloader_qt.cpp Thu Apr 29 20:12:14 2021
@@ -43,7 +43,7 @@
float yres = m_image.dotsPerMeterY() * 0.0254;
int resInf = m_imageInfoRecord.lowResType;
m_imageInfoRecord.colorspace = ColorSpaceRGB;
- if (m_image.isGrayscale() || m_image.depth() == 1)
+ if (m_image.isGrayscale() || (m_image.depth() == 1 && m_image.allGray()))
m_imageInfoRecord.colorspace = ColorSpaceGray;
m_image = m_image.convertToFormat(QImage::Format_ARGB32);
m_image.setDotsPerMeterX (qMax(2834, (int) (xres / 0.0254)));
More information about the scribus-commit
mailing list