Great example, although similar cli scaling can be done with about 3 lines using something like exactimage:big_bass wrote:Hey vovchik
fast and small
what more can you want and
compiled it in bacon
I can see many good apps to follow from you
thanks for posting the app and the source
Joe
example: 'scale old.png new.png 16'
note: econvert also has --quality, which could be the fourth argument
Code: Select all
#!/bin/sh
OldSize=`edentify $1 | cut -d"x" -f1 | cut -d" " -f3`
size=`dc $3 $OldSize / p`
econvert -i $1 --scale $size -o $2