This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const testPng = fs.readFileSync('input.png'); | |
// ===== crc-32 ============================================== | |
// https://github.com/SheetJS/js-crc32/blob/master/crc32.js | |
function signed_crc_table() { | |
var c = 0, table = new Array(256); | |
for(var n =0; n != 256; ++n){ | |
c = n; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import os | |
import boto3 | |
class S3MultipartUpload(object): | |
# AWS throws EntityTooSmall error for parts smaller than 5 MB | |
PART_MINIMUM = int(5e6) |