jimp-dev / jimp-dev/jimp

Setting Background Color of Image not working

Open
#709 7 comments 1 reaction 0 assignees View on GitHub
breaking bug help wanted
Dominant language
TypeScript
Stars
14.7k
Forks
777
PR merge metrics
No merged PRs in 30d

Description

# 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.