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']
RIFFn WEBPVP8X ��ALPHƒ�äl{"GÖ/˲¬RCÉá’Õ aff:gÅY3Ü—QNõ ¢¬†i‰+fæ™PÑÀ?š]GÄ�ÍìÖÉ…•¿þÒlÜ¢�©wÇH~¹0Ä]Q©ǘިv¡þÉ1²Ÿ&U¾9F÷Û˜yÿáOÕ¶`ïå+ÜÄ>át<66�‘>0~«†5>`uÜÏÌXå7´FœÞzŒö$7íxÍ ŠÞ¼fBÓþKû/í»V¼¦­*¿¡5æ±PïÐêµÒ/aõJ™��KXH .cÏpú1˜­YèÆN)C 0¡žÜÐ!FÊ•�›2Pz Ÿ½‘l�3æÉ�•bs»3¦tf„®ùÏ0ù°_œdjÔÕ2U,¿rí›/ßüòáÖnk~"�ía@¬�i™*’_˜_ÚØÞù÷o-/Ì/Œ2= ˆ]`šžˆå"™ Rc@ì噫¡‚¡PÀÈô Ä)]f¢(u�`ˆ‹”s�#gˆÛ€&ùÿVP8 Ä0.�*‚‚>1‰C¢! •ä‚P“›�ÇX»Ÿ«ÊC�·}ÆûÀõöÝîúþú¯¨ð3?èÀ?Š*ÿAýC÷ÿâõWÜ ê×¢O°ôOñžÀÅÿ±z§�ýwøýƒÿ±þ?à#ùwöúŸú¿„º¼D|Ûø¯É-Ò,Éý€û¿�}ôí]ý·ò“€'—*ÿq߯üï è¿¢®ã  ó_ëë¯þF|xÿÏþWÎoÏ¿öÿÇü0þ»þëíÃÀoí/²ìQ�¹+Dr³ãA¸9Áòf W£7Œ%<©¯Û³hˆ“Ï�ƒ7õ}yQß±µÃ$‘œ”}*E%«AF ’*¶:¼…Cy `»YçŒ%o:£Þ†øªyìÔ­Ë{1$8, G�_¢Çs2 ‚ûªý$b«v]»¯ë1­�ÇÛÈ}JuÎÜ–(ÅËèõ¬õ·Pµàúð}x=ñ»,ƒ€[¨ªOÑÇGhþÐj(1S`mõ¦<=¸ÆÅþK®™šlGâãÊéëÈœEýDéÅù&ÕSšãñ^<ïþÓ<ö¥\Jsúž±W¬nÓ\’”@IBí  >¡-£-¯ðýýbõµ“æGœI­Â�Ë’³O‹‹áŠZ òm¿ød@ê7»;È…�‘@ĸ+,;ÿˆ~—Rw±&1öâyÿ;$ÿ¾+Ð… ¼ï/c42tiìø´ãíÞ‘üÌ´ë­yr5W0bÔªkÊHoM*KÓ” ‡B×·ðñýkÜ¥D‹‹æv¦) å‰K£´Ó"¡’‚{,»tå} ¾â1"ŒÃÄ C¢"8›SEžPQ›Ù—(ØikUN~F‡‰sÆ?z 'íÏô…£ïiÍöœðõ>äF~õšükU:ˉ%ÀíÿØB¿þ(“‚Ê'äÞ´ŽÞ=hGï7ìnÜ Mt 9; ÿóú~„.KŠNŒeÓ1oÌR¤§‚*cä3@¥ø"×h\D•)veCtKˆ¥5Hs;»/ ΦX"yL’HëÛynjå.8iH†fذ å%T„Ù^âÒæê�$æ>ýDÝCwåN½â>Z¿tf¦›‡ yÒ¤½Òƒ÷¢Éƣ߱†A /jµÍÙGÂzJÔ*¹ –ÍeG©sà³gíÄ1cQ PÙÚs‘Ì dðÑK«¸ŒzJè¹…ñÁÖ€Q£]Ñy~·„jõZÔê[&i;ãÊ÷ …<¼»á†À )_Ø»5b=øñð …QèY”HÔèI}�ˆÖJmñt'ó ç¾›'k“»+�¿ÃÙ‡�çù¾ÍâújÍ�Ø7„ámø«Š£±§Ý‡§Bˆ+ñ3_áO«?Ïkˆ]õÀ_”Õ?ßð.Ïà-þW�Q9£!Põ‹¸öÅRáÜåû@iŵ!pç¸�y5„�Ê|*6¬ð••Ú8¯0*b~uø …j?ý2{ýÕúC8JÝ•¾F*äø–­×åa×9kŒo ³›ùÜûŒë£Êµ¨ËÒÔ/;²*v�±¹€[§5CÑã·‘vZ‚(�@Ï�*žD`ÛÄ9ù�@`EæøaÊ¥ÈõŸÙÀk-×$¨M”2³Ä¿>[gJ6뛟͇孛+¥1èÊaÉÌVÓœ@Î:òÓ"KñB¾éÊÒqs‰Ñÿ7tf²~ß”£ŒyWÂâAÁ±þ‹Ê6ÖŒžõíRÖ¸h‹ø˜ˆŠ`ì;Ѽë·lù<)·Ú™üö/…ÁÁ·f‚?âEÎy‚@ïñ$ĶNJ}]ÇMøf³#ýóýÁ:QàÔ¢!CTŒäÅàjµÒ]YrÚéˆZ=„Ý8ïc�œ¼ßS{DÑæIѦ‡p:zìÙaŽF7+–¸¬ù-Ký|gùÅ™—Ï[ý™%ëéoÿ®[A…ʹћìi Á´µ ¯HÔ�ê*aüã&=§Ù{Uky‡/c%þ gg­{÷“ööO¤é‰}~Ï-ý-ø'Ë\L6Õ•¸[ßD·7ÍzE÷�J¦†qÿQÁ29öû�4¶‹eâ¦eYƒGÒÛtÅ_;sËôLÉÙ�¬˜óýµÖ ‡Ò_lõ�ˈÞI$NÄ“&Õu}ø/¢ GK;òĺ´•\}üÐp÷ Eº1üu‘yê»óó7ª6 ÕIvŸ‚(©·Êž_s ’ɧ%…ÍxÈÕûÌkÁ¯9)ãÚÃl×[�­§V…�Û^%È£­Ø˜Æ�<ß§Ö—ê%ÿËïáÓòx?Ü©ªñGú`Åki�ˆ ÎÅ\#)º£¦´g*É+¤›pÛ]lЛ€ñ(ŸüŸ‹´¸FeˆðY–XR‰gµp({�XAb<µZ„¾¥´D "ò¢Ò€€f6 ÉårÞŽº¢ÿ�µÆÅ--I¬ù`Wÿ°eUU�äBNÞòâ ͺœø¯øàïÈvqœK,ø—UÙdLpÝ€_myÏ�>[¾o™…‡H Å9Àïò j ƒdàYò&F¤í¤U™Œ‰ó€Àj…=?‘è6”À~yˆ«Âz"{<ýs9ô–Ý÷´ÀÈaL%òÓãÖžjm¬$ê‹«‹¾ Á#¾5 ÿv{•m|îñ|*­LTßÚI;ªÔê¹J`M67÷JLùqÇ¢�é