Commit 0dbc8822 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fix saving non-srgb color profiles into PNG

Most of our color profiles have "srgb" string in their name, although
they are not sRGB actually. They only use sRGB's color primaries, but
not the TRC.
parent f683f82b
......@@ -1068,7 +1068,7 @@ KisImportExportErrorCode KisPNGConverter::buildFile(QIODevice* iodevice, const Q
// set sRGB only if the profile is sRGB -- says sRGB and iCCP should not both be present
bool sRGB = device->colorSpace()->profile()->name().contains(QLatin1String("srgb"), Qt::CaseInsensitive);
const bool sRGB = *device->colorSpace()->profile() == *KoColorSpaceRegistry::instance()->p709SRGBProfile();
* This automatically writes the correct gamma and chroma chunks along with the sRGB chunk, but firefox's
* color management is bugged, so once you give it any incentive to start color managing an sRGB image it
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment