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条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 ZABBIX6.0L连接数据库报错,如何解决?(操作系统-centos)
    • ¥15 找一位技术过硬的游戏pj程序员
    • ¥15 matlab生成电测深三层曲线模型代码
    • ¥50 随机森林与房贷信用风险模型
    • ¥50 buildozer打包kivy app失败
    • ¥30 在vs2022里运行python代码
    • ¥15 不同尺寸货物如何寻找合适的包装箱型谱
    • ¥15 求解 yolo算法问题
    • ¥15 虚拟机打包apk出现错误
    • ¥15 用visual studi code完成html页面