#include "MagickCore/exception-private.h"
#include "MagickCore/cache.h"
#include "MagickCore/client.h"
+#include "MagickCore/colorspace-private.h"
#include "MagickCore/constitute.h"
#include "MagickCore/constitute-private.h"
#include "MagickCore/delegate.h"
image->endian=(*(char *) &lsb_first) == 1 ? LSBEndian : MSBEndian;
}
}
+ if (IsGrayColorspace(image->colorspace) != MagickFalse)
+ {
+ /*
+ sRGB masquerading as a grayscale image?
+ */
+ if (IsGrayImage(image,&image->exception) == MagickFalse)
+ (void) SetImageColorspace(image,sRGBColorspace);
+ }
(void) SyncImageProfiles(image);
option=GetImageOption(image_info,"delegate:bimodal");
if ((IfMagickTrue(IsStringTrue(option))) &&