jimp-dev / jimp-dev/jimp

Efficient clone + crop (or contain)

Open
#847 0 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
TypeScript
Stars
14.7k
Forks
777
PR merge metrics
No merged PRs in 30d

Description

# Expected Behavior

Working on a Video Stream at 15fps I need to crop a part of each frame then resize it into a canvas using crop() or contain() that use crop underlaying

# Current Behavior

It works but it use about 100ms to process a 720P video.

# Failure Information (for bugs)

Not sure if it's a bug or a feature.

Actually I have to perform `img.clone().crop()` whereas it might be more efficient to add an option to crop() into a new image (the code would gather only the relevant pixels) ?

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.