-
-
Save parzibyte/ce68fe8ecb9be8a9481e856f8b5c2cd7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const archivo = $imagen.files[0]; | |
const blob = await comprimirImagen(archivo, parseInt($calidad.value)); | |
const url = URL.createObjectURL(blob); | |
const enlace = document.createElement("a"); | |
enlace.href = url; | |
enlace.download = "Imagen comprimida.jpg"; | |
enlace.click(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment