From acc4192394726a1cff1e86fcd10f1b00cf5deaa5 Mon Sep 17 00:00:00 2001 From: ache Date: Tue, 13 Jun 2017 19:24:17 +0000 Subject: convert is bad --- img2pdf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/img2pdf.sh b/img2pdf.sh index cdf3f96..a3c9a19 100755 --- a/img2pdf.sh +++ b/img2pdf.sh @@ -13,7 +13,7 @@ fi for img in $( echo `ls -v | egrep \."$ext"$` ) ; do echo Traitement de "$img" - convert "$img" "${img:0:-$(( 1 + ${#ext})) }.pdf" + img2pdf --output "${img//$ext/pdf}" "$img" done; if [ -e "$out" ] ; then -- cgit v1.2.3