Skip to content

Instantly share code, notes, and snippets.

View Devalo's full-sized avatar
💭
:D

Stephan Bakkelund Valois Devalo

💭
:D
  • Tønsberg, Norway
View GitHub Profile
@dcollien
dcollien / ImageTools.es6
Last active April 28, 2023 09:00
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 {