From 1f3da8c4e059ceb8ea8eb39493fc9606b3979279 Mon Sep 17 00:00:00 2001 From: James South Date: Tue, 6 May 2014 08:28:13 +0100 Subject: [PATCH] Tidy up Former-commit-id: 7da92ad2aaf9f258598d73253e46260ae7c63e1b --- src/ImageProcessor.Web/NET45/ImageFactoryExtensions.cs | 2 +- src/ImageProcessor/ImageFactory.cs | 2 +- src/ImageProcessor/ImageProcessor.csproj | 1 - .../images/input/nLpfllv.gif.REMOVED.git-id | 1 + .../images/output/120430.gif.REMOVED.git-id | 2 +- .../images/output/nLpfllv.gif.REMOVED.git-id | 1 + 6 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 src/ImageProcessorConsole/images/input/nLpfllv.gif.REMOVED.git-id create mode 100644 src/ImageProcessorConsole/images/output/nLpfllv.gif.REMOVED.git-id 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