From 22323d891396a5020b91c306a3dc203efaf3f7e2 Mon Sep 17 00:00:00 2001 From: MoonsvnLyn <287222957+FirmaSpring@users.noreply.github.com> Date: Mon, 17 Aug 2026 17:30:15 +0800 Subject: [PATCH] docs: update ImageMagick Usage filter links in resamplers ## Problem Cubic and Welch resampler XML docs still cite the retired ImageMagick Usage host: http://www.imagemagick.org/Usage/filter/ GET with redirects returns 404. The same pages now live at https://usage.imagemagick.org/filter/. ## Solution Update the `see` hrefs in `CubicResampler` and `WelchResampler` to the current Usage site, keeping the original `#cubic_bc` and `#robidoux` fragments. ## Verification ``` curl -sL -o /dev/null -w "%{http_code}" -A "Mozilla/5.0" \ "http://www.imagemagick.org/Usage/filter/" # 404 curl -sL -o /dev/null -w "%{http_code}" -A "Mozilla/5.0" \ "https://usage.imagemagick.org/filter/" # 200 curl -sL -o /dev/null -w "%{http_code}" -A "Mozilla/5.0" \ "https://usage.imagemagick.org/filter/#cubic_bc" # 200 curl -sL -o /dev/null -w "%{http_code}" -A "Mozilla/5.0" \ "https://usage.imagemagick.org/filter/#robidoux" # 200 ``` Co-authored-by: FirmamentalSpring <287222957+FirmaSpring@users.noreply.github.com> --- .../Processors/Transforms/Resamplers/CubicResampler.cs | 10 +++++----- .../Processors/Transforms/Resamplers/WelchResampler.cs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ImageSharp/Processing/Processors/Transforms/Resamplers/CubicResampler.cs b/src/ImageSharp/Processing/Processors/Transforms/Resamplers/CubicResampler.cs index 41228e411..4807b573e 100644 --- a/src/ImageSharp/Processing/Processors/Transforms/Resamplers/CubicResampler.cs +++ b/src/ImageSharp/Processing/Processors/Transforms/Resamplers/CubicResampler.cs @@ -10,7 +10,7 @@ namespace SixLabors.ImageSharp.Processing.Processors.Transforms; /// Cubic filters contain a collection of different filters of varying B-Spline and /// Cardinal values. With these two values you can generate any smoothly fitting /// (continuious first derivative) piece-wise cubic filter. -/// +/// /// /// public readonly struct CubicResampler : IResampler @@ -39,23 +39,23 @@ public readonly struct CubicResampler : IResampler /// /// The function implements the Robidoux algorithm. - /// + /// /// public static readonly CubicResampler Robidoux = new(2, .37821575509399867F, .31089212245300067F); /// /// The function implements the Robidoux Sharp algorithm. - /// + /// /// public static readonly CubicResampler RobidouxSharp = new(2, .2620145123990142F, .3689927438004929F); /// /// The function implements the spline algorithm. - /// + /// /// /// /// The function implements the Robidoux Sharp algorithm. - /// + /// /// public static readonly CubicResampler Spline = new(2, 1, 0); diff --git a/src/ImageSharp/Processing/Processors/Transforms/Resamplers/WelchResampler.cs b/src/ImageSharp/Processing/Processors/Transforms/Resamplers/WelchResampler.cs index de0fe3f80..b866dbb01 100644 --- a/src/ImageSharp/Processing/Processors/Transforms/Resamplers/WelchResampler.cs +++ b/src/ImageSharp/Processing/Processors/Transforms/Resamplers/WelchResampler.cs @@ -8,7 +8,7 @@ namespace SixLabors.ImageSharp.Processing.Processors.Transforms; /// /// The function implements the welch algorithm. -/// +/// /// public readonly struct WelchResampler : IResampler {