jimp-dev/jimp

Setting Background Color of Image not working

Open

#709 建立於 2019年3月10日

在 GitHub 查看
 (7 留言) (1 反應) (0 負責人)JavaScript (785 fork)batch import
breakingbughelp wanted

倉庫指標

Star
 (13,218 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Expected Behavior

Color the Image Background to specified color

Current Behavior

Image Background doesn't change color

Failure Information (for bugs)

No Error

Steps to Reproduce

  1. Read Image
  2. Set Background color
  3. Write to File
        return Jimp.read('app/background.png')
        .then(image => {
            image.background(0x0012faff);
        })
        .then(image => {
            return image.writeAsync(`app/new-${(new Date()/1000)}.png`);
        })

Context

  • Jimp Version: 0.6.0
  • Operating System: Mac Mojave
  • Node version: 7.0.0

Failure Logs

貢獻者指南