From f8ee24ef1e29b1ce5774d7435c79729fb0ab0012 Mon Sep 17 00:00:00 2001 From: luisgulo Date: Tue, 13 Jun 2023 01:39:35 +0200 Subject: [PATCH] Ajuste correcto mime-type --- jpg2webp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jpg2webp b/jpg2webp index f3f150a..8fb966e 100755 --- a/jpg2webp +++ b/jpg2webp @@ -17,7 +17,7 @@ function Tipo { IMAGEN=$1 # Comprobar tipo fichero TIPO=$(mimetype $IMAGEN |awk -F '/' '{print $2}') - if [ $TIPO != "jpg" ] + if [ $TIPO != "jpeg" ] then echo -e "${ROJO}ERROR:${NORMAL} $ORIGEN No es una imagen ${AZUL}JPG${NORMAL}" return 1