How can a 24-bit jpeg (RGB 888) image be converted to a 8881 (RGBA) bmp file with the following command? convert infile.jpg -resize 123x123 outfile.bmp Adding "-flatten +matte" does not solve the problem. I'm surprised the alpha channel is created at all, jpeg cannot have any transparent pixels. Please explain.