Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 68805a6

Browse files
authored
Merge pull request #20 from IniterWorker/patch-1
Update README.md
2 parents 3246dd8 + d8d9785 commit 68805a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Will decode a buffer or typed array into a `Buffer`;
2222
var jpeg = require('jpeg-js');
2323
var jpegData = fs.readFileSync('grumpycat.jpg');
2424
var rawImageData = jpeg.decode(jpegData);
25-
console.log(jpegData.data);
25+
console.log(rawImageData);
2626
/*
2727
{ width: 320,
2828
height: 180,
@@ -37,7 +37,7 @@ To decode directly into a `Uint8Array`, pass `true` as the second argument to
3737
var jpeg = require('jpeg-js');
3838
var jpegData = fs.readFileSync('grumpycat.jpg');
3939
var rawImageData = jpeg.decode(jpegData, true); // return as Uint8Array
40-
console.log(jpegData.data);
40+
console.log(rawImageData);
4141
/*
4242
{ width: 320,
4343
height: 180,

0 commit comments

Comments
 (0)