//
// renderingIntent
//
- if ( image.renderingIntent() != UndefinedIntent )
+ if ( image.renderingIntent() != PerceptualIntent )
{
++failures;
cout << "Line: " << __LINE__
- << ", renderingIntent default is not UndefinedIntent as expected"
+ << ", renderingIntent default is not PerceptualIntent as expected"
<< endl;
}
assert(colorspace != RGBColorspace);
assert(colorspace != TransparentColorspace);
assert(colorspace != UndefinedColorspace);
- if (IsRGBColorspace(image->colorspace) == MagickFalse)
- (void) TransformRGBImage(image,image->colorspace,exception);
if (SetImageColorspace(image,colorspace,exception) == MagickFalse)
return(MagickFalse);
status=MagickTrue;
assert(image->signature == MagickSignature);
if (image->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
- if (IsRGBColorspace(image->colorspace) != MagickFalse)
- {
- if (SetImageColorspace(image,colorspace,exception) == MagickFalse)
- return(MagickFalse);
- return(MagickTrue);
- }
status=MagickTrue;
progress=0;
switch (image->colorspace)
break;
}
case YUVColorspace:
- default:
{
/*
Initialize YUV tables:
}
break;
}
+ default:
+ {
+ /*
+ Linear conversion tables.
+ */
+#if defined(MAGICKCORE_OPENMP_SUPPORT)
+ #pragma omp parallel for schedule(static)
+#endif
+ for (i=0; i <= (ssize_t) MaxMap; i++)
+ {
+ x_map[i].x=(MagickRealType) i;
+ y_map[i].x=0.0f;
+ z_map[i].x=0.0f;
+ x_map[i].y=0.0f;
+ y_map[i].y=(MagickRealType) i;
+ z_map[i].y=0.0f;
+ x_map[i].z=0.0f;
+ y_map[i].z=0.0f;
+ z_map[i].z=(MagickRealType) i;
+ }
+ break;
+ }
}
/*
Convert to RGB.
next->magick_columns=next->columns;
if (next->magick_rows == 0)
next->magick_rows=next->rows;
+ if ((next->colorspace == sRGBColorspace) || (next->gamma == 1.0))
+ next->colorspace=RGBColorspace;
value=GetImageProperty(next,"tiff:Orientation",exception);
if (value == (char *) NULL)
value=GetImageProperty(next,"exif:Orientation",exception);
image->storage_class=DirectClass;
image->depth=MAGICKCORE_QUANTUM_DEPTH;
image->colorspace=sRGBColorspace;
+ image->rendering_intent=PerceptualIntent;
+ image->gamma=0.45455f;
+ image->chromaticity.red_primary.x=0.6400f;
+ image->chromaticity.red_primary.y=0.3300f;
+ image->chromaticity.green_primary.x=0.3000f;
+ image->chromaticity.green_primary.y=0.6000f;
+ image->chromaticity.blue_primary.x=0.1500f;
+ image->chromaticity.blue_primary.y=0.0600f;
+ image->chromaticity.white_point.x=0.3127f;
+ image->chromaticity.white_point.y=0.3290f;
image->interlace=NoInterlace;
image->ticks_per_second=UndefinedTicksPerSecond;
image->compose=OverCompositeOp;