0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
3.2.0-5
/
standard
/
htdocs
/
lib
/
images
/
[
Home
]
File: images.php
<?php /* Select the right library for images manipulation * We handle gd and imagemagick 1.x and 2.x */ require_once('tiki-setup.php'); // Auto-detect php extension to use as image lib // This assumes imagick is better than gd (which does not handle transparency in gray PNG), so try to find it first // $detected_lib = ''; if ( class_exists('Imagick') ) { $detected_lib = 'imagick_new'; // Imagick 2.x } elseif ( function_exists('imagick_rotate') ) { $detected_lib = 'imagick_old'; // Imagick 1.x } elseif ( function_exists('gd_info') ) { $detected_lib = 'gd'; // GD } if ($detected_lib != '') { // Load the detected lib require_once('lib/images/'.$detected_lib.'.php'); } ?>