Skip to content

Commit

Permalink
Lab translation not required for HDRI support (ImageMagick/ImageMagic…
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Oct 27, 2024
1 parent 821c82f commit 6d8ede7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions magick/profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 6d8ede7

Please sign in to comment.