Skip to content

Instantly share code, notes, and snippets.

Sceptero

Block or report user

Report or block Sceptero

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View index.js
const extract = require('png-chunks-extract');
const fs = require('fs');
const zlib = require('zlib');
const chunks = extract(fs.readFileSync(process.argv[2]));
const ihdr = chunks[0].data;
const idat = chunks[1].data;
const width = (ihdr[0] << 24) + (ihdr[1] << 16) + (ihdr[2] << 8) + ihdr[3];
const blocksize = width * 3 + 1;
You can’t perform that action at this time.