Since the upgrade to 6.8, which included some major changes in color management, the convert -append command has been broken when dealing with mixed grayscale and color images. Consider the following command:
Code: Select all
$ convert bw.jpg color.jpg -append both.jpg
The expected and correct result should be that both.jpg is a color image, of which the top half shows the contents of bw.jpg and the bottom half the contents of color.jpg. However, the actual and incorrect result is that both.jpg is a grayscale image. This can be observed by opening it in any image viewer or with the identify command:
Code: Select all
$ identify -verbose both.jpg | grep Colorspace
Colorspace: Gray
Code: Select all
$ convert -colorspace sRGB -type truecolor bw.jpg -colorspace sRGB -type truecolor color.jpg -append -colorspace sRGB -type truecolor both.jpg
Code: Select all
$ convert color.jpg bw.jpg -append both.jpg