Quantcast
Channel: magick Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1011

Closed Unassigned: Write to stream [1187]

$
0
0
Hi,

When attempting to convert an image and write it to a stream (or bytearray) the conversion is somehow corrupted in the process.

```
var outputStream = new MemoryStream();
using (var magickImage = new MagickImage(src.InputStream, new MagickReadSettings
{
Format = MagickFormat.Jpeg
}))
{
magickImage.Format = MagickFormat.Tiff64;
magickImage.CompressionMethod = CompressionMethod.Group4;
magickImage.ColorSpace = ColorSpace.GRAY;
magickImage.Write(outputStream);
// magickImage.Write("test.tiff") // works :/
}
File.WriteAllBytes("test.tiff", outputStream.ToArray()); // corrupted
```

Viewing all articles
Browse latest Browse all 1011

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>