This commit makes some fixes to the way that iCCP profile data is read and
loaded, and adds an additional check to ensure that the PNG file does have
a profile.
It also introduces a shorter libpng version check of the form:
`#if PNG_LIBPNG_VER < 10500`
This commit fixes issue #20.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
kdDebug(41008)<<"profile name: "<<profile->productName()<<" profile description: "<<profile->productDescription()<<" information sur le produit: "<<profile->productInfo()<<endl;
if(!profile->isSuitableForOutput())
{
kdDebug(41008)<<"the profile is not suitable for output and therefore cannot be used in chalk, we need to convert the image to a standard profile"<<endl;// TODO: in ko2 popup a selection menu to inform the user
kdDebug(41008)<<"profile name: "<<profile->productName()<<" profile description: "<<profile->productDescription()<<" information sur le produit: "<<profile->productInfo()<<endl;
if(!profile->isSuitableForOutput())
{
kdDebug(41008)<<"the profile is not suitable for output and therefore cannot be used in chalk, we need to convert the image to a standard profile"<<endl;// TODO: in ko2 popup a selection menu to inform the user