blob: 8a967073435c8f51d96f307c8d584fedfbee79e8 (
plain)
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
#!/bin/bash
mkdir -p /tmp/1x /tmp/2x /tmp/xx images
HEX=800x924
# - original size -
# SQUARE=896x896
# RECT=1488x752
# CIRCLE=816x816
# HEX=800x924
# - trimmed 1px border -
SQUARE=880x880
RECT=1472x736
CIRCLE=800x800
# FILTER="-filter triangle
# UNSHARP="-unsharp 0x1+0.5"
function resize() {
B=$(basename $2)
echo $B
convert $2 -gravity Center -crop $1+0+0 +repage -colorspace RGB $FILTER -resize 12.5% $UNSHARP -colorspace sRGB images/$B
}
function crop_only() {
B=$(basename $2)
echo $B
convert tools/original/$B -gravity Center -crop $1+0+0 +repage /tmp/xx/$B
}
function resize_only() {
B=$(basename $1)
echo $B
convert $1 -colorspace RGB $FILTER -resize 12.5% $UNSHARP -colorspace sRGB images/$B
}
for F in tools/original/legion_full_*.png tools/original/legion_reduced_*.png
do
crop_only $SQUARE $F
done
montage -mode concatenate -tile 9x /tmp/xx/legion_full_*.png tools/original/legion_full.png
montage -mode concatenate -tile 9x /tmp/xx/legion_reduced_*.png tools/original/legion_reduced.png
resize_only tools/original/legion_full.png
resize_only tools/original/legion_reduced.png
resize $RECT tools/original/amphitheater.png
resize $RECT tools/original/basilica.png
resize $RECT tools/original/limes.png
resize $RECT tools/original/amphitheater_back.png
resize $RECT tools/original/basilica_back.png
resize $RECT tools/original/limes_back.png
resize $SQUARE tools/original/alamanni_active.png
resize $SQUARE tools/original/alamanni_inactive.png
resize $SQUARE tools/original/ardashir.png
resize $SQUARE tools/original/cniva.png
resize $SQUARE tools/original/cniva_back.png
resize $SQUARE tools/original/first_player.png
resize $SQUARE tools/original/franks_active.png
resize $SQUARE tools/original/franks_inactive.png
resize $SQUARE tools/original/goths_active.png
resize $SQUARE tools/original/goths_inactive.png
resize $SQUARE tools/original/militia.png
resize $SQUARE tools/original/no_place_governor.png
resize $SQUARE tools/original/nomads_active.png
resize $SQUARE tools/original/nomads_inactive.png
resize $SQUARE tools/original/rival_back.png
resize $SQUARE tools/original/rival_postumus.png
resize $SQUARE tools/original/rival_priest_king.png
resize $SQUARE tools/original/rival_zenobia.png
resize $SQUARE tools/original/sassanids_active.png
resize $SQUARE tools/original/sassanids_inactive.png
resize $SQUARE tools/original/shapur.png
resize $SQUARE tools/original/shapur_back.png
resize $SQUARE tools/original/red_emperor_turns.png
resize $SQUARE tools/original/red_general.png
resize $SQUARE tools/original/blue_emperor_turns.png
resize $SQUARE tools/original/blue_general.png
resize $SQUARE tools/original/yellow_emperor_turns.png
resize $SQUARE tools/original/yellow_general.png
resize $SQUARE tools/original/green_emperor_turns.png
resize $SQUARE tools/original/green_general.png
resize $HEX tools/original/mob.png
resize $HEX tools/original/mob_x2.png
resize $HEX tools/original/castra.png
resize $HEX tools/original/quaestor.png
resize $HEX tools/original/red_breakaway.png
resize $HEX tools/original/blue_breakaway.png
resize $HEX tools/original/yellow_breakaway.png
resize $HEX tools/original/green_breakaway.png
resize $HEX tools/original/red_seat_of_power.png
resize $HEX tools/original/blue_seat_of_power.png
resize $HEX tools/original/yellow_seat_of_power.png
resize $HEX tools/original/green_seat_of_power.png
resize $CIRCLE tools/original/neutral_governor.png
resize $CIRCLE tools/original/red_governor.png
resize $CIRCLE tools/original/red_legacy.png
resize $CIRCLE tools/original/red_legacy_40.png
resize $CIRCLE tools/original/blue_governor.png
resize $CIRCLE tools/original/blue_legacy.png
resize $CIRCLE tools/original/blue_legacy_40.png
resize $CIRCLE tools/original/yellow_governor.png
resize $CIRCLE tools/original/yellow_legacy.png
resize $CIRCLE tools/original/yellow_legacy_40.png
resize $CIRCLE tools/original/green_governor.png
resize $CIRCLE tools/original/green_legacy.png
resize $CIRCLE tools/original/green_legacy_40.png
resize $CIRCLE tools/original/red_legacy_80.png
resize $CIRCLE tools/original/blue_legacy_80.png
resize $CIRCLE tools/original/yellow_legacy_80.png
resize $CIRCLE tools/original/green_legacy_80.png
resize $CIRCLE tools/original/blue_governor_emperor.png
resize $CIRCLE tools/original/green_governor_emperor.png
resize $CIRCLE tools/original/red_governor_emperor.png
resize $CIRCLE tools/original/yellow_governor_emperor.png
resize $SQUARE tools/original/blue_general_emperor.png
resize $SQUARE tools/original/green_general_emperor.png
resize $SQUARE tools/original/red_general_emperor.png
resize $SQUARE tools/original/yellow_general_emperor.png
|