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— �Û¶iK«V�ÿÚ¶mÛFú;íÌŠ‘ý¼m»;3s‘­S§VrÜݾˆ˜üc²uÏÎ + OŸŸ?~îs*M^ÖTBñ³Aû¶¡êè¯<ºnp°’Õ».j¿þª²pê2˜ÊÁËÏí F/„µõ×ßÛ›®åZØ[}Ó¡ÛJáVÂ⺫×ÿHb÷�&ahÓóJš ›ÝôCA1¬=Ú( |÷qMauãÚ¯!{«Ðø¬¬buKY'(BÁl Q †BÙÿeÿ—.Z%¹„_%g~ÕLøPߪð¥n—O�zçãD~šQ×[ÖŽtjDs“~�iÎ8áË¡ù´èróÆq‚pºáxƒžžhM0I~Kå@sÞîèØD>m¨œhÌýª®­Á$Hø²©ÉŒ¦´ãËÑ;ÝÛD¢‚Àpâl¯ñ]«Óù×Wïõî^Sd„âÛ•ë¯éÀ‚šöíÙR"ˆ”’‚ÊÿñPÁ®f‰�H"µ@ _:"£à!ET|:"³ &$‘«A&€DþÂ:VP8 ú°&�*‚‚>1‰C"!!l=° ´€h·�rIäë¯õ¶Ìx&õ5ühëHðW¬º¹wÙù=ùð�ôÿ } ~*ú—þ©ùù�¢égÍ»~iÿŒònäAü‹û÷åç¿�ñtþmüóþöÿÆo†êÿÃþU{\ù�ý÷øï€OåÐ?Ðÿxýæÿ+ß“ö“Ùwö$PéŠv8ÝÁ"®Úå$¹4õ™PÎoî„eÔu«Ì§¿J>›§`äùôü•ò—(¡~õÏ‹[ ǧ�rÇIø‚ÌvÁî+Ö+¡‡è|K¿#7Ç0¯Jþ,€6¤ï<|KKþ‡×¼‰;w;>”f¾wBÀO�ƒ÷¼!¨|â——å¢÷ê5[L%¤vÇê=2x±x—éí6êB¼:AåÔ0ÇUÓì¸î5TÀþñh:³óin¦à, Üý£€"¤ €Ý«kR2cè^nìåÏ€•p—½Â~ÿÿœìÛ"ëÒÿÒÃÚžsæ?+yHì†+ÉÈVYøÒ|žòWsÐ¥¿0Á°ƒjÚ¦‡å$ J´(’J¬�/M5ö½îô�õ †(ŽF?ë2:ef²nüO´ÏÄ/�]Ž(¶Ï±ЖÚĹÉØ8ç©?õCÊö¼W΀Oÿv�ñhLWuà>sÉ<Ú¬;B¥¶þ"æi²ƒ­­//(O;Æán€[2¨ &)´Oµª€Lb5-*ôd¨j"Eß䜜t˜+…øA�‹¤ã»Ã)[4¥(t¹Ü¨»Y©*õäf+èam®Ü™–—ªËŽ“BÎäÀ¯þ Ýƒ—ã·0g OÉ?Á“Ïnç«(¢¼¥�J+>F�Ö•G¾ ü8�2�/WÍÿÄVÖ-ÃHß­¦ëD_iå™"êã· N\öÿ³ÿÛÕÎÊXîÈ\%hH3Ÿ‰ ú�Ù¥\zÎNx6Øû€Å> ̓2?~˜“‹ž_È®_ £˜£¤ý_�&BDKÁŒÑ’¥ð�’×– �x-Þ Þ"PæÒ¥vq ¾Ê:¸:ÀÒìÆœIZ#„ã9«ä™Áo#­DÓŽ7ã&~O}Kˆ\kófðòi�…§ó°PÿÏê» ;ÿGu2†#¤#ýg©‹ë°ÖÆÝ†è%ž‰lV(þ¦.^)O,ãz¶}—]¸0Áù×ÙEŽWœË(èŽ ˆÈ›•ÂY/ÌÂuy‹¹µü�ŒLR5çÆ‰>i»ÕK�éY×È‘vü´Ùá³õ9àh:ÄzÂÞ{ r““s²D�{Ì£Xx[Sǵ~�°ÛÂÑ'ÛeZt¤{g…0UÃÇKÎÝaSܼķÿ-¨)Æcb˜’þá±G0§4ùÍå@<뿸G�¤zà¯Ãï]�}|2üðq9A� ½¿ü¡á’…f+÷]´+–ø¢ž?ý®`Ö}•¦ìóLg±J4þ «ëÔ-¶>Á¡–�–¬|ì`À�[ªE B£Q´L�… Ÿê�ÍÑI_�×ãÄÝúC\½àq÷kUíëqfQ³ñK�´P}¿ÿ 7t() º},KVOú+Ðc&=Ý’‘2·k¥D¿­N2£vÉäø”ø3º=ã€(šº.!ÿ¥P"Õañ®“‡ù˜ª�˜ÇÞÚ¶Ù=¢åjÑÔcà̰[‡ãÖÐJ�=ugG£ri›If¹å6((¤`Aæßœ~‘é§÷ƒ0”ñ·Z~2ÊÎ:¿ˆç�såAË wÍázù©å¥›T¤ýë/ûÏ4oóÚZ‚4§P^WúL¥‘15…²<Ÿ̷fŸÜ¬‘&çúî¼±E¿é,ê¿LhE”íMê,v3%«?šIU–"S,cg®9]Þ®F)KÒE«#Õ,%çzøëÏ߀ßU’§É­/çÌõÏ)«bsn‚âÿ¿„€ÖÙò?Å3k½1eAk’]âDT«È.OÐSzyæpv�ä®3ÎÖ _«-!ÅŒ?ß|¯“Þh |±x«uclxNj¥÷i‰ìG¹„K´Ÿ7~'œÖó�þE5÷ÁdwèDK¡Þô÷ٟα£úÕ[Oè Á3 &ýÙ€R7VpÉèª8¸/7ÿðÿçd g˜XŸª‚ív~$IÏèQMæ^�¹äW ƒnÐEïÈ»à4{�(£òî"vy<¥È ü!3ª1;¼õrj§{Vl¤!¢LYë­±ñ Û „ pJs†­©þäÛ™(Ò´ê!]íÑ®këŒLs#øþƒ3€