fix config imagemagick path in config
This commit is contained in:
parent
ae4f6e4b93
commit
03048a9a82
6 changed files with 39 additions and 1 deletions
|
@ -4,5 +4,5 @@ mkdir tmp
|
||||||
mkdir out
|
mkdir out
|
||||||
for %%f in (*.tif) do (
|
for %%f in (*.tif) do (
|
||||||
echo resize: %%f
|
echo resize: %%f
|
||||||
convert %%f -resize 50%% -filter Gaussian ./tmp/_%%f
|
magick convert %%f -resize 50%% -filter Gaussian ./tmp/_%%f
|
||||||
echo invert
|
echo invert
|
2
presets/default_oldversion/post.cmd
Normal file
2
presets/default_oldversion/post.cmd
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
)
|
||||||
|
pause
|
5
presets/default_oldversion/post.sh
Normal file
5
presets/default_oldversion/post.sh
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "All done. Your converted files can be found here: $OUTDIR , exiting."
|
||||||
|
read -p "Press Enter" TMP
|
||||||
|
exit 0
|
8
presets/default_oldversion/pre.cmd
Normal file
8
presets/default_oldversion/pre.cmd
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
@echo off
|
||||||
|
setlocal enabledelayedexpansion
|
||||||
|
mkdir tmp
|
||||||
|
mkdir out
|
||||||
|
for %%f in (*.tif) do (
|
||||||
|
echo resize: %%f
|
||||||
|
magick convert %%f -resize 50%% -filter Gaussian ./tmp/_%%f
|
||||||
|
echo invert
|
23
presets/default_oldversion/pre.sh
Normal file
23
presets/default_oldversion/pre.sh
Normal file
|
@ -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 ..."
|
BIN
scaninverter.jar
BIN
scaninverter.jar
Binary file not shown.
Loading…
Add table
Reference in a new issue