From 244ad1d73e90823281e5116a3aed5ea6ee0d5128 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 3 Nov 2017 18:32:01 +0800 Subject: Delete unused scripts --- cli/jpegs2pdf.sh | 42 ------------------------------------------ cli/png2gif.sh | 11 ----------- 2 files changed, 53 deletions(-) delete mode 100755 cli/jpegs2pdf.sh delete mode 100644 cli/png2gif.sh (limited to 'cli') diff --git a/cli/jpegs2pdf.sh b/cli/jpegs2pdf.sh deleted file mode 100755 index 6d42bab..0000000 --- a/cli/jpegs2pdf.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh -# -############################################################################# -# -# Shellscript to convert a set of JPEG files to a multipage PDF. -# -# Requirements: (1) Ghostscript needs to be installed on the local system. -# (2) ImageMagick needs to be installed on the local system. -# -# Usage: jpegs2pdf.sh output.pdf file1.jpeg [file2.jpeg [file2.jpeg [...]]] -# -# Copyright (c) 2007, -# Use, distribute and modify without any restrictions. -# -# Versions: -# v1.0.0, Jul 12 2007: initial version -# v1.0.1, Jan 07 2011: set viewJPEG.ps path (self-compiled GS 9.02) -# -############################################################################# - -if [ $# -eq 0 ]; then - echo "Usage:" - echo " `basename $0` output.pdf 1.jpg ..." - exit 1 -fi - -outfile=$1 -shift - -param="" -for i in "$@" ; do - dimension=$(identify -format "%[fx:(w)] %[fx:(h)]" "${i}") - param="${param} <> setpagedevice (${i}) viewJPEG showpage" -done - -gs \ - -sDEVICE=pdfwrite \ - -dPDFSETTINGS=/prepress \ - -o "$outfile" \ - viewjpeg.ps \ - -c "${param}" - diff --git a/cli/png2gif.sh b/cli/png2gif.sh deleted file mode 100644 index 1357be3..0000000 --- a/cli/png2gif.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -#convert ???.png -background white -alpha remove -resize 50% -layers optimize -delay 5 -loop 0 simu.gif - -[ ! -d gifs ] && mkdir gifs - -for f in ???.png; do - convert $f -trim -resize 50% gifs/${f%.png}.gif -done -gifsicle --delay=5 --loop --colors=256 --optimize=3 gifs/???.gif > simu.gif - -- cgit v1.2.2