mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-19 22:31:25 +02:00
* Now returns statuscode 500 when something fails #55.
* Three different modes: strict, production, development #44. * Three files for all-in-one `imgs.php`, `imgp.php`, `imgd.php` #73.
This commit is contained in:
29
webroot/img_header.php
Normal file
29
webroot/img_header.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* Resize and crop images on the fly, store generated images in a cache.
|
||||
*
|
||||
* @author Mikael Roos mos@dbwebb.se
|
||||
* @example http://dbwebb.se/opensource/cimage
|
||||
* @link https://github.com/mosbth/cimage
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Change configuration details in the array below or create a separate file
|
||||
* where you store the configuration details. Name the config file same name as
|
||||
* this file and add '_config.php'. If this file is named 'img.php' then name the
|
||||
* config file 'img_config.php'.
|
||||
* The settings below are only a few of the available ones. Check the file in
|
||||
* webroot/img_config.php for a complete list of configuration options.
|
||||
*/
|
||||
$config = array(
|
||||
|
||||
//'mode' => 'production', // 'production', 'development', 'strict'
|
||||
//'image_path' => __DIR__ . '/img/',
|
||||
//'cache_path' => __DIR__ . '/../cache/',
|
||||
//'alias_path' => __DIR__ . '/img/alias/',
|
||||
//'remote_allow' => true,
|
||||
//'password' => false, // "secret-password",
|
||||
|
||||
);
|
Reference in New Issue
Block a user