GlisWeb framework
_360.images.php
Vai alla documentazione di questo file.
1 <?php
2 
17  // definisco i formati delle immagini
18  $cf['img']['size']['l'] = array(
19  160, 320, 640, 720, 1024, 1280, 1680, 1920, 2048
20  );
21 
22  $cf['img']['size']['p'] = array(
23  80, 240, 480, 640, 720, 960, 1024, 1280, 2048
24  );
25 
26  $cf['img']['formats']['l'] = array(
27  160 => 80,
28  320 => 240,
29  480 => 320,
30  640 => 480,
31  960 => 640,
32  1024 => 768,
33  1280 => 1024,
34  1600 => 1200,
35  1920 => 1280,
36  2048 => 1152
37  );
38 
39  $cf['img']['formats']['p'] = array(
40  240 => 320,
41  320 => 480,
42  768 => 1024,
43  1024 => 1200
44  );
45 
46  // definisco le tabelle in cui cercare le immagini e i relativi formati
47 # $cf['images']['resize'] = array();
48 
49  // collego l'array $ct
50  $ct['img'] = &$cf['img'];
51 
52 /*
53 Common Aspect Ratios
54 Aspect Ratio Decimal Description
55 1:1 1.0 Square
56 5:4 1.25
57 4:3 1.333
58 8:5 1.6
59 16:9 1.777
60 
61 Computer Screens
62 Dimensions (width x height) Aspect Ratio Description
63 320 x 200 1.6 CGA (color)
64 640 x 200 3.2 CGA (monochrome)
65 640 x 350 1.83 EGA
66 640 x 480 1.333 VGA
67 720 x 348 2.07 Hercules
68 1024 x 768 1.333 XGA
69 1280 x 1024 1.25
70 1366 x 768 1.78 widescreen
71 1600 x 1200 1.333
72 1680 x 1050 1.6 widescreen
73 1920 x 1200 1.6 widescreen
74 
75 Tablet Screens
76 Dimensions (width x height) DPI Description
77 1024 x 600 169 Amazon Kindle
78 1024 x 768 132 Apple iPad, iPad 2
79 2048 x 1536 264 Apple iPad ("new" 2012)
80 
81 PDA and Phone Screens
82 Dimensions (width x height) DPI Description
83 160 x 160 Palm (original)
84 176 x 208 Nokia Series 60 (original)
85 240 x 320 Nokia Series 60 (series 2)
86 320 x 240 Nokia Series 60 (series 3, landscape mode)
87 320 x 320 Palm (Tungsten and Zire)
88 352 x 416 Nokia Series 60 (series 2, feature pack 3)
89 416 x 352 Nokia Series 60 (series 3, landscape mode)
90 320 x 480 iPhone/iPod Touch - Portrait
91 480 x 320 iPhone/iPod Touch - Landscape
92 320 x 416 iPhone/iPod Touch - Safari content area - Portrait
93 480 x 268 iPhone/iPod Touch - Safari content area - Landscape
94 320 x 480 Android (HVGA)
95 960 x 640 326 Apple iPhone 4/4S
96 1136 x 640 iPhone 5
97 
98 */
99 
100 ?>
$ct['img']
Definition: _360.images.php:50
$cf['img']['size']['l']
Definition: _360.images.php:18