Page 2 of 2

Re: Black JPEG Bug

Posted: 2012-01-31T18:42:39-07:00
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

Re: Black JPEG Bug

Posted: 2013-03-04T01:48:24-07:00
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

Re: Black JPEG Bug

Posted: 2013-03-04T09:13:04-07:00
by snibgo
That is a very old version. I suggest you upgrade. If you still have problems, post a link to the file.

Re: Black JPEG Bug

Posted: 2013-03-04T18:54:37-07:00
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