}
else
{
- status=SetImageProfile(image,"8bim",profile);
+ if (strcmp((char *) GetStringInfoDatum(profile),"8BIM") != 0)
+ status=SetImageProfile(image,"iptc",profile);
+ else
+ status=SetImageProfile(image,"8BIM",profile);
profile=DestroyStringInfo(profile);
if (status == MagickFalse)
ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed",