ImagickDriver.php 610 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * This file is part of the ForkBB <https://github.com/forkbb>.
  4. *
  5. * @copyright (c) Visman <mio.visman@yandex.ru, https://github.com/MioVisman>
  6. * @license The MIT License (MIT)
  7. */
  8. declare(strict_types=1);
  9. namespace ForkBB\Core\Image;
  10. use ForkBB\Core\Files;
  11. use ForkBB\Core\Image\DefaultDriver;
  12. use ForkBB\Core\Exceptions\FileException;
  13. class ImagickDriver extends DefaultDriver
  14. {
  15. const DEFAULT = false;
  16. public function __construct(Files $files)
  17. {
  18. parent::__construct($files);
  19. $this->ready = \extension_loaded('imagick') && \class_exists('\\Imagick');
  20. }
  21. }