diff --git a/img-downscale-rgb.sh b/img-downscale-rgb.sh old mode 100755 new mode 100644 index 3defeb19396cc9ab807bae5fc7876a0679729b56..f9f84374a25dabd871ac9ef76d36c669694da81f --- a/img-downscale-rgb.sh +++ b/img-downscale-rgb.sh @@ -15,9 +15,9 @@ input="$3" output="$4" tmpfile="${XDG_RUNTIME_DIR}/tmp_view_$(basename ${3})_$( cat /dev/urandom | tr -cd '[[:alnum:]]' | head -c10 ).png" -time convert "${input}" -sample $(( width * 3 ))x$((height * 3 ))\! \ -channel Red -morphology Convolve '3x1: 0, 0, 1' \ -channel Blue -morphology Convolve '3x1: 1, 0, 0' \ +env time -f '%E' convert "${input}" -sample $(( width * 3 ))x$((height * 3 ))\! \ -sample ${width}x${height}\! \ -depth 16 -quality 100 -sampling-factor 1x1 "${tmpfile}" diff --git a/img-fft-resynth.sh b/img-fft-resynth.sh index 9ef276781ae5440385cbbfc0b599b524260a6702..eaa8ae82ab7d26eea97d4392d3a409942656d9fe 100755 --- a/img-fft-resynth.sh +++ b/img-fft-resynth.sh @@ -13,7 +13,7 @@ help() { printf '%s\n' "Usage: $( basename $0) [--width PIXELS] [--height PIXELS] [--depth BITS] [--bands INTEGER] [--tmpdir PATH] INPUT_FILE OUTPUT_FILE" } -TIMER="time -f '%E'" +TIMER="env time -f '%E'" check_arg_missing=' if ! shift || [ -z "$*" ] ; then