Images.php 708 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Config;
  3. use CodeIgniter\Config\BaseConfig;
  4. use CodeIgniter\Images\Handlers\GDHandler;
  5. use CodeIgniter\Images\Handlers\ImageMagickHandler;
  6. class Images extends BaseConfig
  7. {
  8. /**
  9. * Default handler used if no other handler is specified.
  10. */
  11. public string $defaultHandler = 'gd';
  12. /**
  13. * The path to the image library.
  14. * Required for ImageMagick, GraphicsMagick, or NetPBM.
  15. */
  16. public string $libraryPath = '/usr/local/bin/convert';
  17. /**
  18. * The available handler classes.
  19. *
  20. * @var array<string, string>
  21. */
  22. public array $handlers = [
  23. 'gd' => GDHandler::class,
  24. 'imagick' => ImageMagickHandler::class,
  25. ];
  26. }