Browse Source

Update decoder bases following merge

pull/1567/head
James Jackson-South 3 years ago
parent
commit
6e3dc810df
  1. 2
      src/ImageSharp/Formats/ImageDecoder.cs
  2. 8
      src/ImageSharp/Formats/SpecializedImageDecoder{T}.cs

2
src/ImageSharp/Formats/ImageDecoder.cs

@ -177,7 +177,7 @@ public abstract class ImageDecoder : IImageDecoder
return;
}
IccProfile profile = image.Metadata?.IccProfile;
IccProfile? profile = image.Metadata?.IccProfile;
if (profile is not null)
{
IccProfileConverter.Convert(image, profile, SrgbV4Profile.GetProfile());

8
src/ImageSharp/Formats/SpecializedImageDecoder{T}.cs

@ -25,7 +25,7 @@ public abstract class SpecializedImageDecoder<T> : ImageDecoder, ISpecializedIma
TransformColorProfile(options.GeneralOptions, image);
this.SetDecoderFormat(options.GeneralOptions.Configuration, image);
return image;
}
@ -39,7 +39,7 @@ public abstract class SpecializedImageDecoder<T> : ImageDecoder, ISpecializedIma
TransformColorProfile(options.GeneralOptions, image);
this.SetDecoderFormat(options.GeneralOptions.Configuration, image);
return image;
}
@ -55,7 +55,7 @@ public abstract class SpecializedImageDecoder<T> : ImageDecoder, ISpecializedIma
TransformColorProfile(options.GeneralOptions, image);
this.SetDecoderFormat(options.GeneralOptions.Configuration, image);
return image;
}
@ -70,7 +70,7 @@ public abstract class SpecializedImageDecoder<T> : ImageDecoder, ISpecializedIma
TransformColorProfile(options.GeneralOptions, image);
this.SetDecoderFormat(options.GeneralOptions.Configuration, image);
return image;
}

Loading…
Cancel
Save