From 6e3dc810df8c300eb8bf4aba2b2aad36995ca90d Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Mon, 16 Jan 2023 09:27:48 +1000 Subject: [PATCH] Update decoder bases following merge --- src/ImageSharp/Formats/ImageDecoder.cs | 2 +- src/ImageSharp/Formats/SpecializedImageDecoder{T}.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ImageSharp/Formats/ImageDecoder.cs b/src/ImageSharp/Formats/ImageDecoder.cs index 6aae33630..af999e77d 100644 --- a/src/ImageSharp/Formats/ImageDecoder.cs +++ b/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()); diff --git a/src/ImageSharp/Formats/SpecializedImageDecoder{T}.cs b/src/ImageSharp/Formats/SpecializedImageDecoder{T}.cs index 028620d75..2fb15aed2 100644 --- a/src/ImageSharp/Formats/SpecializedImageDecoder{T}.cs +++ b/src/ImageSharp/Formats/SpecializedImageDecoder{T}.cs @@ -25,7 +25,7 @@ public abstract class SpecializedImageDecoder : ImageDecoder, ISpecializedIma TransformColorProfile(options.GeneralOptions, image); this.SetDecoderFormat(options.GeneralOptions.Configuration, image); - + return image; } @@ -39,7 +39,7 @@ public abstract class SpecializedImageDecoder : ImageDecoder, ISpecializedIma TransformColorProfile(options.GeneralOptions, image); this.SetDecoderFormat(options.GeneralOptions.Configuration, image); - + return image; } @@ -55,7 +55,7 @@ public abstract class SpecializedImageDecoder : ImageDecoder, ISpecializedIma TransformColorProfile(options.GeneralOptions, image); this.SetDecoderFormat(options.GeneralOptions.Configuration, image); - + return image; } @@ -70,7 +70,7 @@ public abstract class SpecializedImageDecoder : ImageDecoder, ISpecializedIma TransformColorProfile(options.GeneralOptions, image); this.SetDecoderFormat(options.GeneralOptions.Configuration, image); - + return image; }