-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathimthumb.php
36 lines (32 loc) · 1.06 KB
/
imthumb.php
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
<?php
/**
* ImThumb
*
* A (mostly) timthumb-compatible image generation script using ImageMagick instead of GD
*
* Installation of ImageMagick can be performed as follows:
* RedHat-based systems:
* $ sudo yum install ImageMagick ImageMagick-devel php-devel php-pear gcc
* $ sudo pecl install imagick
* $ sudo echo extension=imagick.so >> /etc/php.ini
* Ubuntu/Debian-based systems:
* $ sudo apt-get install imagemagick php5-imagick
*
* @package ImThumb
* @author Sam Pospischil <[email protected]>
* @since 2013-10-18
*/
if (!defined('IMTHUMB_BASE')) {
define('IMTHUMB_BASE', dirname(__FILE__));
}
require_once('imthumb-requesthandler.class.php');
require_once('imthumb-meta.class.php');
require_once('imthumb-source.class.php');
require_once('imthumb-source-local.class.php');
require_once('imthumb-http.class.php');
require_once('imthumb.class.php');
// look for any TimThumb config files and load them
ImThumbRequestHandler::readTimThumbConfig();
// run the script!
ImThumbRequestHandler::processRequest(ImThumbRequestHandler::readParams());
exit(0);