cleanup
file in git which should be blocked, also TODO note
This commit is contained in:
parent
f9b8e0d88f
commit
359ce3208e
6
TODO
6
TODO
@ -3,6 +3,12 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
- add vips_init_argv() which processes argc/argv for you? handy for tiny
|
||||||
|
progs, perhaps
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- im_copy() would be useful
|
- im_copy() would be useful
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,18 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# shrink to a target width
|
|
||||||
|
|
||||||
# default prefix
|
|
||||||
VIPSHOME=${VIPSHOME-/home/john/vips}
|
|
||||||
|
|
||||||
name=$0
|
|
||||||
bname=`basename $0`
|
|
||||||
|
|
||||||
if [ $# != 3 ]; then
|
|
||||||
echo "${bname}: usage: $bname <in> <out> <target width>"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
inwidth=`$VIPSHOME/bin/vips im_header_int Xsize $1`
|
|
||||||
factor=`(echo scale=10; echo $inwidth / $3) | bc`
|
|
||||||
|
|
||||||
$VIPSHOME/bin/vips im_shrink $1 $2 $factor $factor
|
|
Loading…
Reference in New Issue
Block a user