File tree 2 files changed +49
-0
lines changed 2 files changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ started 7.33.0 14/3/13
2
2
- start new cycle!
3
3
4
4
started 7.32.2 12/3/13
5
+ - add a test for seq mode
5
6
6
7
started 7.32.1 7/3/13
7
8
- remove "fred" from dist
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # set -x
4
+
5
+ top_srcdir=$1
6
+ tmp=$top_srcdir /test/tmp
7
+ test_images=$top_srcdir /test/images
8
+ image=$test_images /slanted_oval_vase2.jpg
9
+
10
+ # make a large PNG, roughly the size of Chicago.png
11
+ echo -n " building huge test PNG image ... "
12
+ vips replicate $image $tmp /huge.png 80 8
13
+ echo " ok"
14
+
15
+ huge=$tmp /huge.png
16
+
17
+ echo -n " testing vipsthumbnail ... "
18
+ rm $tmp /x.png
19
+ vipsthumbnail $huge -o $tmp /x.png
20
+ if ! header $tmp /x.png & > /dev/null ; then
21
+ echo " vipsthumbnail failed in basic mode"
22
+ exit 1
23
+ fi
24
+ echo " ok"
25
+
26
+ if [ ! -d $tmp /readonly ] ; then
27
+ mkdir $tmp /readonly
28
+ chmod ugo-wx $tmp /readonly
29
+ fi
30
+ export TMPDIR=$tmp /readonly
31
+
32
+ echo -n " testing vipsthumbnail does not make temps ... "
33
+ rm $tmp /x.png
34
+ vipsthumbnail $huge -o $tmp /x.png
35
+ if ! header $tmp /x.png & > /dev/null ; then
36
+ echo " vipsthumbnail made a temp"
37
+ exit 1
38
+ fi
39
+ echo " ok"
40
+
41
+ echo -n " testing shrink does not make temps ... "
42
+ rm $tmp /x.png
43
+ vips shrink $huge $tmp /x.png 230 230
44
+ if ! header $tmp /x.png & > /dev/null; then
45
+ echo " shrink made a temp"
46
+ exit 1
47
+ fi
48
+ echo " ok"
You can’t perform that action at this time.
0 commit comments