* Installer: Added a "hide" button to hide the results of executed methods
[Packages/TYPO3.CMS.git] / typo3 / sysext / install / modules / gfx / class.tx_install_module_gfx.php
1 <?php
2 /**
3 *
4 */
5 class tx_install_module_gfx extends tx_install_module_base {
6
7 /**
8 * This returns an overview over the current gfx settings.
9 *
10 * @return XHTML
11 */
12 public function overview() {
13 /**
14 * ATTENTION! This ist just a copy and paste from old installer!!! Please use this as inspiration. ;-)
15 */
16 $im_path = $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_path'];
17 if ($GLOBALS['TYPO3_CONF_VARS']['GFX']['im_version_5'] == 'gm') {
18 $im_path_version = $this->config_array['im_versions'][$im_path]['gm'];
19 } else {
20 $im_path_version = $this->config_array['im_versions'][$im_path]['convert'];
21 }
22
23 $im_path_lzw = $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_path_lzw'];
24 $im_path_lzw_version = $this->config_array['im_versions'][$im_path_lzw]['convert'];
25
26 $msg = '
27 ImageMagick enabled: <strong>'.$GLOBALS['TYPO3_CONF_VARS']['GFX']['im'].'</strong>
28 ImageMagick path: <strong>'.$im_path.'</strong> ('.$im_path_version.')
29 ImageMagick path/LZW: <strong>'.$im_path_lzw.'</strong> ('.$im_path_lzw_version.')
30 Version 5/GraphicsMagick flag: <strong>'.$GLOBALS['TYPO3_CONF_VARS']['GFX']['im_version_5'].'</strong>
31
32 GDLib enabled: <strong>'.$GLOBALS['TYPO3_CONF_VARS']['GFX']['gdlib'].'</strong>
33 GDLib using PNG: <strong>'.$GLOBALS['TYPO3_CONF_VARS']['GFX']['gdlib_png'].'</strong>
34 GDLib 2 enabled: <strong>'.$GLOBALS['TYPO3_CONF_VARS']['GFX']['gdlib_2'].'</strong>
35 IM5 effects enabled: <strong>'.$GLOBALS['TYPO3_CONF_VARS']['GFX']['im_v5effects'].'</strong> (Blurring/Sharpening with IM 5+)
36 Freetype DPI: <strong>'.$GLOBALS['TYPO3_CONF_VARS']['GFX']['TTFdpi'].'</strong> (Should be 96 for Freetype 2)
37 Mask invert: <strong>'.$GLOBALS['TYPO3_CONF_VARS']['GFX']['im_imvMaskState'].'</strong> (Should be set for some IM versions approx. 5.4+)
38
39 File Formats: <strong>'.$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'].'</strong>
40 ';
41
42 return $msg;
43 }
44
45 /**
46 * Checks with image formats can be read.
47 *
48 * @return unknown
49 */
50 public function readingImageFormats() {
51 return 'readingImageFormats';
52 }
53
54 /**
55 * Tests if GIF and PNG files can be written
56 *
57 * @return unknown
58 */
59 public function writingGIFandPNG() {
60 return 'writingGIFandPNG';
61 }
62
63 /**
64 * Tests if images will be scaled correctly
65 *
66 * @return unknown
67 */
68 public function scalingImages() {
69 return 'scalingImages';
70 }
71
72 /**
73 * Tests if combining images works.
74 *
75 * @return unknown
76 */
77 public function combiningImages() {
78 return 'combiningImages';
79 }
80
81 /**
82 * Tests the GD library function like FreeType etc.
83 *
84 * @return unknown
85 */
86 public function gdLibraryFunctions() {
87 return 'gdLibraryFunctions';
88 }
89 }
90
91 ?>