From: Radek Czajka Date: Tue, 22 Feb 2011 09:25:04 +0000 (+0100) Subject: tiff2png fix for .tif files X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/c90765fe23c28ef7d482d448d336dd5aa1736608?hp=bb419480f85e3ba6bfe147a6f05a1fc265b5592a tiff2png fix for .tif files --- 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"