My REM sleep dreams are often less ambitious, than your real world
coding contributions
http://www.mathworks.com/help/images/ref/imresize.html
Would this type of command do for downscaling?
Cheers
Code: Select all
#! /bin/bash
function downscale() {
file="$1"
tmp=$(mktemp /tmp/XXXXXXXXX.png)
original_size=$(identify "$file" | cut -f 3 -d ' ')
x=$(echo $original_size | sed 's/\(.*\)x.*/\1/')
y=$(echo $original_size | sed 's/.*x\(.*\)/\1/')
size=$((x / 2))x$((y / 2))
echo converting "$file" from $original_size to $size
convert "$file" -scale $size "$tmp"
mv "$tmp" "$file"
}
function downscaleProduct() {
for file in $(find .u-he/"$1"/Data/Images/ -type f -iname '*.png')
do
downscale "$file"
done
}
downscaleProduct Presswerk
Thanks!Drumfix wrote:Massive improvement with 3466. Presswerk and Hive are down to about 20%.
Great work.
Since you are apparently using Cairo for drawing, i might suggest a few
improvements that could get it down to about 1-3%.
Agree++Drumfix wrote: Great work.
I added an option --no-presetsPsychotronic wrote:@abique:
I know that this might sound like a strange request, but would it be possible to add a flag or something to the installer that tells it, to only install the software and the initialize preset and leave out the rest of the other presets. I do not like presets in any way, so i normally delete all of them for any kind of software or hardware i use. Now i have to do this every time you update the this software stack.
Code: Select all
if test "$NO_PRESETS" -eq 1 ; then
find "$HOME/.u-he/$PRODUCT/Presets/$PRODUCT/" \
\( -type f -a -iname '*.h2p' -a -not -iname 'initialize.h2p' -a -delete \) \
-o \( -empty -a -delete \)
fiSubmit: News, Plugins, Hosts & Apps | Advertise @ KVR | Developer Account | About KVR / Contact Us | Privacy Statement
© KVR Audio, Inc. 2000-2026