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ƒ�ä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 7�*‚‚>1ŠC¢!¡kTÐ   -À·½ù¹U¿¼@ü÷Ì 3y^òOú/¹O}~ ?3{~¦ÿ´êæù§ú/ÙOg¿Ørÿ®ÿ�ß Í?Íõ€~Ûû~Þúhþíüÿaÿeÿƒý7Àoóî¿õ½€5�;Nþµø§Ö!â/]};ÿUÚ'ö‡í?Ó?i?4½˜<÷¯ý?¨GäÉ?»~Yð+Ø@/h~þ[òçËãùŸC>´ÿ�÷þ9ýü'å‡Ãé”þ=ý?ýWÝÒ×ðÿóº~@{>üçû‡üñ¿‘a?É?§ÿ¯þÙûÍñqë§öwØËõ‡ÿxå>¼è¬BÖ²–“dJ wׇ/÷à´™Td †Ûdm™y ›´ïv ÿµW�Ú™+²�[¡Ý`vÀEÙ•„s·¹H‹]ÆÁ³í¿’LÅÖj¨Ç  Jaé"ÍŽÇ«@"�®rP=#{0éqR\›Èû`ØX¥}ph¦¼Ÿj¸r? ÍÒ =nº>;G$¿”mVwÅŸˆ ca �ÞìO.Æuá;©þ ?“ì²ôÿÁ(‚™Q•}€SEdx8ì˜4éLñ~áŽÖ6Ã{Pý‘,^úô;øówîï‹‚‡÷ï×|:ß2ï å8 ¼üÑP›Ç®ü;ž¯br2ÜÑ+F-cg1‡³£ñŽãÞäO!åWµuä²1ákXM§$ügÍ}H)d¥‹I*ÛÃÈÛÖ¢Œ[{@éŠ×žÄÀ�]±®·6 ~4(²U>¥—û&C�SLá/el ™îR9¸5øxE|rE „—bÎçƒ!¦�ì »ÅC�€Wu5èRìB¢Ž{Ø¥X�ð[š$NTrþòTq®ÓÄ¿rß\ÖÕ41�"LÔ©ø¹[þ OÔº@ó»œ4Ô�2Ú²¹]/ùWzv ¢³nR•휨2úü|«ã5äuöĵüzÒ)‚Ë7ŠÂ¶F^Cêh¼ Q0­,6L�Ï÷ðs�Žv>UäÞÌPsBmz—T˹œµ?QåÇwù?Ÿ ~øæoi¨s~Ò÷MBë¤6 ß�ÉäºÏ>¥æ…NoÁ¡V¬yʺ0YxÓ‹'>…UNMLþÎY4ÝËU45s ,=¹ŸÁxý`Âeïåö¾mŽOµ|?>Œ‹ÛºåÂ]Þ’PEG�j —;+zTáâê9ê Oä`ÄdgÏçvÀö{Àÿ=Ħ›Àfuw(n %UÖ,…Q�6ïİ jvea¿YñÉ%�9ÌÅùG¾ÁŠÅs_ì.ÜŸÓF—Ì_Y 7Ë0tïڨðëÈjb�Aÿú$m±»—v |vqs´;Å�Àç�ÿÿ¶ËÔŸs6(>þ¡ZÄ�óäÝ™…¿ÍþÕcO;Ï/”iHw6PCõ�ßÀîú”WÿçÁÈ �˜5ºÆòD6‚‰ñB¥ÎˆÕa˜Ô*ÄÐ�ÏwÚŒþ_¢ª�„2hæÕ3C‚PbÄÂèÌ£bIí‡úC*AÕ¬å÷V E×–Ó`ªqîèÃ>ÝNjR/\þvf@äÔ0p¡Ú…E™ì•ïb¹\“sÊèvèë÷Íd†Ó ëî-™‚²Vzé.½œ]�3ø9LŸ�¢«Z”ˆ—æp¥åm®X��æ6Æ'Ô"†Ž¥ $ëRZwbúp\¦7Âäâió,¤cy5'6«7~ÿ\$Î͵† ©C>ýžr;÷è娂FùÎY±kNøŸóáÝàFdYwbÅŠo²¸,Ò¶D0ĽÈ"�fí‹LjØÍN®/%ab`—kYV—‘Pâ ´Ýýª»/ŸíN°�{jyrúÞ!®8‡ÏcÜIÍßü¸R9ªºþ±óÄ�q[òb¹Û3à¯ðð/Gуº�~�›=Ç�u?F¦Ì¡ °ðÅxx«ÈÈBé×7?œå¯GiMè­®±å†[JmÎÕáŸêa>¸zÏmÐ,2Dz)ÕDPF3lá§%¾ÖÉ/&:ã|g¼"pî™~èÖv}ˆì¾¬ñ…ÿˆÑ‘é‘?¦œ(ÿ^*·‰dú”¾##(¬ÝÖC1Ñš ø6M°‘wGÔ:|óõ;Yjûݪ­V¼»ÿ‚ñ ßäF…¿ß c“ÿ79õ�ͨ âny�çëmK$]‡Â-Ë^õ4 ^}å`L{¯õüqGŒ°„á]ÍœQð¼G+ÔíЗ¡ÿi-’›š"ôæÿ)ÿÞ{} ôÒÔŠàE’1Kû|[Œg•òãþ?iì×�!'7ñûxõOéTþðëO¶#å5‹kËúƒÇ‘{‰'éwÇ�フcèy$CòôÔü¸.ÁÆï«Ä‰ã¤kò óýS–r±1åb„|¾†�ÖÃöï‚H;C™;ªü Í+ùC&v¾7”ŸnäÌu²Ö0åho7Gnž±´|sÿ·kðý ñÎ=k–z{ãõ¤ò:{ß‚BÅ—õö#nÿðºc¿ÍË"ŠÕgHâþ(… å8I>3ëÍæƒ5Ïs>Ò'×™œ‚‚ò|W•³‡cv§ÓctÄ!$çÀGáµØYx1]óù„tØó £b@¾éܬÀò $+4µ¿“¦†…žlãélS�Þƒ•&>†>vCgŒo7‰{é`L<Ûj§ß^\ó¿`¬Ï¢ØnS§¨2ôû 4¢¹ Õ¡Ò5ûjÀ0]³áTI€ë3áT‹ ðù\P¼òMâÖÁlÎñnŠ éúÜò ×y 2… ±š=áìœ wu`b¸àÙY EÜ0qÜM‹ú�×B’\P“˜³ÿþŒ€šVyj…ÆU¸‘å…ç9ã0A€bfóT,b?bÔøÍšUÕ!ÔÌ”×a �x¯AÖ ãªså0