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 11// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.NET.
22// Licensed under the Apache License, Version 2.0.
33
4+ using System ;
45using System . Collections . Generic ;
56
67namespace 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 )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments