summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2022-08-04 08:02:50 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2022-08-04 08:02:50 +0530
commitce09a55db0752021da343788e4a0dbfbaa1d958f (patch)
tree75ffe31f83594a4eb1b131b52fcfb69bd156241e
parent90e0a07bfb63fcfdeb6791d0f5d4586af55b4ee1 (diff)
addition of picconv and pdfpicconv script
-rwxr-xr-x[-rw-r--r--].scripts/order0
-rwxr-xr-x.scripts/pdfpicconv3
-rwxr-xr-x.scripts/pic-conv11
-rwxr-xr-xboot/grub/grubenv3
4 files changed, 14 insertions, 3 deletions
diff --git a/.scripts/order b/.scripts/order
index aba3e71..aba3e71 100644..100755
--- a/.scripts/order
+++ b/.scripts/order
diff --git a/.scripts/pdfpicconv b/.scripts/pdfpicconv
new file mode 100755
index 0000000..8b7a551
--- /dev/null
+++ b/.scripts/pdfpicconv
@@ -0,0 +1,3 @@
+#!/bin/sh
+output=$(echo $1 | cut -d. -f1)
+pdftoppm -jpeg -r 300 $1 $output.jpg
diff --git a/.scripts/pic-conv b/.scripts/pic-conv
new file mode 100755
index 0000000..117292e
--- /dev/null
+++ b/.scripts/pic-conv
@@ -0,0 +1,11 @@
+#!/bin/sh
+## Simple shellscript to convert png images to jpg and vice versa in a given folder
+
+if [[ "$1" = "-j" ]]; then
+ find . -name "*.png" -exec mogrify -format jpg {} \;
+elif [[ "$1" = "-p" ]]; then
+ find . -name "*.jpg" -exec mogrify -format png {} \;
+else
+ echo "Use correct flags!" && exit
+fi
+
diff --git a/boot/grub/grubenv b/boot/grub/grubenv
deleted file mode 100755
index a77303c..0000000
--- a/boot/grub/grubenv
+++ /dev/null
@@ -1,3 +0,0 @@
-# GRUB Environment Block
-# WARNING: Do not edit this file by tools other than grub-editenv!!!
-################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################## \ No newline at end of file