-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentrypoint.sh
More file actions
executable file
·73 lines (53 loc) · 1.79 KB
/
Copy pathentrypoint.sh
File metadata and controls
executable file
·73 lines (53 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
apk add curl
mkdir /imagemagick /test
cd /imagemagick
cp /imagemagick.tar.gz .
# unzip imagemagick.zip
tar -xvf imagemagick.tar.gz
echo "apk add repo"
apk add --repository /imagemagick imagemagick-custom --allow-untrusted
sleep 5
echo "execute download"
cd /test
imageName="image"
curl -L -O https://www.programmfabrik.de/wp-content/uploads/2018/08/Logo_edb_pf_c.png
mv Logo_edb_pf_c.png $imageName.png
apk add potrace
echo "execute convert"
# let's convert a few images and test if format works
convert $imageName.png -resize 100x100 $imageName.jpg
convert $imageName.png -resize 100x100 $imageName.jpeg
convert $imageName.png -resize 100x100 $imageName.tif
convert $imageName.png -resize 100x100 $imageName.tiff
convert $imageName.png -resize 100x100 $imageName.png
convert $imageName.png -resize 100x100 $imageName.jp2
convert $imageName.png -resize 100x100 $imageName.gif
convert $imageName.png -resize 100x100 $imageName.webp
convert $imageName.png -resize 100x100 $imageName.psd
convert $imageName.png -resize 100x100 $imageName.ico
convert $imageName.png -resize 100x100 $imageName.bmp
convert $imageName.png -resize 100x100 $imageName.eps
convert $imageName.png -resize 100x100 $imageName.ai
convert $imageName.png -resize 100x100 $imageName.ppm
convert $imageName.png -resize 100x100 $imageName.heic
convert $imageName.png -resize 100x100 $imageName.svg
sleep 10
identify $imageName.jpg
identify $imageName.jpeg
identify $imageName.tif
identify $imageName.tiff
identify $imageName.png
identify $imageName.jp2
identify $imageName.gif
identify $imageName.webp
identify $imageName.psd
identify $imageName.ico
identify $imageName.bmp
identify $imageName.eps
identify $imageName.ai
identify $imageName.ppm
identify $imageName.heic
identify $imageName.svg
sleep 60
echo "execute watch"
watch -n 1 echo world