X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/18ccc90cf0522b8aa305fde9567c839d605eb788..f42848b5995d52b1812131c197553a821dfb7e16:/scripts/tiff2png diff --git a/scripts/tiff2png b/scripts/tiff2png index 61b00b7b..054908c0 100755 --- a/scripts/tiff2png +++ b/scripts/tiff2png @@ -9,7 +9,7 @@ # Pliki wyjściowe zapisywane są obok plików źródłowych, z rozszerzeniem # zmienionym na .png. -find . -iname '*.tiff' -print0 | while read -d $'\0' file +find . -iregex '.*\.tiff?' -print0 | while read -d $'\0' file do echo "$file" convert "$file" -depth 7 -resize 640x960 png:- | pngnq -n 128 -s 1 > "${file%.tiff}.png"