Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created January 22, 2022 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/40f58b6896ebd2326bd789d2fe9067c9 to your computer and use it in GitHub Desktop.
Save parzibyte/40f58b6896ebd2326bd789d2fe9067c9 to your computer and use it in GitHub Desktop.
const archivo = $imagen.files[0];
const blob = await comprimirImagen(archivo, parseInt($calidad.value));
$imagenPrevisualizar.src = URL.createObjectURL(blob);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment