File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed
src/Magick.NET/Formats/Tiff
tests/Magick.NET.Tests/Formats/Tiff/TiffReadDefinesTests Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 1
1
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.NET.
2
2
// Licensed under the Apache License, Version 2.0.
3
3
4
+ using System ;
4
5
using System . Collections . Generic ;
5
6
6
7
namespace ImageMagick . Formats ;
@@ -19,7 +20,17 @@ public MagickFormat Format
19
20
/// <summary>
20
21
/// Gets or sets a value indicating whether the exif profile should be ignored (tiff:exif-properties).
21
22
/// </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 ; }
23
34
24
35
/// <summary>
25
36
/// Gets or sets a value indicating whether the layers should be ignored (tiff:ignore-layers).
@@ -38,7 +49,7 @@ public IEnumerable<IDefine> Defines
38
49
{
39
50
get
40
51
{
41
- if ( IgnoreExifPoperties . Equals ( true ) )
52
+ if ( IgnoreExifProperties . Equals ( true ) )
42
53
yield return new MagickDefine ( Format , "exif-properties" , false ) ;
43
54
44
55
if ( IgnoreLayers is not null )
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ public void ShouldSetTheDefine()
17
17
using var image = new MagickImage ( ) ;
18
18
image . Settings . SetDefines ( new TiffReadDefines
19
19
{
20
- IgnoreExifPoperties = true ,
20
+ IgnoreExifProperties = true ,
21
21
} ) ;
22
22
23
23
Assert . Equal ( "false" , image . Settings . GetDefine ( MagickFormat . Tiff , "exif-properties" ) ) ;
@@ -29,7 +29,7 @@ public void ShouldNotSetTheDefineWhenTheValueIsFalse()
29
29
using var image = new MagickImage ( ) ;
30
30
image . Settings . SetDefines ( new TiffReadDefines
31
31
{
32
- IgnoreExifPoperties = false ,
32
+ IgnoreExifProperties = false ,
33
33
} ) ;
34
34
35
35
Assert . Null ( image . Settings . GetDefine ( MagickFormat . Tiff , "exif-properties" ) ) ;
@@ -42,7 +42,7 @@ public void ShouldIgnoreTheExifProperties()
42
42
{
43
43
Defines = new TiffReadDefines
44
44
{
45
- IgnoreExifPoperties = true ,
45
+ IgnoreExifProperties = true ,
46
46
} ,
47
47
} ;
48
48
You can’t perform that action at this time.
0 commit comments