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Š�4[Û!ImŒmÛ¶mÛ3+Û¶Wö¬lÛ¶mÛžÉÈxÀs³–ÁÈmÛHŽŒÙÓ[›f~à$Èn†iÑ?™T=¾"^Tªžg�øVI¦°s†‰éTJô‚#;’H¤<¾‘ˆÒ(É+’ì@œ&ëR”l¤+!Ý”¼žŽ†W(ü:ýCñ&Ÿh6öP<É&ÂPñ(ƒfBÞÅbU„„¸=!€D×X, “Pék:ª£IPâŠ_ 4Tø…âO5Mò…†Š©4ÌðQœÐT¬.ŒsI$$»e¨XçJÈt¥ý5ÉS°ð«h(÷Å«<š�X<U)­<¢4L0T¬Ô$�ÙCT"lc%_¨9Íð…µ>WÓ¼Sä‹бøQGCV‚s‰43â´PP"Œeq!•†M†Š=šwÒÀÖçÞ®„TX;‡¡¢ñ ëT4#¶ƒ5r…€Ýü…0‰"Ö±n%ÑbÎ_U¾^Õ~I·$ER¢K†Ò IKçËËÃÈò½d ÷öX/¥Q¬É½}Öy:Åy!VöµÎöˆå. çxÆêfu’¬CW ¥¹’VÖR–wÅ(4Ÿå}a ·`ùVœÂ�~ ô®”¤µÍò7‰}BÙ—L@)N±<ÅU4SÏJs\Åql@Å™ÛßGéZ:…‡³|#�¤]â±Ì p¾'¬u¸‹ÂÞ±ÜJR ÁþòIΣ–ÃŒSx%Ë›b‚¾7·K’N~¥Oe$•È/”¿H �r¬&Ñ�bÁïÕMR¬ÃiÎJÓõp¢30K*‘Á,ßI$ù¥ç£t%�dWv�V IÖÁ?¨ìÕœ ëW+G£°¨JDH­™¢.Q´!B''Õ„[> .ôŒr¤‘ aNB•áVP8 òp&�*‚‚>1‰C¢!!™Í„ ±8@ –LÍ{§ãÇã—Ì ÛûŸÝïÄ/‰>s¿  ˆûªíæ ú%þo«G˜�å?â}w}úÿÿÿ°öÇØË öàgöWö×àø÷÷_ý=` À?ú€ Yî²6µP çÆ& ½?l½€?P Ã㦓Ðh<•UdÍRÿò­?o(üîEŸ(´¨Pöèm-#cCÏåAQ±r¥S¾rn OISo¦kñ5#2©…ƒwºepu8£G˜H"·£tŸ09êp4,4Ò9ð«�CÕ¥×8%ò&$=ÁJ[¿âh“Z‡T(W¬BD/}ØÎ÷½]¸å¸cÃ!—Žkd´J¨Ë‘´Åþ7át=n‘Û;�p૦¡v¦V ø(}4ì ö€þð€Ÿ Ó®)V“Rqã9rÍó?s­ªVàÐ^ÌÃýEð€$(2Í‘#D:èXÎ�¥Ju`Hª4ÇÐÌW>•×^¾HÝN6GA›¥ûYˆj}Å.ÊÎüí×aê²ÿè®Nd#k¼•*=“"Š`ìáiLGŸúÿICü»—tÚt13”x /ü®vµî´ÀcÉ7Ë&˜c«4±�¡ÍœIï5�[%ÄÛ17‚£ÖßuŒ m.�$Þ ZH×¾°€íú�³8x�˜<Êìùy¶ÞÆþÕèe«“™UHÒe§ÿ1Gõÿ‘^àx³Àó;j4Ú`¸)ÎïÝÅ'É»ð7ÿ6.÷Í%.ݾžÂ™×>A¤ �‹±%žN»î‡€ó­{ç.!õöcø„ù71™¯…2ídY?4íJqD¥¾ýÊü)*Çü˜"¯Z] ÿ6ØSn¿¦~<¬“Æt£ðÁþ™‹6·�ÀåV§‘Ýe—vR*L¥ä'¨þݬ˜†dV­†u™£–?o;ïD¤@(¦¸EФt\<³YvÑa9õ%*¤e5sàšùÀ¾Qä[°‹l$P_â+P³-¦ËÉ®Æ Š}ó C»œýzÜ�d“ò.Ä‹R­��ê@wçÍ…øåÉëšDû†hãϸþ’sñËöq±mK¬ßÐþ:mvÑH8‚Hét0YƒÙ«`¯ãz0y}»¦¥}�B|‘xh~ò€ŠŸÀuMu¡8³§hbáušÕex0EÊp^R±,*'…Ñh¤Ä9|æ\› ¤è×]þl��Rˆ™†s½ÚS)ÑDæ{2d<+m­€mÿÿëáayYòЦéš4žfk%< Ÿ:m\±%&è, ½þN@û•DïüŸçÊu¯ˆV ù 2mÇØ¬©7pa;9ä#N¼" pªc‰*¤˜ÓÍ8f`Ð$¥ùbéËêø”ŠTþé½ùYe^ö;FÚ \ÍÉRÅA¶h×ß›¶a;–šu TñßløËÏN«þó!¼©ke�4í!Vå°£{RÏøD8Û­Ë?G:гçC;£âÃóKx¼á—êö|^]}PlSÈ/'HÐýg¨CÌJJn±UþüJºP Ò·6mðJT]ìþÙõFÐböî[—­Mþ¹4qÌE‹X¹ 7P•„[¶R­ê”Zñ@ÝóÛ6SÌÌkÆ‹µM�æÊ«nÕÂ+ÃT“Èyc=r>"„ ¥^}Ýñ’ àÃu"Fdk†ÝsÇ;gótœ`_�wNSB¨,éEµÐVÑKçhåšaÿ›B¨.ô"û†sHåm+¾Ü\ï­çÉP3@x¼;‘x«á÷Zü­u̳Xc»˜R3¼éZš‡¨F]Dƒ{"f<ªþœ€è""rgî˜ÿÉÊ+(+j <F}‹nœ©up%)ë6þ†büXþ‚`.zµ‰SA….óh1¨ÿèo;ÿ?»jƒÚxbTó,ˆÇÓ{<�VÏzäÍ(†IŽøÄKߟ}·ì0YŒs{6êXbƒRû…µ–еžœ8ìRú÷•Ø+:ºâUkþ£qpÂþAúù'Ì~»–×púÁB8ÕZ±ù-Já*òw�Ж\ÙÚÕñ¦öþMjȆËu¨cåœâ¾~U)«‰Vþ.Çc=k�Þåñ©<ÕàÒ·™Óºí4ºêÚ¾çûŸ¦ŠuAx‹ˆÀ¡6Ké\÷},"ïÐWq>ÿóÿðwýΖ`N OH£. Ùca’˜=•´œ{X �úþ †té"�ª;?m3QŽ7 BÚX:ù§‚