commit 45354b7c854d80ef9d8ab7d3f08caed9cbd2c579 Author: interfisch Date: Mon Jun 26 19:03:10 2017 +0200 Add script presets diff --git a/config.cfg b/config.cfg new file mode 100644 index 0000000..7466e79 --- /dev/null +++ b/config.cfg @@ -0,0 +1,3 @@ +loaddir:: +imagemagick:: +scriptpreset::default \ No newline at end of file diff --git a/grauverlauf_filmtest.png b/grauverlauf_filmtest.png new file mode 100644 index 0000000..ba82afe Binary files /dev/null and b/grauverlauf_filmtest.png differ diff --git a/presets/default/post.cmd b/presets/default/post.cmd new file mode 100644 index 0000000..6b2127d --- /dev/null +++ b/presets/default/post.cmd @@ -0,0 +1,2 @@ +) +pause \ No newline at end of file diff --git a/presets/default/post.sh b/presets/default/post.sh new file mode 100644 index 0000000..ae7b3a8 --- /dev/null +++ b/presets/default/post.sh @@ -0,0 +1,5 @@ +done + +echo "All done. Your converted files can be found here: $OUTDIR , exiting." +read -p "Press Enter" TMP +exit 0 diff --git a/presets/default/pre.cmd b/presets/default/pre.cmd new file mode 100644 index 0000000..64ce0c3 --- /dev/null +++ b/presets/default/pre.cmd @@ -0,0 +1,8 @@ +@echo off +setlocal enabledelayedexpansion +mkdir tmp +mkdir out +for %%f in (*.tif) do ( + echo resize: %%f + convert %%f -resize 50%% -filter Gaussian ./tmp/_%%f + echo invert \ No newline at end of file diff --git a/presets/default/pre.sh b/presets/default/pre.sh new file mode 100644 index 0000000..fed2c8d --- /dev/null +++ b/presets/default/pre.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +# create tempdir +TMPDIR=$(mktemp -d) + + +# some lines of custom config for fisch: +############### +#CURDIR=$(pwd) +#TMPDIR=$(mktemp -d -p $CURDIR/.tmp) +#mkdir $TMPDIR +############### + +# set some vars +OUTDIR="$TMPDIR/out" + +# make some dirs +mkdir $OUTDIR > /dev/null + +for F in $(ls -A1 | grep ".tif$"); do + echo "resizing $F ..." + convert $F -resize 50% -filter Gaussian $TMPDIR/_$F + echo "inverting $F ..." diff --git a/scaninverter.jar b/scaninverter.jar new file mode 100644 index 0000000..cef7d8b Binary files /dev/null and b/scaninverter.jar differ