diff --git a/src/ImageProcessorCore/Formats/Png/PngEncoderCore.cs b/src/ImageProcessorCore/Formats/Png/PngEncoderCore.cs
index 15ed7793a..ab9057760 100644
--- a/src/ImageProcessorCore/Formats/Png/PngEncoderCore.cs
+++ b/src/ImageProcessorCore/Formats/Png/PngEncoderCore.cs
@@ -27,11 +27,6 @@ namespace ImageProcessorCore.Formats
///
private byte bitDepth;
- ///
- /// The quantized image result.
- ///
- //private QuantizedImage quantized;
-
///
/// Gets or sets the quality of output for images.
///
@@ -237,7 +232,10 @@ namespace ImageProcessorCore.Formats
int colorTableLength = (int)Math.Pow(2, header.BitDepth) * 3;
byte[] colorTable = new byte[colorTableLength];
- Parallel.For(0, pixelCount,
+ Parallel.For(
+ 0,
+ pixelCount,
+ Bootstrapper.Instance.ParallelOptions,
i =>
{
int offset = i * 3;
@@ -337,7 +335,7 @@ namespace ImageProcessorCore.Formats
Parallel.For(
0,
imageHeight,
- //Bootstrapper.Instance.ParallelOptions,
+ Bootstrapper.Instance.ParallelOptions,
y =>
{
int dataOffset = (y * rowLength);
diff --git a/src/ImageProcessorCore/Image/Image.cs b/src/ImageProcessorCore/Image/Image.cs
index 2c7ceeab1..f4c3ac6c6 100644
--- a/src/ImageProcessorCore/Image/Image.cs
+++ b/src/ImageProcessorCore/Image/Image.cs
@@ -85,6 +85,7 @@ namespace ImageProcessorCore
}
}
+ this.Quality = other.Quality;
this.RepeatCount = other.RepeatCount;
this.HorizontalResolution = other.HorizontalResolution;
this.VerticalResolution = other.VerticalResolution;
diff --git a/src/ImageProcessorCore/Image/ImageExtensions.cs b/src/ImageProcessorCore/Image/ImageExtensions.cs
index 67b126318..604908603 100644
--- a/src/ImageProcessorCore/Image/ImageExtensions.cs
+++ b/src/ImageProcessorCore/Image/ImageExtensions.cs
@@ -154,6 +154,7 @@ namespace ImageProcessorCore
{
// Several properties require copying
// TODO: Check why we need to set these?
+ Quality = source.Quality,
HorizontalResolution = source.HorizontalResolution,
VerticalResolution = source.VerticalResolution,
CurrentImageFormat = source.CurrentImageFormat,