aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2017-06-13 19:24:17 +0000
committerache <ache@ache.one>2017-06-13 19:24:17 +0000
commitacc4192394726a1cff1e86fcd10f1b00cf5deaa5 (patch)
tree37f4724f2083880894a824fe72b7d1f67b6544fc
parentcoWifi is now exectuted by bash only (diff)
convert is bad
-rwxr-xr-ximg2pdf.sh2
1 files changed, 1 insertions, 1 deletions
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