Black JPEG Bug

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Black JPEG Bug

Post by fmw42 »

Anthony,

Does this mean that one should do:

convert image -alpha flatten -alpha off result

to get the opaque alpha channel turned off or is that already included in the -alpha flatten. You comments were a bit unclear to me.

Fred
cur53se
Posts: 1
Joined: 2013-03-04T01:44:02-07:00
Authentication code: 6789

Re: Black JPEG Bug

Post by cur53se »

So I've tried all options provided here, including flatter alpha remove etc.. but nothing works when converting pdf to jpg :(

convert -density 72 foo.pdf -background white -flatten bar.jpg
convert -density 72 foo.pdf -alpha flatten bar.jpg
convert -density 72 foo.pdf -alpha off flatten bar.jpg
convert -density 72 foo.pdf -alpha remove flatten bar.jpg

ImageMagick 6.7.7-10 2012-06-29 Q16 on Debian 6
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Black JPEG Bug

Post by snibgo »

That is a very old version. I suggest you upgrade. If you still have problems, post a link to the file.
snibgo's IM pages: im.snibgo.com
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Black JPEG Bug

Post by anthony »

no such thing as -alpha flatten.

See IM Examples, Masking and Channels, Alpha Channel Handling
http://www.imagemagick.org/Usage/masking/#alpha

For a complete example set on removing transparency, before saving to JPEG see the next major section...
Removing Transparency from Images
http://www.imagemagick.org/Usage/masking/#remove
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply