add default preset
This commit is contained in:
parent
1b25cb9517
commit
64426bd2e8
|
@ -1,3 +1,2 @@
|
|||
preview.jpg
|
||||
config.cfg
|
||||
presets/*
|
||||
|
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue