This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Reduce the size of a PDF file | |
# https://askubuntu.com/a/256449/112818 | |
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output_reduced.pdf input.pdf | |
# Convert a PDF to grayscale colour | |
# https://superuser.com/a/164857/989263 | |
gs \ | |
-sOutputFile=output_gray.pdf \ | |
-sDEVICE=pdfwrite \ | |
-sColorConversionStrategy=Gray \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
dir=$(pwd) | |
(cd $1 | |
mkdir -p output | |
for i in * | |
do | |
output="output/$(echo $i | sed 's/\..*$/\.mp4/')" |
OlderNewer