Kint
$message string (64) "Error during image optimization. See exception for more details."
$level string (5) "error"
⧉⌕$context array (1)
⇄⧉exception => ImageOptimizer\Exception\CommandNotFound (7) "Command "/usr/bin/pngquant" not found."
$context['exception']
  • Source
  • Properties (7)
  • Available methods (10)
  • try {
    $exitCode = $process->run();
    $commandLine = $process->getCommandLine();
    $output = $process->getOutput().PHP_EOL.$process->getErrorOutput();
    if($exitCode == 127) {
    throw new CommandNotFound(sprintf('Command "%s" not found.', $this->cmd));
    }
    if($exitCode !== 0 || stripos($output, 'error') !== false || stripos($output, 'permission') !== false) {
    throw new Exception(sprintf('Command failed, return code: %d, command: %s, stderr: %s', $exitCode, $commandLine, trim($output)));
    }
    } catch(RuntimeException $e) {
    throw new Exception($e->getMessage(), $e->getCode(), $e);
  • protected message -> string (38) "Command "/usr/bin/pngquant" not found."
    private string -> string (0) ""
    protected code -> integer 0
    ⧉protected file -> string (118) "/var/www/vhosts/projectivity.nl/blog.symbaloo.projectivity.nl/vendor/ps/imag...
    • File (1.85KB)
    • Contents
    • -rw-r--r-- 10028 1005 1.85KB Sep 30 2021 /var/www/vhosts/projectivity.nl/blog.symbaloo.projectivity.nl/vendor/ps/image-optimizer/src/ImageOptimizer/Command.php
      
    • /var/www/vhosts/projectivity.nl/blog.symbaloo.projectivity.nl/vendor/ps/image-optimizer/src/ImageOptimizer/Command.php
      
    protected line -> integer 44
    ⧉private trace -> Debug Backtrace (7)
    ⧉.../ps/image-optimizer/src/ImageOptimizer/CommandOptimizer.php:29 ImageOptimizer\Command->execute(array $customArgs = array())
    • Source
    • if($this->extraArgs) {
      $customArgs = array_merge(
      is_callable($this->extraArgs) ? call_user_func($this->extraArgs, $filepath) : $this->extraArgs,
      $customArgs
      );
      }
      $this->command->execute($customArgs);
      }
      }
    ⧉.../ps/image-optimizer/src/ImageOptimizer/ChangedOutputOptimizer.php:34 ImageOptimizer\CommandOptimizer->optimize(string $filepath)
    • Source
    • if ($outputChanaged) {
      copy($filepath, $outputFilepath);
      $filepath = $outputFilepath;
      }
      try {
      $this->optimizer->optimize($filepath);
      } catch (\Throwable $exception) {
      if ($outputChanaged) {
      unlink($filepath);
      }
      throw $exception;
      }
    ⧉.../ps/image-optimizer/src/ImageOptimizer/SuppressErrorOptimizer.php:24 ImageOptimizer\ChangedOutputOptimizer->optimize(string $filepath)
    • Source
    • $this->optimizer = $optimizer;
      $this->logger = $logger;
      }
      public function optimize(string $filepath): void
      {
      try {
      $this->optimizer->optimize($filepath);
      } catch (Exception $e) {
      $this->logger->error('Error during image optimization. See exception for more details.', [ 'exception' => $e ]);
      }
      }
      public function unwrap(): Optimizer
      {
    ⧉.../_app/Aristoteles/Controllers/Images.php:104 ImageOptimizer\SuppressErrorOptimizer->optimize(string $filepath)
    • Source
    • $image = new ImageResize($path);
      if ($masked) {
      $image->crop(500, 500);
      } else {
      $image->resizeToWidth(1200);
      }
      $image->save($resizedPath);
      $factory->get('compress_image')->optimize($resizedPath);
      if ($mime === 'image/png') {
      $img = imagecreatefrompng($resizedPath);
      } else {
      $img = imagecreatefromjpeg($resizedPath);
      }
      if (!$img) {
    ⧉.../_app/Aristoteles/Controllers/Images.php:218 Aristoteles\Controllers\Images->imgResize($path, $masked = false)
    • Source
    • $this->imgResize($this->cached_social_url, true);
      } else {
      if ($localImage !== null) {
      copy($localImage, $this->cachedurl);
      } else {
      $this->copyImg($url, $this->cachedurl);
      }
      $this->imgResize($this->cachedurl);
      }
      }
      }
      function copFakeImg($src)
      {
    ⧉.../_app/Aristoteles/Controllers/Images.php:31 Aristoteles\Controllers\Images->createImage()
    • Source
    • $this->theme = isset($params['theme']) ? $params['theme'] : '';
      $this->module = isset($params['module']) ? $params['module'] : '';
      $this->img = isset($params['image']) ? $params['image'] : '';
      $this->cfName = '';
      $this->cacheFolder = '';
      $this->utils = new Utilities();
      $this->conn = new ConnectionMngr();
      $this->createImage();
      $this->serve();
      die();
      }
      private function copyImg($url, $to)
      {
      $ch = curl_init($url);
    ⧉<ROOT>/image.php:5 Aristoteles\Controllers\Images->__construct($methods = array(), $params = array())
    • Source
    • <?php
      require_once('../_app/_constants.php');
      use Aristoteles\Controllers\Images;
      new Images([], $_REQUEST);
    private previous -> null
  • ⇄public __construct(string $message = '', int $code0, Throwable $previous = null)
    new \ImageOptimizer\Exception\CommandNotFound(string $message = '', int $code0, Throwable $previous = null)
    public __wakeup()
    ⇄final public getMessage(): string
    $context['exception']->getMessage()
    ⇄final public getCode()
    $context['exception']->getCode()
    ⇄final public getFile(): string
    $context['exception']->getFile()
    ⇄final public getLine(): int
    $context['exception']->getLine()
    ⇄final public getTrace(): array
    $context['exception']->getTrace()
    ⇄final public getPrevious(): Throwable
    $context['exception']->getPrevious()
    ⇄final public getTraceAsString(): string
    $context['exception']->getTraceAsString()
    ⇄public __toString(): string
    (string) $context['exception']
RIFF†WEBPVP8X ��ALPH½€Û¶«æ óæFD@ÞÛ(„�ÈÓÈ{ûj�«À†Š(@‘WüçäïÞ£"bÜš¨Ò[,#y«:¯ˆwOlêÿ!æ3±(󎸃7h‚د¼=¯ÑaKÌù‹/9zÀ…ðC~8ñü°#ü’#¡„?á‡=á‡=á‡3á‡àùáÂóÖðK„páù!?ýVÿmü§íÑ‚mC ÚÒ+}oim®õ¥í£âôç^u=d�‰�ÅRí¤àÖEVP8 ¢°�*‚‚>1ŠC"!!èÔ  ¦íÕüXUö äMWúÏä?×|8ÑLgL¿‡û�ú3ý¯Ô˜é'ø_ʯw/S¾aÿX?`=à=z3þ�èåì�ûìüü¥çütßÚFÿü:Ñìû¿Ô1.Pµø x¯#Í/ùϲ_�ï<âè;üwý×謀Ä_¡ÉÜô¶Y³b %²'cÍpöŠÓè~ØmDɼlYùýɱlZ�am¯Íþ§"@%’U!çãLðêOx‡Xj ~áÀ¤Ëkã·ƒ$æ­åÔîþ Ï)Aüä‘N2E€þkÂ1g5é¢9‘ÌŽ_€þþÐ_š{ÿþ>Ÿÿ�5ÿü‘ ¼"RÐü­wøåc$¼ˆ“fZjžòE¯8�ÞÕýÑ«ÿÒ˜à—n¯.  $ÿç_°Ò;mû¿ÉÛ‡¾\íª| š‹íÊ}§/ž�é�ãÛ½så•ö‡„þ^fÏøw=qt¸A<„~��ì‚4ÞVhÃÃ7kÔ/Ö44èh2†¸Ñݧ–‚±Ìb…Ãë Q˜V·�²�R‘!.i^ ë&8ìˆSïL Œwב+yœ<ÄI†’ù½cw°»p%v“þMÓžÍk䵃ŠX“¹¿C‘7Æd´©”{8žmP%¹œ+Ø% '�½&ñ�üšÿÌ’U’�B ¾|öïùN¦ ÓZ IÁä°Å—«{ïãèÉ$ò O@ïþwÿy-žÕeõ`—ãþQMYÍ HD!áåô °pp—Bmès¥+°֑�Bç>¤…®ácˆ»½ÿe8_/€ë(¡&•Ó3$®¼p]Xq þþœ Ÿ~‡\ÒPµAsòÆD~C¨V†Cª·†ò…ÿâUw›ÿý¢»8rx/Ö+N‡û«·ÖâŽIþ—¹:åq”} ‚—Ìܾ‘ΡX£°Z6¦ñü¨)Tì]o!ã.#°¸jÆ Yší—‹øVÿå˜3öŒ—÷“wø»”r A%]Ü6øÁRýdŸ›ÕÂ=ä`sX|ÉŒÿð¡;xî÷„/59ù}ˆSy Çðn¿Æù:€um`OñÚl.¹LCþ7©Ž—«¥ƒ(@ÿôxªº£8ÙçIéòî#B6‚ò„¾êÚÍça˜öËÓZðó�®ž³Ô“ã)×\<_ÜÈ{.;x}$d¨\Ïc«9–DÝ?Nù1çyLõ ¡3ŸùÔºìºZ'2Nò„í.[wõ{e’øå‹¾�•ÒöôÌÿ‘JC”×§‚ä˜>ÿä÷Ñ7ÿ"Cœ$×Öˆ©8]ì©€&ºúâx‚§ÇmGçEÿ—§øÕ|ÇW?Eh9�õ¿Ë“�˜ Ö,„"þ§^aÚ1Z¹²­kó�9[,ëæÿnMÐ¸¶¸\9pбלԎ”49?B&H !¥£h¦¼}\ôæ•8p‹…Ý¥ªr•â·³1Rä-¸‘O8¼¼¿°MLáØØÀÒÀ?Ø$™›øŸÄµÌýN`�dŽÕúWfcÓ 9¿`ßî†ËŠL ÏíOöÄ:r