mirror of
https://github.com/mosbth/cimage.git
synced 2025-07-31 13:40:08 +02:00
ready for test of remote images #43
This commit is contained in:
@@ -281,6 +281,7 @@ Revision history
|
||||
|
||||
v0.6.x (latest)
|
||||
|
||||
* Added support for download of remote images #43.
|
||||
* Adding compare-page for comparing images. Issue #20.
|
||||
* Added option `no-upscale, nu` as resizing strategy to decline upscaling of smaller images. Fix #61.
|
||||
* Minor change in `CImage::resize()`, crop now does imagecopy without resamling.
|
||||
|
23
autoload.php
Normal file
23
autoload.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* Autoloader for CImage and related class files.
|
||||
*
|
||||
*/
|
||||
//include __DIR__ . "/../CHttpGet.php";
|
||||
//include __DIR__ . "/../CRemoteImage.php";
|
||||
//include __DIR__ . "/../CImage.php";
|
||||
|
||||
/**
|
||||
* Autoloader for classes.
|
||||
*
|
||||
* @param string $class the fully-qualified class name.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
spl_autoload_register(function ($class) {
|
||||
//$path = CIMAGE_SOURCE_PATH . "/{$class}.php";
|
||||
$path = __DIR__ . "/{$class}.php";
|
||||
if(is_file($path)) {
|
||||
require($path);
|
||||
}
|
||||
});
|
@@ -50,7 +50,7 @@ return array(
|
||||
* remote_password: false // as in do not use password
|
||||
* remote_pattern: null // use default values from CImage
|
||||
*/
|
||||
'remote_allow' => true,
|
||||
//'remote_allow' => true,
|
||||
//'remote_password' => false, // "secret-password",
|
||||
//'remote_pattern' => '#^https?://#',
|
||||
|
||||
|
Reference in New Issue
Block a user