-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcrop
executable file
·37 lines (31 loc) · 938 Bytes
/
crop
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
#!/bin/bash
for f in screenshots/*-*-1.png; do
outf="${f//screenshots\//out/}"
outf="${outf//-1.png/-screenshot-1.png}"
gm convert $f -crop 1280x800+0+0 $outf
done
for f in screenshots/*-*-2.png; do
outf="${f//screenshots\//out/}"
outf="${outf//-2.png/-screenshot-2.png}"
gm convert $f -crop 1280x800+1280+0 $outf
done
for f in screenshots/*-*-3.png; do
outf="${f//screenshots\//out/}"
outf="${outf//-3.png/-screenshot-3.png}"
gm convert $f -resize 1280x800 $outf
done
for f in screenshots/*-*-3.png; do
outf="${f//screenshots\//out/}"
outf="${outf//-3.png/-tile-small.png}"
gm convert $f -crop 440x280+0+0 $outf
done
for f in screenshots/*-*-3.png; do
outf="${f//screenshots\//out/}"
outf="${outf//-3.png/-tile-large.png}"
gm convert $f -crop 920x680+0+0 $outf
done
for f in screenshots/*-*-3.png; do
outf="${f//screenshots\//out/}"
outf="${outf//-3.png/-marquee.png}"
gm convert $f -crop 1400x560+0+0 $outf
done