Open DetachHead opened 3 years ago
nevermind, turns out it's in GifFrame
and was losing the GifFrameOptions
here in my code
frames = image.frames.map(frame =>
new GifFrame(
(GifUtil.copyAsJimp(Jimp, frame) as Jimp).scaleToFit(maxSize, maxSize).bitmap,
frame
)
)
because of this check in its constructor:
is that meant to be there? there's no constructor type that would imply such behavior:
constructor(bitmap: JimpBitmap, options?: GifFrameOptions);
constructor(bitmapImage: BitmapImage, options?: GifFrameOptions);
constructor(width: number, height: number, buffer: Buffer, options?: GifFrameOptions);
constructor(width: number, height: number, backgroundRGBA?: number, options?: GifFrameOptions);
constructor(frame: GifFrame);
would be good to be able to read and write frame delay, as
Omggif
supports it