add default preset

This commit is contained in:
interfisch 2023-02-17 14:06:57 +01:00
parent 1b25cb9517
commit 64426bd2e8
3 changed files with 40 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,3 +1,2 @@
preview.jpg preview.jpg
config.cfg config.cfg
presets/*

View File

@ -0,0 +1,11 @@
@echo off
setlocal enabledelayedexpansion
mkdir tmp
mkdir out
for %%f in (*.tif) do (
echo resize: %%f
<IMAGEMAGICK> <IMTOOL> %%f -resize 50%% -filter Gaussian ./tmp/_%%f
echo invert
<IMAGEMAGICK> <IMTOOL> <IMPARAMETERS>
)
pause

29
presets/default/preset.sh Normal file
View File

@ -0,0 +1,29 @@
#!/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 ..."
<IMAGEMAGICK> <IMTOOL> $F -resize 50% -filter Gaussian $TMPDIR/_$F
echo "inverting $F ..."
<IMAGEMAGICK> <IMTOOL> <IMPARAMETERS>
done
echo "All done. Your converted files can be found here: $OUTDIR , exiting."
read -p "Press Enter" TMP
exit 0