Changeset 123022 in spip-zone


Ignore:
Timestamp:
Mar 20, 2020, 11:19:26 PM (3 weeks ago)
Author:
root
Message:

attention aux espaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/convertisseur/trunk/scripts/optimg.sh

    r123021 r123022  
    1515compress=${4-0} # 0 par défaut
    1616dest="${3-0}"
    17 
    18 echo "$nom"
    19 echo "resize $resize"
    20 echo "compress $compress"
    21 echo "dest $dest"
    22 exit
    2317
    2418# resize ?
     
    4741        #echo "\nOptimisation ($ext) de $1${l}${d}"
    4842        echo "convert ${r}-strip -interlace Plane ${opt}$1 $filename.jpg"
    49         convert ${r}-strip -interlace Plane ${opt}"$1" "$filename.jpg"
     43        convert "${r}-strip" -interlace Plane ${opt}"$1" "$filename.jpg"
    5044       
    5145        # pas de dest, on ecrase le fichier input avec sa version optimisée
     
    5650                ext="${1##*.}"
    5751                dest="${filename}${suffixe}.$ext"
    58                 echo "\nOptimisation de $1 vers >> $dest <<<"
     52                echo "\nOptimisation de $1 vers $dest"
    5953                echo "convert ${r}-strip -interlace Plane ${opt}${1} ${dest}"
    6054                convert "${r}-strip" -interlace Plane"${opt}" "${1}" "${dest}"
Note: See TracChangeset for help on using the changeset viewer.