Skip to content

Instantly share code, notes, and snippets.

View KesleyDavid's full-sized avatar
🏠
Working from home

Kesley David KesleyDavid

🏠
Working from home
View GitHub Profile
@KesleyDavid
KesleyDavid / ImageTools.es6
Created July 30, 2021 21:34 — 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 {