Ajuste correcto mime-type
This commit is contained in:
parent
57e09128f5
commit
f8ee24ef1e
1 changed files with 1 additions and 1 deletions
2
jpg2webp
2
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
|
||||
|
|
Loading…
Reference in a new issue