jimp-dev / jimp-dev/jimp

Converted .BMP to .JPG has repeated edges

Open
#1,264 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
14.7k
Forks
777
PR merge metrics
No merged PRs in 30d

Description

# Expected Behavior

I want the output image to look EXACTLY like the input image, just a different extension type. I want to convert from .BMP to .JPG

# Current Behavior

The right edge of the input is repeated at the left of the output, see images below

# Failure Information (for bugs)

I believe it's a bug

## Steps to Reproduce

const Jimp=require('jimp')
Jimp.read('input.bmp',(err,image)=>{image.write('output.jpg')})

**Screenshots**

Original .BMP input:
![sodapdf-converted](https://github.com/jimp-dev/jimp/assets/100953560/142426da-c83a-4a34-8bbc-d97104bf7337)

Converted .JPG output:
![sample_ 1920×1280](https://github.com/jimp-dev/jimp/assets/100953560/13810a1a-5b42-4d73-9f38-367449ec1981)

- Jimp Version: latest
- Operating System: Windows 10
- Node version: 14

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.