Skip to content

Commit 08020b4

Browse files
committed
Made NearLossless of the WebPWriteDefines obsolete because this was removed from ImageMagick.
1 parent 8f5a606 commit 08020b4

File tree

3 files changed

+2
-27
lines changed

3 files changed

+2
-27
lines changed

src/Magick.NET/Formats/WebP/WebPWriteDefines.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.NET.
22
// Licensed under the Apache License, Version 2.0.
33

4+
using System;
45
using System.Collections.Generic;
56

67
namespace ImageMagick.Formats;
@@ -84,6 +85,7 @@ public MagickFormat Format
8485
/// <summary>
8586
/// Gets or sets the near lossless encoding, between 0 (max-loss) and 100 (off) (webp:near-lossless).
8687
/// </summary>
88+
[Obsolete("This property will be removed in the next major release, this was removed from ImageMagick.")]
8789
public int? NearLossless { get; set; }
8890

8991
/// <summary>

tests/Magick.NET.Tests/Formats/WebP/WebPWriteDefinesTests/TheConstructor.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ public void ShouldNotSetAnyDefine()
2929
Assert.Null(image.Settings.GetDefine(MagickFormat.WebP, "image-hint"));
3030
Assert.Null(image.Settings.GetDefine(MagickFormat.WebP, "low-memory"));
3131
Assert.Null(image.Settings.GetDefine(MagickFormat.WebP, "lossless"));
32-
Assert.Null(image.Settings.GetDefine(MagickFormat.WebP, "near-lossless"));
3332
Assert.Null(image.Settings.GetDefine(MagickFormat.WebP, "method"));
3433
Assert.Null(image.Settings.GetDefine(MagickFormat.WebP, "partition-limit"));
3534
Assert.Null(image.Settings.GetDefine(MagickFormat.WebP, "partitions"));

tests/Magick.NET.Tests/Formats/WebP/WebPWriteDefinesTests/TheNearLosslessProperty.cs

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)