Skip to content

Instantly share code, notes, and snippets.

View skyline-123's full-sized avatar
🎯
Focusing

skyline-123

🎯
Focusing
View GitHub Profile
@skyline-123
skyline-123 / ImageTools.es6
Created July 25, 2017 09:37 — forked from dcollien/ImageTools.es6
Resize Images in the Browser
let hasBlobConstructor = typeof(Blob) !== 'undefined' && (function () {
try {
return Boolean(new Blob());
} catch (e) {
return false;
}
}());
let hasArrayBufferViewSupport = hasBlobConstructor && typeof(Uint8Array) !== 'undefined' && (function () {
try {