7#ifndef sRGBProfileCheck_H
8#define sRGBProfileCheck_H
12#include <klocalizedstring.h>
27 if (customWarning.isEmpty()) {
28 m_warning = i18nc(
"image conversion warning",
"The image is not tagged as <b>non-linear gamma sRGB</b>. The image will be converted to sRGB.");
34 bool sRGB = image->
colorSpace()->
profile()->
name().contains(QLatin1String(
"srgb"), Qt::CaseInsensitive);
37 bool linear = image->
colorSpace()->
profile()->
name().contains(QLatin1String(
"g10"), Qt::CaseInsensitive);
39 return (!sRGB || linear);
64 QString
id()
const override {
65 return "sRGBProfileCheck";
The KisExportCheckBase class defines the interface of the individual checks of an export filter's cap...
virtual QString id() const
const KoColorSpace * colorSpace() const
virtual const KoColorProfile * profile() const =0
KisExportCheckBase * create(KisExportCheckBase::Level level, const QString &customWarning) override
QString id() const override
~sRGBProfileCheckFactory() override
sRGBProfileCheckFactory()
Level check(KisImageSP) const override
bool checkNeeded(KisImageSP image) const override
sRGBProfileCheck(const QString &id, Level level, const QString &customWarning=QString())