Browse Source

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>
pull/3171/head
MoonsvnLyn 3 weeks ago
parent
commit
22323d8913
  1. 10
      src/ImageSharp/Processing/Processors/Transforms/Resamplers/CubicResampler.cs
  2. 2
      src/ImageSharp/Processing/Processors/Transforms/Resamplers/WelchResampler.cs

10
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 /// 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 /// Cardinal values. With these two values you can generate any smoothly fitting
/// (continuious first derivative) piece-wise cubic filter. /// (continuious first derivative) piece-wise cubic filter.
/// <see href="http://www.imagemagick.org/Usage/filter/#cubic_bc"/> /// <see href="https://usage.imagemagick.org/filter/#cubic_bc"/>
/// <see href="https://www.cs.utexas.edu/~fussell/courses/cs384g-fall2013/lectures/mitchell/Mitchell.pdf"/> /// <see href="https://www.cs.utexas.edu/~fussell/courses/cs384g-fall2013/lectures/mitchell/Mitchell.pdf"/>
/// </summary> /// </summary>
public readonly struct CubicResampler : IResampler public readonly struct CubicResampler : IResampler
@ -39,23 +39,23 @@ public readonly struct CubicResampler : IResampler
/// <summary> /// <summary>
/// The function implements the Robidoux algorithm. /// The function implements the Robidoux algorithm.
/// <see href="http://www.imagemagick.org/Usage/filter/#robidoux"/> /// <see href="https://usage.imagemagick.org/filter/#robidoux"/>
/// </summary> /// </summary>
public static readonly CubicResampler Robidoux = new(2, .37821575509399867F, .31089212245300067F); public static readonly CubicResampler Robidoux = new(2, .37821575509399867F, .31089212245300067F);
/// <summary> /// <summary>
/// The function implements the Robidoux Sharp algorithm. /// The function implements the Robidoux Sharp algorithm.
/// <see href="http://www.imagemagick.org/Usage/filter/#robidoux"/> /// <see href="https://usage.imagemagick.org/filter/#robidoux"/>
/// </summary> /// </summary>
public static readonly CubicResampler RobidouxSharp = new(2, .2620145123990142F, .3689927438004929F); public static readonly CubicResampler RobidouxSharp = new(2, .2620145123990142F, .3689927438004929F);
/// <summary> /// <summary>
/// The function implements the spline algorithm. /// The function implements the spline algorithm.
/// <see href="http://www.imagemagick.org/Usage/filter/#cubic_bc"/> /// <see href="https://usage.imagemagick.org/filter/#cubic_bc"/>
/// </summary> /// </summary>
/// <summary> /// <summary>
/// The function implements the Robidoux Sharp algorithm. /// The function implements the Robidoux Sharp algorithm.
/// <see href="http://www.imagemagick.org/Usage/filter/#robidoux"/> /// <see href="https://usage.imagemagick.org/filter/#robidoux"/>
/// </summary> /// </summary>
public static readonly CubicResampler Spline = new(2, 1, 0); public static readonly CubicResampler Spline = new(2, 1, 0);

2
src/ImageSharp/Processing/Processors/Transforms/Resamplers/WelchResampler.cs

@ -8,7 +8,7 @@ namespace SixLabors.ImageSharp.Processing.Processors.Transforms;
/// <summary> /// <summary>
/// The function implements the welch algorithm. /// The function implements the welch algorithm.
/// <see href="http://www.imagemagick.org/Usage/filter/"/> /// <see href="https://usage.imagemagick.org/filter/"/>
/// </summary> /// </summary>
public readonly struct WelchResampler : IResampler public readonly struct WelchResampler : IResampler
{ {

Loading…
Cancel
Save