jimp-dev/jimp

Efficient clone + crop (or contain)

Open

#847 geöffnet am 24. Feb. 2020

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (785 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (13.218 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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