Skip to content

Instantly share code, notes, and snippets.

View frutality's full-sized avatar

Alexander Yaskevich frutality

View GitHub Profile
@frutality
frutality / ImageTools.es6
Last active January 15, 2019 06:48 — 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 {