You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
740B

  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. * @var string
  12. */
  13. public $defaultHandler = 'gd';
  14. /**
  15. * The path to the image library.
  16. * Required for ImageMagick, GraphicsMagick, or NetPBM.
  17. *
  18. * @var string
  19. */
  20. public $libraryPath = '/usr/local/bin/convert';
  21. /**
  22. * The available handler classes.
  23. *
  24. * @var array<string, string>
  25. */
  26. public $handlers = [
  27. 'gd' => GDHandler::class,
  28. 'imagick' => ImageMagickHandler::class,
  29. ];
  30. }