jimp-dev / jimp-dev/jimp

P3 Color Profile Support

Open
#1,259 1 comment 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
14.7k
Forks
777
PR merge metrics
No merged PRs in 30d

Description

# Expected Behavior

Resizing an image should not change its color profile

# Current Behavior

Resizing a `Display P3` image results in an `sRGB IEC61966-2.1` image that looks different, i.e., more muted/duller/less contrast than the original

## Steps to Reproduce

```
// Initial image-01 begins as "Display P3"
// Resulting image-02 ends up as "sRGB IEC61966-2.1"

Jimp.read("image-01.jpg")
.then(file => {
return file
.resize(2000, Jimp.AUTO)
.quality(80)
.write("image-02.jpg");
})
```

IF YOUR ISSUE DEPENDS ON A PARTICULAR IMAGE BE SURE TO INCLUDE THIS AS WELL. WE CAN'T REPRODUCE IF WE DON'T HAVE YOUR IMAGE

Input: image-01.jpg

![image-01](https://github.com/jimp-dev/jimp/assets/169298/043dcaa2-9225-40cb-b41a-e8038fa9fa46)

Output: image-02.jpg

![image-02](https://github.com/jimp-dev/jimp/assets/169298/a14d628a-6511-4b1d-a659-53dbfa5e4daf)

## Context

- Jimp Version: 0.22.10
- Operating System: macOS 13.15.2
- Node version: 18.16.0

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.