Skip to content

Instantly share code, notes, and snippets.

Avatar

Alexander Yaskevich frutality

View GitHub Profile
@frutality
frutality / ImageTools.es6
Last active Jan 15, 2019 — forked from dcollien/ImageTools.es6
Resize Images in the Browser
View ImageTools.es6
let hasBlobConstructor = typeof(Blob) !== 'undefined' && (function () {
try {
return Boolean(new Blob());
} catch (e) {
return false;
}
}());
let hasArrayBufferViewSupport = hasBlobConstructor && typeof(Uint8Array) !== 'undefined' && (function () {
try {
You can’t perform that action at this time.