Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/1680
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Sep 7, 2019
1 parent eb4d7b6 commit e16bf8b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions magick/colorspace.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,11 @@ MagickExport MagickBooleanType RGBTransformImage(Image *image,
return(status);
}
case LinearGRAYColorspace:
{
if ((image->intensity != Rec601LuminancePixelIntensityMethod) &&
(image->intensity != Rec709LuminancePixelIntensityMethod))
image->intensity=Rec709LuminancePixelIntensityMethod;
}
case GRAYColorspace:
{
/*
Expand Down Expand Up @@ -1209,10 +1214,7 @@ MagickExport MagickBooleanType SetImageColorspace(Image *image,
if (IsGrayColorspace(colorspace) != MagickFalse)
{
if (colorspace == LinearGRAYColorspace)
{
image->gamma=1.0;
image->intensity=Rec709LuminancePixelIntensityMethod;
}
image->gamma=1.0;
type=GrayscaleType;
}
else
Expand Down

0 comments on commit e16bf8b

Please sign in to comment.