Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: Detect compression method with MagickImageInfo

$
0
0
Hello. I was finally able to modify the "fixing" code and test it out. You were correct on all fronts and it now converts Sgi images back to JPEG before storage. I should have checked the Format with Magick.NET, but was too focused on the compression.

The conversion to JPEG does remove a good portion of the unique colors (over half) even at 100% compression. I'm well aware of how JPEG is (almost) never a lossless conversion so in the future we might consider supporting PNG in our work flow.

So to wrap this up, even though it's not really relevant now - is there a way to get the Compression method of a source JPEG image through a shallow read like MagickImageInfo? It likely becomes meaningless once the image is loaded since it's a bitmap by that point, but maybe it would have some use in the future if it's possible.

Thanks!

Viewing all articles
Browse latest Browse all 3693

Trending Articles