2020-08-04 11:25:22 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Config;
|
2020-05-27 18:46:16 +02:00
|
|
|
|
|
|
|
use CodeIgniter\Config\BaseConfig;
|
2021-04-02 17:20:02 +00:00
|
|
|
use CodeIgniter\Images\Handlers\GDHandler;
|
|
|
|
use CodeIgniter\Images\Handlers\ImageMagickHandler;
|
2020-05-27 18:46:16 +02:00
|
|
|
|
|
|
|
class Images extends BaseConfig
|
|
|
|
{
|
2020-06-10 15:00:12 +00:00
|
|
|
/**
|
|
|
|
* Default handler used if no other handler is specified.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $defaultHandler = 'gd';
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2020-06-10 15:00:12 +00:00
|
|
|
/**
|
|
|
|
* The path to the image library.
|
|
|
|
* Required for ImageMagick, GraphicsMagick, or NetPBM.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $libraryPath = '/usr/local/bin/convert';
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2020-06-10 15:00:12 +00:00
|
|
|
/**
|
|
|
|
* The available handler classes.
|
|
|
|
*
|
2021-04-02 17:20:02 +00:00
|
|
|
* @var array<string, string>
|
2020-06-10 15:00:12 +00:00
|
|
|
*/
|
|
|
|
public $handlers = [
|
2021-04-02 17:20:02 +00:00
|
|
|
'gd' => GDHandler::class,
|
|
|
|
'imagick' => ImageMagickHandler::class,
|
2020-06-10 15:00:12 +00:00
|
|
|
];
|
2020-09-08 11:45:17 +00:00
|
|
|
|
2021-04-02 17:20:02 +00:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Uploaded images resizing sizes (in px)
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| The sizes listed below determine the resizing of images when uploaded.
|
|
|
|
| All uploaded images are of 1:1 ratio (width and height are the same).
|
|
|
|
*/
|
2020-09-08 11:45:17 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var integer
|
|
|
|
*/
|
|
|
|
public $thumbnailSize = 150;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var integer
|
|
|
|
*/
|
|
|
|
public $mediumSize = 320;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var integer
|
|
|
|
*/
|
|
|
|
public $largeSize = 1024;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Size of images linked in the rss feed (should be between 1400 and 3000)
|
|
|
|
*
|
|
|
|
* @var integer
|
|
|
|
*/
|
|
|
|
public $feedSize = 1400;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Size for ID3 tag cover art (should be between 300 and 800)
|
|
|
|
*
|
|
|
|
* @var integer
|
|
|
|
*/
|
|
|
|
public $id3Size = 500;
|
|
|
|
|
2021-04-02 17:20:02 +00:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Uploaded images naming extensions
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| The properties listed below set the name extensions for the resized images
|
|
|
|
*/
|
2020-09-08 11:45:17 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $thumbnailExtension = '_thumbnail';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $mediumExtension = '_medium';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $largeExtension = '_large';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $feedExtension = '_feed';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $id3Extension = '_id3';
|
2020-05-27 18:46:16 +02:00
|
|
|
}
|