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 Ü Ð1�*‚‚>1ŠD"!¡:4„ ±�Øâ°~@r›ð·xÿ"òð¹ý�Ügh0ѯóŸ–ýª|À*þÕû#îëè·ý¨ò¿ëÞ�À€±•ÿ¹ÿ_·_µ?±_ÿóRûnþÙü¿ôó÷#¸£»¾½ç ûõÿÉ�Tûßô¹è)ü;ùßåôÐøïòŸð¿×¿i0=½ù’õQü—ûwæÁ]çÔþ3ü÷ü?öÜ/ïJ¿ÃÿÛþÝç7óðïÿ4~�?�:ÿ)ýŸ÷û—ÿÿ¬bÿµ^Æ©"ôÞÛ—¢H!1j¯ ØÀ?nl<½ë°â׳5Dd‹ù¿À³€Qú�cuߪ§Y{*4(tUè¾êUßHû(éÛøã�5é�Ôÿ,îOšGAÛ’µÌÁ’�—˜~~îÔáó€ ðLÑxV0†Žüˆ Õ(¶HÞábÙ¡ºÄ™e›rúnØÅ@¡TU¯9úNÊZ©²�•"˵a&ÿŽ«%𛼠•Ç€ð„þøo¾ïç�¹ºêäÏ*·D %=£&«¹ ¶*Ä+öÍg_•LÅnìsF¿ê:z˜S°“ýV ø p{7°jëeÒªÎó+ÎÂO&ýN?¹Vò·¤Èåð¼îlÉNµyk°E†§­ì²ƒ›¶Cì!å>òï;ŒbÒ¶–ÿôn©¦nŸ ˜€�,ÏL¡õÖ{­ ofZÖRà4?ÿ�Ö›ÔuJ“bKw«šŽ&ݼ[Ͷ³Ä¯ô‡D§XhÙàÅÅ•wªÌmÃQÔ+Õã¿äZ ö…åȹKA�–ªº/ºÂx I+Ê $ñ\þg™)8`SÔåo>*»¢aâôO^x37šù <ûŒl8Wjti’„ÐÙAø ¦ÖÞe.<'2±ƒæEÊÀ9ôÞ×/­sÙžÂÇq�¥¥óFïIüuYé*b=NΦ啪 dyŸ2ïÿõÊÖÞ\KÝÕé;àªD‰A…’†ð î·]»ã^Ç3ìý%©I»Ì.Þšði‚¸0Š]¥äE�(=ï5zã�¯Yz—[!\ñ®1þ5%¢ ãÁ�â«Á¾bRá$õ½XÉó |ë"ð¤â¡ÄyVT uZ@$ˆ;�°L—9·wO$áí�gLˆóæÉH±8Éê£�̶1Èù‡¤—Ÿ›!C@áÔï“ßÓc§ [ÛkÐBUÛ·Qûâ[¼²×߃ —•- õà ÄðùË‘_^z‚@õ%°Q–tL(`OwÈš¸„�XëÔqž¯Aæ.ù÷Í¥í[íÃä"×ÙÕ­/�ÙÂ’¸;3y�žë­áâ2,+¹$I`Ÿòß?mcêá‡?˜ôH{„¯É¡w6k„ôÜw—7$0|0×ÞM=ιFv«Ìèì çDô/õn‘fÛAéµÏ@›¢¥{VF $^ƒ)ê ‘±º¦ë3®2˜§l¥ËH‹ÛK§ÒslÛñ¼T¬à§-Ëñ”-KÑÆótÃV›¼à½}T¹¿•)E»æ™P•s¯HÙÐâ°B)|�ö×`'Ƴ&þ Õœ_—$ªÝ€ ëëºâÇ�g�j¶ÀI{âËÿbebA†Òî L‹ Ú§)ÇnŠ?Ž¥.^v“±çfT•…Þq›² )dM¹:ãa�âë”à:ûü…¹ú¹ã˜1 À„o ÎY®£ò;¤EÆë}8„G^MSÕ|j}ýiÌî¦7…¼€… »M³�/ô˜/�] }+÷ŪV~ZÓ¤%?²û‚cabô1…z_®x;¼4䯿™'øÅO!Oª¦‹mm£A˜ÜØ€ö¶^À‚=ˆ«êVcEì ÍðÞ¬=‡½Üq;¾Dd®ôµ«„›¦xÃoß[SÉbvûƒ%úlMΩËû³ÝTT´Î^ …C@ëñÀ?8ò­ƒß9À?ö#mBA»Ýlì ÷[kü¯È\èÊWS‘ʰÊáž²§*yîï~ëýþÐÖòMÿÇ|ÿ¹ì*8��©ý/í?Ý"l#ôQUº‘(Õeé=q†#CBäÇ¡�±iŒ õsƒÏç=æöÎ3<�¿¯ð�œYoAj^@X>›3Sþ[^urLVÕýâ{œÁ{ÄG,Ø!òœJØváò¬ôÉ(¿…/ð¶lˆ!A 5ù¨ò7¤zÊ™e‘Á«~TnñN†¶^Ï ½ü¶=á>„y[§ìƒ¦[,>Æb‹;q>%Ÿ”€]P`Á§&±£þÏÙ�½É¤†~“aàeXËÝÑGú4ü½Gh†ÐkÑŒH‰�YYfJqÈ)Œf§_Ÿž'ôC–˜sÌ—gû°Î!èg&¨Ì£4yb«�yHÊŸVÏ¥í4ÎhÿäÂ]Yápº~Éß5Úq�kq­\1@­ôïÁk È\«ž‹Ê“4¤ŸEÕÍõ| Ð8‚Þˆ¼ŸÝs{Ôn¶åõš]¤ºù�FD›´ ÿOCôW‚KHC¯::ßç­©ã§Xç{°ü—õÉWx�µC?ñËC½vÙ�å ¶òË¿ùAsîÇ%'Ç-,Þù†èEëÁà¢ekg—³·÷ £Ó ‰áÎ Ýjæw«ÁdÕ#¾€ ʯíËÇe¾Š4¥×�|2qÏPH¶ÿR…<‹\êm-ÖÛT?ïq§á iËlSÄG—oSJü'5vv\£Ò6D¬gEàa`J”–§Û`Á}²¬I»(¡µÂ'üœfÉ4K$ÿ’uÅ‘¿:ãáêñל\¦C”ŒÿñÇG¢yš9arO¾×¿þ\dû黱˂çõnR«t .�0¡†-{!€=¯æïó$öͰ#RêÞ ¿½á¦õ)sÀ0ÃGN{Dt¤ÈÊú\ò4}j®äÙÄS[C}콬0è_Ô>°LGç[ÃTíMÒBÁ¹Äovë„ú´–¾¯'T~ßfjŒ �¬>K¼”ÁÏÁªÒh?®ájx ÝO9*¼Ê ÿ¢ZL/+U’"·ào.ÝîUÏÕ[ɘÎl«–UI0ˆ'øÌ"d»RoAí­¨CS‚´ÄQªR ûÊšDQŽî{-m–„dÿ°`ƒÅ.i_ˆôrÝ«J Šìí¢ºoû�Ñ”}.=¶|öp�{´¬&(aÙGAµL)ÞïÂߊnøß›¶5Ž.ÿyÉmðoÉÔF8sëQoWø’²{p3¤$àVV|¡ðõŠB²”wçä –�›BÞ(ZÊ÷ûµØx`