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

Commented Issue: MagickReader::GetExpectedLength ignores image height [1343]

$
0
0
It goes "length = width * width * pixel-size". Should be "width * height * pixel-size".
Comments: ** Comment from web user: rstarkov **

I'm not 100% sure this is related, but I found it while debugging the following issue:

```
new MagickImage(<byte array>, new MagickReadSettings {
Width = 10, Height = 5, Format = MagickFormat.Rgba,
PixelStorage = new PixelStorageSettings { Mapping = "RGBA",
StorageType = StorageType.Char } })
```

If I omit PixelStorage, it works well, but if I specify it, I get an exception stating that my array should have been 400 bytes long, which is 10 * 10 * 4. The actual size of the array is 10 * 5 * 4, of course.


Viewing all articles
Browse latest Browse all 1011

Trending Articles



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