sdwebserver/app/Config/Images.php

32 lines
708 B
PHP
Raw Normal View History

2022-03-14 19:13:10 +01:00
<?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
use CodeIgniter\Images\Handlers\GDHandler;
use CodeIgniter\Images\Handlers\ImageMagickHandler;
class Images extends BaseConfig
{
/**
* Default handler used if no other handler is specified.
*/
2024-04-07 22:17:30 +02:00
public string $defaultHandler = 'gd';
2022-03-14 19:13:10 +01:00
/**
* The path to the image library.
* Required for ImageMagick, GraphicsMagick, or NetPBM.
*/
2024-04-07 22:17:30 +02:00
public string $libraryPath = '/usr/local/bin/convert';
2022-03-14 19:13:10 +01:00
/**
* The available handler classes.
*
* @var array<string, string>
*/
2024-04-07 22:17:30 +02:00
public array $handlers = [
2022-03-14 19:13:10 +01:00
'gd' => GDHandler::class,
'imagick' => ImageMagickHandler::class,
];
}