Skip to content

Commit efbdf80

Browse files
authored
typo: TiffReadDefines.IgnoreExifPoperties -> IgnoreExifProperties (#1556)
1 parent 3c0dc19 commit efbdf80

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

src/Magick.NET/Formats/Tiff/TiffReadDefines.cs

Lines changed: 13 additions & 2 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;
@@ -19,7 +20,17 @@ public MagickFormat Format
1920
/// <summary>
2021
/// Gets or sets a value indicating whether the exif profile should be ignored (tiff:exif-properties).
2122
/// </summary>
22-
public bool? IgnoreExifPoperties { get; set; }
23+
[Obsolete($"This property will be removed in the next major release, use {nameof(IgnoreExifProperties)} instead.")]
24+
public bool? IgnoreExifPoperties
25+
{
26+
get => IgnoreExifProperties;
27+
set => IgnoreExifProperties = value;
28+
}
29+
30+
/// <summary>
31+
/// Gets or sets a value indicating whether the exif profile should be ignored (tiff:exif-properties).
32+
/// </summary>
33+
public bool? IgnoreExifProperties { get; set; }
2334

2435
/// <summary>
2536
/// Gets or sets a value indicating whether the layers should be ignored (tiff:ignore-layers).
@@ -38,7 +49,7 @@ public IEnumerable<IDefine> Defines
3849
{
3950
get
4051
{
41-
if (IgnoreExifPoperties.Equals(true))
52+
if (IgnoreExifProperties.Equals(true))
4253
yield return new MagickDefine(Format, "exif-properties", false);
4354

4455
if (IgnoreLayers is not null)

tests/Magick.NET.Tests/Formats/Tiff/TiffReadDefinesTests/TheIgnoreExifPopertiesProperty.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public void ShouldSetTheDefine()
1717
using var image = new MagickImage();
1818
image.Settings.SetDefines(new TiffReadDefines
1919
{
20-
IgnoreExifPoperties = true,
20+
IgnoreExifProperties = true,
2121
});
2222

2323
Assert.Equal("false", image.Settings.GetDefine(MagickFormat.Tiff, "exif-properties"));
@@ -29,7 +29,7 @@ public void ShouldNotSetTheDefineWhenTheValueIsFalse()
2929
using var image = new MagickImage();
3030
image.Settings.SetDefines(new TiffReadDefines
3131
{
32-
IgnoreExifPoperties = false,
32+
IgnoreExifProperties = false,
3333
});
3434

3535
Assert.Null(image.Settings.GetDefine(MagickFormat.Tiff, "exif-properties"));
@@ -42,7 +42,7 @@ public void ShouldIgnoreTheExifProperties()
4242
{
4343
Defines = new TiffReadDefines
4444
{
45-
IgnoreExifPoperties = true,
45+
IgnoreExifProperties = true,
4646
},
4747
};
4848

0 commit comments

Comments
 (0)