From 9af284f48de413e52e7b7aa7076fcaa3bc0d9d7c Mon Sep 17 00:00:00 2001 From: Clinton Ingram Date: Wed, 4 Dec 2024 22:53:11 -0800 Subject: [PATCH] v0.15.0 --- src/Directory.Build.props | 2 +- src/MagicScaler/Color/Matrix3x3C.cs | 4 ---- src/MagicScaler/Magic/MagicTransforms.cs | 2 +- src/MagicScaler/MagicScaler.csproj | 12 ++++++------ .../ImageSharp/ManagedCodecs.ImageSharp.csproj | 2 +- src/NativeCodecs/Giflib/NativeCodecs.Giflib.csproj | 6 +++--- src/NativeCodecs/Libheif/NativeCodecs.Libheif.csproj | 6 +++--- src/NativeCodecs/Libjpeg/NativeCodecs.Libjpeg.csproj | 6 +++--- src/NativeCodecs/Libjxl/NativeCodecs.Libjxl.csproj | 6 +++--- src/NativeCodecs/Libpng/NativeCodecs.Libpng.csproj | 6 +++--- src/NativeCodecs/Libwebp/NativeCodecs.Libwebp.csproj | 6 +++--- src/WebRSize/WebRSize.csproj | 2 +- 12 files changed, 28 insertions(+), 32 deletions(-) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 830ad38..19084bc 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -27,7 +27,7 @@ - + diff --git a/src/MagicScaler/Color/Matrix3x3C.cs b/src/MagicScaler/Color/Matrix3x3C.cs index 533e2fe..30a3488 100644 --- a/src/MagicScaler/Color/Matrix3x3C.cs +++ b/src/MagicScaler/Color/Matrix3x3C.cs @@ -79,11 +79,7 @@ public ref readonly Vector3C Row3 [MethodImpl(MethodImplOptions.AggressiveInlining)] public static Matrix3x3C FromRows(in Vector3C r0, in Vector3C r1, in Vector3C r2) { -#if NET5_0_OR_GREATER Unsafe.SkipInit(out Matrix3x3C r); -#else - var r = default(Matrix3x3C); -#endif ref var rr = ref Unsafe.As(ref r); Unsafe.Add(ref rr, 0) = r0; diff --git a/src/MagicScaler/Magic/MagicTransforms.cs b/src/MagicScaler/Magic/MagicTransforms.cs index a70d34d..5d4de87 100644 --- a/src/MagicScaler/Magic/MagicTransforms.cs +++ b/src/MagicScaler/Magic/MagicTransforms.cs @@ -423,7 +423,7 @@ public static void AddCropper(PipelineContext ctx) // Workaround for WIC JPEG decoder bug https://github.com/saucecontrol/wic-jpeg-bug var src = ctx.Source; - if (src is WicFramePixelSource && src.Format == PixelFormat.Cmyk32 && src.Width != crop.Width) + if (ctx.ImageFrame is WicPlanarFrame && src.Format == PixelFormat.Cmyk32 && src.Width != crop.Width) { using var buff = BufferPool.RentLocal(src.Width * src.Format.BytesPerPixel); unsafe diff --git a/src/MagicScaler/MagicScaler.csproj b/src/MagicScaler/MagicScaler.csproj index 232d25a..cd03bf2 100644 --- a/src/MagicScaler/MagicScaler.csproj +++ b/src/MagicScaler/MagicScaler.csproj @@ -3,7 +3,7 @@ 0.15.0 net8.0;net472 - $(TargetFrameworks);net461;netstandard2.0;netstandard2.1 + $(TargetFrameworks);net462;netstandard2.0;netstandard2.1 @@ -14,10 +14,10 @@ - - - - + + + + @@ -26,7 +26,7 @@ - + diff --git a/src/ManagedCodecs/ImageSharp/ManagedCodecs.ImageSharp.csproj b/src/ManagedCodecs/ImageSharp/ManagedCodecs.ImageSharp.csproj index defb1e1..8e04328 100644 --- a/src/ManagedCodecs/ImageSharp/ManagedCodecs.ImageSharp.csproj +++ b/src/ManagedCodecs/ImageSharp/ManagedCodecs.ImageSharp.csproj @@ -3,7 +3,7 @@ 0.0.2 net8.0;net472 - $(TargetFrameworks);net461;netstandard2.0 + $(TargetFrameworks);net462;netstandard2.0 diff --git a/src/NativeCodecs/Giflib/NativeCodecs.Giflib.csproj b/src/NativeCodecs/Giflib/NativeCodecs.Giflib.csproj index d0ab00a..192882d 100644 --- a/src/NativeCodecs/Giflib/NativeCodecs.Giflib.csproj +++ b/src/NativeCodecs/Giflib/NativeCodecs.Giflib.csproj @@ -1,9 +1,9 @@ - + 5.2.2 net8.0;net472 - $(TargetFrameworks);net461;netstandard2.0;netstandard2.1 + $(TargetFrameworks);net462;netstandard2.0;netstandard2.1 @@ -11,7 +11,7 @@ - + diff --git a/src/NativeCodecs/Libheif/NativeCodecs.Libheif.csproj b/src/NativeCodecs/Libheif/NativeCodecs.Libheif.csproj index 9104de9..c1d2bed 100644 --- a/src/NativeCodecs/Libheif/NativeCodecs.Libheif.csproj +++ b/src/NativeCodecs/Libheif/NativeCodecs.Libheif.csproj @@ -1,9 +1,9 @@ - + 1.19.5 net8.0;net472 - $(TargetFrameworks);net461;netstandard2.0;netstandard2.1 + $(TargetFrameworks);net462;netstandard2.0;netstandard2.1 @@ -11,7 +11,7 @@ - + diff --git a/src/NativeCodecs/Libjpeg/NativeCodecs.Libjpeg.csproj b/src/NativeCodecs/Libjpeg/NativeCodecs.Libjpeg.csproj index c8d588a..3db7f05 100644 --- a/src/NativeCodecs/Libjpeg/NativeCodecs.Libjpeg.csproj +++ b/src/NativeCodecs/Libjpeg/NativeCodecs.Libjpeg.csproj @@ -1,9 +1,9 @@ - + 3.0.4 net8.0;net472 - $(TargetFrameworks);net461;netstandard2.0;netstandard2.1 + $(TargetFrameworks);net462;netstandard2.0;netstandard2.1 @@ -11,7 +11,7 @@ - + diff --git a/src/NativeCodecs/Libjxl/NativeCodecs.Libjxl.csproj b/src/NativeCodecs/Libjxl/NativeCodecs.Libjxl.csproj index 83ad90b..1ef5b88 100644 --- a/src/NativeCodecs/Libjxl/NativeCodecs.Libjxl.csproj +++ b/src/NativeCodecs/Libjxl/NativeCodecs.Libjxl.csproj @@ -1,9 +1,9 @@ - + 0.11.1 net8.0;net472 - $(TargetFrameworks);net461;netstandard2.0;netstandard2.1 + $(TargetFrameworks);net462;netstandard2.0;netstandard2.1 @@ -11,7 +11,7 @@ - + diff --git a/src/NativeCodecs/Libpng/NativeCodecs.Libpng.csproj b/src/NativeCodecs/Libpng/NativeCodecs.Libpng.csproj index 80af15f..ca4ba3d 100644 --- a/src/NativeCodecs/Libpng/NativeCodecs.Libpng.csproj +++ b/src/NativeCodecs/Libpng/NativeCodecs.Libpng.csproj @@ -1,9 +1,9 @@ - + 1.6.44 net8.0;net472 - $(TargetFrameworks);net461;netstandard2.0;netstandard2.1 + $(TargetFrameworks);net462;netstandard2.0;netstandard2.1 @@ -11,7 +11,7 @@ - + diff --git a/src/NativeCodecs/Libwebp/NativeCodecs.Libwebp.csproj b/src/NativeCodecs/Libwebp/NativeCodecs.Libwebp.csproj index 3bfa7ce..2b0ac6e 100644 --- a/src/NativeCodecs/Libwebp/NativeCodecs.Libwebp.csproj +++ b/src/NativeCodecs/Libwebp/NativeCodecs.Libwebp.csproj @@ -1,9 +1,9 @@ - + 1.4.0 net8.0;net472 - $(TargetFrameworks);net461;netstandard2.0;netstandard2.1 + $(TargetFrameworks);net462;netstandard2.0;netstandard2.1 @@ -11,7 +11,7 @@ - + diff --git a/src/WebRSize/WebRSize.csproj b/src/WebRSize/WebRSize.csproj index 32d0271..ee79341 100644 --- a/src/WebRSize/WebRSize.csproj +++ b/src/WebRSize/WebRSize.csproj @@ -3,7 +3,7 @@ 0.6.11 net472 - $(TargetFrameworks);net461 + $(TargetFrameworks);net462