Révision 8b0958ea
ID | 8b0958eaed21447a367d58500e2603d22d5a3af3 |
Parent | 0f3c4dcc |
Enfant | 5b8e0184 |
Contains a description for gitweb
Accepts any kind of images to generates jpeg tiles
Fichiers
- ajouté
- modifié
- copié
- renommé
- supprimé
Révisions
to_tiles/gen_tiles.sh | ||
---|---|---|
8 | 8 |
max_scale=8 |
9 | 9 |
usage="$0 [-x <x_tile_size>] [-y <y_tile_size>] [-p <prefix_result>] [-t] [-h] [-m <min_zoom>] [-M <max_zoom>] <image_to_convert>\n example: $0 -r test_res" |
10 | 10 |
|
11 |
if ! which tifftopnm pnmscale convert > /dev/null; then
|
|
11 |
if ! which anytopnm pnmscale convert > /dev/null; then
|
|
12 | 12 |
echo "il faut installer les paquets netpbm et imageMagick pour utiliser ce script !" |
13 | 13 |
fi |
14 | 14 |
|
... | ... | |
44 | 44 |
|
45 | 45 |
wfname=$prefix.pnm |
46 | 46 |
if ! $test_mode; then |
47 |
tifftopnm $fname > $wfname
|
|
47 |
anytopnm $fname > $wfname
|
|
48 | 48 |
else |
49 |
echo "tifftopnm $fname > $wfname"
|
|
49 |
echo "anytopnm $fname > $wfname"
|
|
50 | 50 |
fi |
51 | 51 |
|
52 | 52 |
echo "préfixe : "$prefix |