jimp-dev / jimp-dev/gifwrap

Editing gif frames with Jimp -> The value of "offset" is out of range

Open
#24 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
77
Forks
18
PR merge metrics
No merged PRs in 30d

Description

Using this gif with the code below https://media1.giphy.com/media/HnKSuvC39SdOM/source.gif

I am getting this error on GifUtil.write():
> RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 and <= 43818. Received 43820

Is this a bug or am I doing something wrong? I'm trying to downsize the gif to 160x160px.

```
var filePath = "pathtofile.gif"

await GifUtil.read(filePath)
.then(async inputGif => {
//Loop through each frame
for (var i=0; i

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.