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

Commented Unassigned: Unable to create 8-bit grayscale JPEG-2000 images [1420]

$
0
0
As I discuss in [this post](https://magick.codeplex.com/discussions/660276) and these ImageMagick forum posts (the ["Users" forum](https://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=31094); as well as the ["Magick.NET" forum](https://www.imagemagick.org/discourse-server/viewtopic.php?f=27&t=31095)), I am unable to successfully create 8-bit grayscale JPEG-2000 images in Magick.NET.

I __am__ able to successfully create 8-bit grayscale images via the command line in ImageMagick, so I believe the problem is not a deeper issue with ImageMagick. Rather, Magick.NET does not respect commands to change the Color.

With certain commands (see my discussion linked above in the Magick.NET forum), the JPEG-2000 metadata changes, but the file size does not change appreciably, suggesting that the actual imagery data being written is not changing. With other commands, neither the metadata nor the file size change.
Comments: That code that you provided doesn't work on my machine. I get an error message: "_The type or namespace name 'Jp2WriteDefines' could not be found (are you missing a using directive or an assembly reference?)_" Again, my Magick.NET version is 7.0.3.500-Q8-x86. I also attempted to insert the following code (hoping that it would be equivalent) immediately before the Write command. This gives no errors, but the output jp2 file appears to be unchanged. ``` m.Settings.SetDefine(MagickFormat.Jp2, "Rate", "5.0"); ```

Viewing all articles
Browse latest Browse all 1011

Trending Articles



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