Compresser un lot de Jpeg à 75 % avec imagemagick sous Windows
magick mogrify -quality 75% *.jpg
magick mogrify -quality 75% *.jpg
;; get Imagemagick : https://imagemagick.org/script/download.php
;; and cd in your dir
;; Crops all JPG to 688x289 px, starting from x=1 and y=156 px.
for /f "tokens=*" %G in ('dir /b/s "*.jpg"') do mogrify -crop 688x289+1+156 "%G"
# for /L %i in (0, 1, 100) DO ( echo %i>>file.txt)
Get-Content .\liste.txt | Get-Random -Count 10 > .\new_liste.txt
#!/bin/bash
SIZE=`zenity --scale --text "Pourcetage de réduction :" --value=50 --min-value=5 --max-value=100 --step=1`;
QUALITY=`zenity --scale --text "Pourcentage de conpression JPEG :" --value=85 --min-value=5 --max-value=100 --step=1`;
for i in *.JPG
do
convert -strip -interlace Plane -quality $QUALITY -resize $SIZE% "$i" "$i";
done
for i in *.jpg
do
convert -strip -interlace Plane -quality $QUALITY -resize $SIZE% "$i" "$i";
done
notify-send --icon="info" "Toutes les conversion sont terminée !" ":-)";