diff --git a/NAPS2.Sdk/Images/ImageExportHelper.cs b/NAPS2.Sdk/Images/ImageExportHelper.cs index 6628b250fb..1ab1ec5d67 100644 --- a/NAPS2.Sdk/Images/ImageExportHelper.cs +++ b/NAPS2.Sdk/Images/ImageExportHelper.cs @@ -21,11 +21,6 @@ public MemoryStream SaveSmallestFormatToMemoryStream(IMemoryImage image, bool lo if (exportFormat.FileFormat == ImageFileFormat.Png) { imageFileFormat = ImageFileFormat.Png; - if (exportFormat.PixelFormat == ImagePixelFormat.BW1 && image.LogicalPixelFormat != ImagePixelFormat.BW1) - { - using var bwImage = image.Clone().PerformTransform(new BlackWhiteTransform()); - return bwImage.SaveToMemoryStream(ImageFileFormat.Png); - } return image.SaveToMemoryStream(ImageFileFormat.Png); } if (exportFormat.FileFormat == ImageFileFormat.Jpeg) diff --git a/NAPS2.Sdk/Pdf/PdfExporter.cs b/NAPS2.Sdk/Pdf/PdfExporter.cs index 67b0f9ede3..333542e090 100644 --- a/NAPS2.Sdk/Pdf/PdfExporter.cs +++ b/NAPS2.Sdk/Pdf/PdfExporter.cs @@ -709,11 +709,6 @@ public ImageExportFormat PrepareForExport(ImageMetadata metadata) { exportFormat = exportFormat with { FileFormat = ImageFileFormat.Jpeg }; } - if (exportFormat.PixelFormat == ImagePixelFormat.BW1 && - Image.LogicalPixelFormat != ImagePixelFormat.BW1) - { - Image = Image.PerformTransform(new BlackWhiteTransform()); - } return exportFormat; }