Skip to content

Commit

Permalink
Revert "fix: Disable palette remapping for animated GIFs"
Browse files Browse the repository at this point in the history
This reverts commit ea821d5.
  • Loading branch information
yegor-pelykh committed Apr 12, 2024
1 parent 436ca98 commit ba9d55c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/formats/gif-decoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,6 @@ export class GifDecoder implements Decoder {
if (frame.disposal === 2) {
nextImage.clear(colorMap.getColor(this._info.backgroundColor!.r));
} else if (frame.disposal !== 3) {
/*
const nextBytes = nextImage.toUint8Array();
const lastBytes = lastImage.toUint8Array();
const lp = lastImage.palette!;
Expand All @@ -739,7 +738,6 @@ export class GifDecoder implements Decoder {
nextBytes[i] = nc;
}
}
*/
}

nextImage.frameDuration = image.frameDuration;
Expand Down

0 comments on commit ba9d55c

Please sign in to comment.