|
|
|
@ -20,8 +20,8 @@ input_w=`echo $size | sed -e 's;x.*$;;'`
|
|
|
|
|
input_h=`echo $size | sed -e 's;^.*x;;'` |
|
|
|
|
|
|
|
|
|
# calculate new size |
|
|
|
|
output_w=`(echo "scale = 0"; echo "$input_w * $scale" ) | @l_prefix@/bin/bc - | sed -e 's;\..*;;'` |
|
|
|
|
output_h=`(echo "scale = 0"; echo "$input_h * $scale" ) | @l_prefix@/bin/bc - | sed -e 's;\..*;;'` |
|
|
|
|
output_w=`(echo "scale = 0"; echo "$input_w * $scale" ) | @l_prefix@/bin/bc | sed -e 's;\..*;;'` |
|
|
|
|
output_h=`(echo "scale = 0"; echo "$input_h * $scale" ) | @l_prefix@/bin/bc | sed -e 's;\..*;;'` |
|
|
|
|
|
|
|
|
|
# perform resizing with the help of Ghostscript |
|
|
|
|
@l_prefix@/bin/gs \ |
|
|
|
|