Skip to content

Commit

Permalink
Merge pull request #21 from fahimk/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
jtlapp committed Jul 27, 2019
2 parents 027ff06 + b11e0f4 commit da9b9ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -68,7 +68,7 @@ GIFs do not support partial transparency, so within `frame.bitmap.data`, pixels
const { GifUtil } = require('gifwrap');
GifUtil.read("fancy.gif").then(inputGif => {

inputGif.frames.foreach(frame => {
inputGif.frames.forEach(frame => {

const buf = frame.bitmap.data;
frame.scanAllCoords((x, y, bi) => {
Expand Down Expand Up @@ -139,10 +139,10 @@ const Jimp = require('jimp');
const j = new Jimp(200, 100, 0xFFFFFFFF);

// create a frame clone of a Jip bitmap
const fCopied = new GifFrame(new BitmapImage(j));
const fCopied = new GifFrame(new BitmapImage(j.bitmap));

// create a frame that shares a bitmap with Jimp (one way)
const fShared1 = new GifFrame(j);
const fShared1 = new GifFrame(j.bitmap);

// create a frame that shares a bitmap with Jimp (another way)
const fShared2 = new GifFrame(1, 1, 0); // any GifFrame
Expand Down

0 comments on commit da9b9ca

Please sign in to comment.