doujiazong0322 2015-03-14 16:19
浏览 223

ImageMagick:带有文本图像的合成图像,结果图像将白色背景反转为黑色

I really need some help to understand the image channel problem, I used ImageMagick to gen a text image with jpg 300 dpi RGB.

I then merge this image on the top of a background image(jpg 300 dpi CMYK 8bits/Channel).

I find the text image is normal when open this by default/photoshop, however when I merge to the background image, it have become inverting the color tone, black and white.

can anybody tell me what's wrong with the image? please help I have tried couple of hours however still no answer I'm using ImageMagick 6.7.9-10

This is the command I ran:

convert -background white -fill black \
      -font 'Brandon_reg.otf' \
            -pointsize 9 -size 445x -density 300 -gravity center\
            caption:'Why this message become invert the black and white?' \
      msg.jpg"


convert background.jpg msg.jpg \
            -gravity center -composite output.jpg

please see this image

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥30 这是哪个作者做的宝宝起名网站
    • ¥60 版本过低apk如何修改可以兼容新的安卓系统
    • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
    • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
    • ¥50 有数据,怎么用matlab求全要素生产率
    • ¥15 TI的insta-spin例程
    • ¥15 完成下列问题完成下列问题
    • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
    • ¥15 YoloV5 第三方库的版本对照问题
    • ¥15 请完成下列相关问题!