summaryrefslogtreecommitdiffstats
path: root/img2pdf-a4paper
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-09-13 11:43:19 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-09-13 11:43:19 +0200
commit9949ce6fc51c37129c3b390a0715a8945cacc16a (patch)
tree88b6ca4a1b39dfaff41c6dd570c89b3d328861ca /img2pdf-a4paper
parentba38291a468363fe3267313b760ae0522616254b (diff)
downloadbin-9949ce6fc51c37129c3b390a0715a8945cacc16a.tar.gz
bin-9949ce6fc51c37129c3b390a0715a8945cacc16a.tar.xz
add new scripts
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'img2pdf-a4paper')
-rwxr-xr-ximg2pdf-a4paper6
1 files changed, 6 insertions, 0 deletions
diff --git a/img2pdf-a4paper b/img2pdf-a4paper
new file mode 100755
index 0000000..53ae267
--- /dev/null
+++ b/img2pdf-a4paper
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+jpeg_quality=70
+jpeg_size=1500x1500
+time=$(date +%Y-%m-%d_%H%M%S)
+convert "$@" -resize $jpeg_size -compress jpeg -quality $jpeg_quality -density 72x72 -repage 595x842 "${time}.pdf"