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š …ìŸÚJû3„J(gwK9”CéZ)ùÜmÝ]?wwww÷uww-eÝÝÝ¥”C)¥„J aøß¬Ìügr·1pƒi3Ú˜l“ÎdÒíR‰–6ö­ÿ‘=Ó\ñü€óÀ¯¹¥ü�ßrì�`λë¼ÅÞ¶¯4u×Ðk\e{ëÞL›Úb7�( MÿÀ›Mzê³ÃGµe�´c:€äw ²tbôÚÆQA¾ïaK©,GEù¾ûõ`¾ZE…ƒQ1 dv¡âÅÇ™j�VPù`RT)kG^Ê(_ƒšt‡)“:ƒÚô¿TÄ)¡Nÿc*Ü]F½þcÐsÊ¨Û ŒZªŒúýƒXüj8x‘”µµ\ëDijºÒHça®+ÜÀ¨8.j›NÄÜ…÷Ò4^F­ç…TMoø(#‡š/ØòzqÝáÇǪ̀ýs¶¬!‚¯Ë:g 9ý0–³+öH¹ÙLÊ…!ù©„†BXì�РòÒ(nBhð⊡�_ s0§ò´¨d�Ì"3ˆ¸†¨„Kf—V ò5ˆnY$ã2qÝ�æ…ˆ0ëtÄm Á‡€ø=t^ö`@#Ë$L£“e@’¥&�ø!�rLЧH²ÖdvádðI1/sþ0�šòélc"êH±þ:Èe:ü~‰€‚7dÏ¢ƒ;DÀ>…»Aúã„ðqmNÈòçµù1N¨Ð b3){ºÉ„p ìÖ%¾°COš@óJüa=[¬_W=?á^ {''„ÞíbÀv†|=cÓ‘3òù çŽmóüͶNQÂbRÔ• +‰D,ÈI OĤ¨›¬‘Â#IÁ ZXºWGCwÓl †|LT?81Ä´c¬#‡Á¤˜f C@±òqœFüÃUýhÀ4Ëc2ò2#JˆÕ�˜«¢¿a€%ðÆGD¬ÆhÀ£\ Dt—¼˜¶Ùõ1»ÝóK\¼òÛ@ÔȪ‚ˆÁ…5?=|{›¸m†eÇS·?üSîB€Wߨ@SI�+µj¥ÜÜ\®Tk^{9tûj‰÷‡å_ô4Hót”5iAÃ1ý‹õ¦ ºÉ§€~S^/eTÌ”tRv@ÍÌ}\r@Õø]J�ºö2=¬°@eã_=”Š÷¸¤Z±¨ŸX£Öš8hñÉ¢:•—h²qJ]�ú”è“ݼŒÓã¹»èµÓ6N‹ïéÆ@¿�Uè¸Kz0Ðsã‡Ç8~âË&иq爼¬üˆ; Ð~úÍE—ª\¯^XövÂÒJvxÒ–…ŠW¯×ë^¥pbÛ”÷;¥,[fZ¶�F£¶1Ü`VP8 p(�*‚‚>1‰C"!!É­ˆ ²†Ü¼Ú{À~R{>Vÿ§ýðç47=}þ»ï¶˜égùÏì^°¼j½Fþ�ÝÿcïQèSÐú×ô_ýÞПó½…}¿l=Z?Ðæÿ?ð1ûAû…ðúÕÿŸØÐÐoóø´�M?ÇØMÔMp&”ãá=­=ÿx ú±GôGÆ?G䂺 Cxˆ $u"§µîÚîúçî¿Çöám5OƇÔ7W :˜£ ¾RßOÛÚIªÄÀ»ÅÐr8}öÍ¡;ˆ‘ÙºýŸûÿ� |Dβž.Ìïé£ÿ•t…­ö7…û§õz5ç΀ò n�¤tî®fE*eä`¬•-pªç¸Ô@"óc»XJû—9¼ñ~lzÿEÿ-ô©jÇFܸ[߈ü9aw×tE€<ÅYþþîªCÿ©ºX^ØÔ7Ó!  ¹ ‘*Q²f\£;|a8* ¡]ã�áð¦·?÷^÷Îíäñ|!5ÛªnîÈþêª!0ï¶ŸYÝÛ̧¤©ñ~º#v⪹÷Tÿa­�¨œªaÞMMY%{Ñè60[Ç.5�^lx5L3LòãO²˜H_ÿò‘–ÿÿ-7e´r›K§÷å�f¦ø{.`íí¿n–€©–IýÏúeÿY'kÊÍÌ-³Í��@K!„Ü0�b˜î0:±§* nyx¿u\-Þ·LtžÑÝ×>ð2\Ͻù¨æÊ~¡Þf½õ7æ hÙ"‰;å|Q p‡÷ÎÁ6£èüRÝm?ÿãÕ´ŽÞ�&N9•X¡ìÌÏçðÁ°øšÙâjC<Å1) ØKƒ¯ÿú›u§�ßg]Ó:$³‚ƒ…ÍÓúfÐV>)WšwG_Kjä0ÈQ7Dö•›Øñ`�Û»-dþå¾¥þX>ÝäðÿÞêö³è ©„ä––~»ÿì¸Ä yãÖ£Wˆj½�üªi’‹Ðøå/ˆ�×è¿xÚ–ã1Ÿ´&y-Ž’ß|ñKÌ~&Ž´Ø÷YÈ‚BöiO?Tq,â!Å� Ÿ!ȿÚó'¶&4Ðìw˜Åé!ŸgF�¨5NµCrö%_o‰t°3¶2м€hY!A÷ù]E6`wÓòDÍ–JT’ƒòms÷°öÏr½ŠRÊÀÜ"ßÞÄÄP½¬ËÒ�ܽ7Ùbf/Œ�„ïå >B¸ø—lj+az nÍÕa’©uj_”ð?ù1NWÑ0dÙR–øÒgÏ¥“Ê+;s��x5ly¦ÑÃÛßý„1’Ù·:‹àî�ÒŠ³àó-c‹Ûh%—¦òø!UÕõƒšJþ4ÞC™Ù)õÅAо’ ì Öÿœßzµ/bE­[2ðP¬šÛš¶P¢êIu_Ô�y®Š2I%KuÔZ‡”pÎ8‘jÌ MíOç·5¯œóÏü?eºE[=«•QOm j_Â÷IÿIgq—!"­ ˆjÔùܸ�+"4$“£(Àb�ÂÙ‚õªcÁ>èi ¶Ññ¢z’  fô=š¦<9ù�œôY�.r$àÎüÎ <9ab-ògU%ÚÞIƒ�›*sÄž0(q‹`¦Qš×1UàÞ|Xû‹x¤–ï·ÿG[öJó+êÐû„XN³Î¼Íï²8á—Ã’#!qÿøx–ðW¤Á3Édvðÿˉ ÅàÿФqE õÕhA)þÖª¿5Π?ÿæÑŸU@ý¦a}—´ª§5œ—I›¡×îyž˜)êûOá�üÊj¯pZÊoè3/ŠL"[Ó'w‘’×0ôs†�ŠÌÀ¤” J£ÔÐo§)Ë$Ѽq ³ïÝB—[w‚“{|‹ŽªôØ B.Ý\oý1 ‚ï=:èFe"@�L11Šéµå­AâL;�ǨO(2(ËT°Ø$NØý–Róªf eâ´9•„‹M©À)O~Cã·/ð_|iI‚Ðïô+”Êʤ¼Çô Á�¥Á<�ÌtI¢7ÂâÓœ¶êS¢ßÈŸ™í=&ñQ’wdòÕäÖÉZõŽº4^9Dð —"0pp®#HÉyZ’’œŸ=9Iˆ¢ßyÍâårÛºÀݶ»�è ÛàÒ¯�¢Ämèi´´¶ÜÞy‘d#w笧dvØ?Ȧ<³Kã¸