Commit b33d666 1 parent 6b2030b commit b33d666 Copy full SHA for b33d666
File tree 1 file changed +1
-7
lines changed
src/ImageSharp/Formats/Gif
1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -100,20 +100,14 @@ internal sealed class GifDecoderCore : IImageDecoderInternals
100
100
public GifDecoderCore ( Configuration configuration , IGifDecoderOptions options )
101
101
{
102
102
this . skipMetadata = options . IgnoreMetadata ;
103
- this . DecodingMode = options . DecodingMode ;
104
103
this . configuration = configuration ?? Configuration . Default ;
105
- this . maxFrames = options . MaxFrames ;
104
+ this . maxFrames = options . DecodingMode == FrameDecodingMode . All ? options . MaxFrames : 1 ;
106
105
this . memoryAllocator = this . configuration . MemoryAllocator ;
107
106
}
108
107
109
108
/// <inheritdoc />
110
109
public Configuration Configuration => this . configuration ;
111
110
112
- /// <summary>
113
- /// Gets the decoding mode for multi-frame images.
114
- /// </summary>
115
- public FrameDecodingMode DecodingMode { get ; }
116
-
117
111
/// <summary>
118
112
/// Gets the dimensions of the image.
119
113
/// </summary>
You can’t perform that action at this time.
0 commit comments