diff --git a/src/ImageProcessor.Web/NET45/ImageFactoryExtensions.cs b/src/ImageProcessor.Web/NET45/ImageFactoryExtensions.cs
index e950cf13a..8d050226a 100644
--- a/src/ImageProcessor.Web/NET45/ImageFactoryExtensions.cs
+++ b/src/ImageProcessor.Web/NET45/ImageFactoryExtensions.cs
@@ -84,7 +84,7 @@ namespace ImageProcessor.Web
if (imageInfo.IsAnimated)
{
OctreeQuantizer quantizer = new OctreeQuantizer(255, 8);
- MemoryStream stream = new MemoryStream(4096);
+ MemoryStream stream = new MemoryStream();
using (GifEncoder encoder = new GifEncoder(stream, null, null, imageInfo.LoopCount))
{
foreach (GifFrame frame in imageInfo.GifFrames)
diff --git a/src/ImageProcessor/ImageFactory.cs b/src/ImageProcessor/ImageFactory.cs
index a0496e92e..002093e61 100644
--- a/src/ImageProcessor/ImageFactory.cs
+++ b/src/ImageProcessor/ImageFactory.cs
@@ -992,7 +992,7 @@ namespace ImageProcessor
if (imageInfo.IsAnimated)
{
OctreeQuantizer quantizer = new OctreeQuantizer(255, 8);
- MemoryStream stream = new MemoryStream(4096);
+ MemoryStream stream = new MemoryStream();
using (GifEncoder encoder = new GifEncoder(stream, width, height, imageInfo.LoopCount))
{
foreach (GifFrame frame in imageInfo.GifFrames)
diff --git a/src/ImageProcessor/ImageProcessor.csproj b/src/ImageProcessor/ImageProcessor.csproj
index ed83f0121..f1251eb08 100644
--- a/src/ImageProcessor/ImageProcessor.csproj
+++ b/src/ImageProcessor/ImageProcessor.csproj
@@ -71,7 +71,6 @@
-
diff --git a/src/ImageProcessorConsole/images/input/nLpfllv.gif.REMOVED.git-id b/src/ImageProcessorConsole/images/input/nLpfllv.gif.REMOVED.git-id
new file mode 100644
index 000000000..c7d3c535a
--- /dev/null
+++ b/src/ImageProcessorConsole/images/input/nLpfllv.gif.REMOVED.git-id
@@ -0,0 +1 @@
+15dcc59465ef0163037cddef074d4de3f13fe8d7
\ No newline at end of file
diff --git a/src/ImageProcessorConsole/images/output/120430.gif.REMOVED.git-id b/src/ImageProcessorConsole/images/output/120430.gif.REMOVED.git-id
index 54bec4704..71ce555c1 100644
--- a/src/ImageProcessorConsole/images/output/120430.gif.REMOVED.git-id
+++ b/src/ImageProcessorConsole/images/output/120430.gif.REMOVED.git-id
@@ -1 +1 @@
-5e0c47f9c0cfbba294a8ca4fa61358c2af6a45f2
\ No newline at end of file
+30ec5c05548fd350f9b7c699715848b9fbfb8ca9
\ No newline at end of file
diff --git a/src/ImageProcessorConsole/images/output/nLpfllv.gif.REMOVED.git-id b/src/ImageProcessorConsole/images/output/nLpfllv.gif.REMOVED.git-id
new file mode 100644
index 000000000..4487aede0
--- /dev/null
+++ b/src/ImageProcessorConsole/images/output/nLpfllv.gif.REMOVED.git-id
@@ -0,0 +1 @@
+23a1c81a2d1422076373796e0c47f5d968c56d0b
\ No newline at end of file