Re: Bug with B&W conversion
Bob Friesenhahn <[email protected]> Fri, 7 Jan 2011 08:36:45 -0600 (CST)
| Newsgroups | gmane.comp.video.graphicsmagick.bugs |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 7 Jan 2011, Andrew Stonewall wrote: > > "c:\Program Files\GraphicsMagick-1.3.12-Q16\gm.exe" convert -monochrome -format bmp original.bmp error.bmp > > on the attached ZIP-ed BMP files you'll see that you get a blank image - these images have no compression or > alpha channels - just plain 24-bit BMP. Hmmm. I am able to recreate this issue here. This time I don't have an answer (yet) for why the issue occurs but it clearly has something to do with using the color reduction algorithm and some property of the input image. This permutation works but only uses simple thresholding (key is to add +dither): gm convert original.bmp +dither -type bilevel crap.bmp Bob -- Bob Friesenhahn [email protected], http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl