diff --git a/magick/profile.c b/magick/profile.c index 23317caf1..076867956 100644 --- a/magick/profile.c +++ b/magick/profile.c @@ -986,8 +986,10 @@ MagickExport MagickBooleanType ProfileImage(Image *image,const char *name, source_info.scale[0]=100.0; source_info.scale[1]=255.0; source_info.scale[2]=255.0; +#if !defined(MAGICKCORE_HDRI_SUPPORT) source_info.translate[1]=(-0.5); source_info.translate[2]=(-0.5); +#endif break; } case cmsSigRgbData: @@ -1036,8 +1038,10 @@ MagickExport MagickBooleanType ProfileImage(Image *image,const char *name, target_info.scale[0]=0.01; target_info.scale[1]=1/255.0; target_info.scale[2]=1/255.0; +#if !defined(MAGICKCORE_HDRI_SUPPORT) target_info.translate[1]=0.5; target_info.translate[2]=0.5; +#endif break; } case cmsSigRgbData: