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']
RIFFWEBPVP8X ��ALPHè�Ãì2(ÿ4_¾4¸»Ûä.£»3»3º5g8Œ7Ý„ÃÈèîîLîîÞ4ͧòï�—ˆ˜ªða¦žE|zë¨j Èq_ž^)6¡4bÿ¶&�K[Äo牨–ipø¬cD²À‚Ç�Ò`òx¥X¤›ªÄ¢4¦FR�ÓH”N�TàÕA�¹gŸì•{)Ð̵Øo|ZáA.³à­çMüñ]gg¢XƒµlúüÙÌt%•k•|Áß‹e+4X«·ÓÀ—,0`­ÅIü³›|•kCnÁ[^`ÀY>ñ ¼ÉUœUÚð ÞòΚì7ð&WpÖ÷$þW¦4ã^ÀŸ\aÁX•yïàO( Æ›lÔð' ,ÿv®ÿm™ãÚ  �·(TíÎgÅ\Lúî!}lú´.À–"¬8‚•³ø­Iì ›<`Ñ‹ôÕê÷"y5¨ÝY›juÒ&�ê•™äQ¥ÒoÉ£læ›(H‰/þbf§Š¨ûå?}èš.jrÔÐ+D¨–:z}÷äŒRF¢Z­JôŸÌi.ßðö J‡y;,ƒ˜Í›A4»ÅÙ³ö¤˜hù²SEDË>põ¥ £P³çyº8$§€óae{3»¿lT%ª"VP8 ôð�*‚‚>1ˆC"!!(ÍÀ ±Ù½¢úŠ/„þgø�àÚ:wâGåÏcÞî÷ ÷û·[¹àé»ïn¾ó¿ ~@|Õóý þûö£ÜÏÌê÷í7¼÷¯îŸÙ½Àz(þ¿Ö5èú¥é þËýÇÁ/í—î�³—ýÂoÙ�ú¤ÔÜháY‹ð•í•ÈRh  Àe,cÃþ.Ñ”d=\ô!ö‡ÝW ÃJÀ~Fc™�qþRoe³�%„Û½ÝM™2k1¼R,�gBiظXe’=� TÏñ²ç^GóÛ§z3¬îö²ÔJ[?bB™8ïÅÎcpZ žBþÿ dÇíé•ÿü7ßÿøE�zGúßo¦™EKä©ÒýnËè`mg^7ȱÛ�×ö¿žÏ£�îçâ}?Ñ û‘ÿÔó¶Ï3¦˜¤óês»þ±U´X ½‚|Ot“ƒŸ¾U7c=ŠÿÿþŠ„–�"Ô�>í0UsykÊ�ónϦä'×[2¦®?J?'.0–¨`‰µ5¨ÎLBÿ‚Ïÿ†w«¹½°-©îÕ‚D±BË}>xR–o÷˜ÇN­¬ÿ= âo½=X¸rÿø°’ÕúÜ¿ÂñŸŽº û»Ç¡Y¿xÄ©ÃÊžÎ5LºðG%ÚOŽPTa �µxï©þàj@8ûˆ~Íõ˽@gÍKÊì/þ»Ïé•ù–x¢ ‚ùpÛÜ,þQU+egÖ°jŠlKù™2ŽOøOMe-|7¹ç¿7ê+ »PµÞ%ø°¡Ó£ëPè6ñåŠÅÜ3Í›ù¤ÊäKÆE™«P ²<�‰d€Ebuhçí´Û#»²?<2ïšÄú Ó´)ÒNoÕ˜ÿù}Qp¿Å(0ß+ušgAï£ù‘Οcu�î;A Ü’ò¬‘'+eÃ¥¬'8€¿›ÞAÑNcT Œbá ÂòJÐfÑ·.„8÷Ol$ñz’[Ý€LslÃ"�`ù¯\‰,ì�pÉ€²_A;Nš¹à¹1é»`¼©¼·#ñã@¤Ÿ7¸±¯_Ö1OÛö³º=ðÓW‚¸�½òª²lуò×ô÷Ç��àôT \ð¬—XÝû¹µËËWœ#�ö,¹�ÐEP�»'Øíš¼øÏ�·ó8ÖY¥kSLØ÷ Ã[­×ÐãÉž BÖ¿ºCƒ±x(^â2Õóî@Rq³™�¾CÇz©‘°ÅñÎŒ�«úÕ9Uª#]S¥ýëÏ6{«m6Ø•DÔÎzl«I&�ïŽåö^N�Æ7ÕÁ+Úzðõ•ÁÓµ¥E¢M{á´r¾:}Ô¯vÅð’b‹¥@Õ‚¡!=~qOÿ݉ºKá8 úK»àGÃ¥oÅ*|=ÑlŽô”ééP)ò–�¸ ªýÃ!•®lÉÀ'ȪŠ{‡qŸÞ²3º×k©Ä¼>– d»‰±’4}:V„)Ü¿k¬?ÿ²Tÿþʦ…¸õз¯31?ÃȼâSeî¬oÕ’V#H�:<