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— �Û¶iK«V�ÿÚ¶mÛFú;íÌŠ‘ý¼m»;3s‘­S§VrÜݾˆ˜üc²uÏÎ + OŸŸ?~îs*M^ÖTBñ³Aû¶¡êè¯<ºnp°’Õ».j¿þª²pê2˜ÊÁËÏí F/„µõ×ßÛ›®åZØ[}Ó¡ÛJáVÂ⺫×ÿHb÷�&ahÓóJš ›ÝôCA1¬=Ú( |÷qMauãÚ¯!{«Ðø¬¬buKY'(BÁl Q †BÙÿeÿ—.Z%¹„_%g~ÕLøPߪð¥n—O�zçãD~šQ×[ÖŽtjDs“~�iÎ8áË¡ù´èróÆq‚pºáxƒžžhM0I~Kå@sÞîèØD>m¨œhÌýª®­Á$Hø²©ÉŒ¦´ãËÑ;ÝÛD¢‚Àpâl¯ñ]«Óù×Wïõî^Sd„âÛ•ë¯éÀ‚šöíÙR"ˆ”’‚ÊÿñPÁ®f‰�H"µ@ _:"£à!ET|:"³ &$‘«A&€DþÂ:VP8 ðð+�*‚‚>1ŠD"!¡m´´ ¤AB�³ü`ç?Øå~Ee‚q÷öߺwž£¿O÷ýÿ-ÔÌñoè_°ÞÌßà=Œþ½ÿO÷ýQëôý`ôšÿ³þ?àgö‡þ¯ùæŸÞíõ€pu@ü_ý–íyñw¶Ù0Þ×ùEù¨¯ûwå _þoþkíïœãoñj_xXÐòùß¶oŠÿó½yÖùëþ7ù€�åÒÞÿtýàøÐõùèQúö)%ð Žâשǟ`�‚ËYáQ¥ggóí|K$À64w3é°ÎÃ]ÐfƒÂçNcê#~ÊÎ9º«{´¾®Ã`Õ2�X©ñ›KX&ø'Õ€àý¡ƒ°Ó‰®åŠGŒqx·ñßʨ¾½NÒÒŒ‡ÝÜWŒÈ·—å€ù>ã¡6~ ¾é–”E}£öÌgû�„}–à‡iúO�\dq5©–ÑŸ cMþï*ßoFÝ;]l"Šmó-ÆÖ¼ÊßDg~:t7~?r·¯‡÷B¤»^$V›…ßj�râî�߇OŷϘ»ÎxðB–óàjn½i¶*»fâ¬24ÓÓƒ«ß%©ž)tÈŒ ÔÞ}L3­�ìÖC3…‚Kï‹®�Oî·-OôÀ$õ¹).;Í�Ùd3;¬Š9…`ŸþŸ„ü.íFór3;l{\DúÓ;Ÿç[%[¬'ÿþòCû _ n(¥RÑÁÊÞQÁT;uK#;Ÿ‹QÉå¯Ñ„›UËëùr|§²Zs iVŸC’é– &¡�’µ•ŸÕ÷È»î íšá?:‹…Ù.\2_ãÓ뮲kæK&Šæ÷Çíó-ÞQ/€Z|Z»=ãIV ú=‡©ž׈!þ¸©/áqsY8uëÓ|ÂñKGù‚þTg/ÉÜŸu<¢uÒËlÂÎA–Jké‘ Cm0YšØKø¼¢5«*ê“K|óˆtÿÆ@Bìcø˜õÈIzßÌð4ÒÓ>± g?† BŠ‹ÚËígUÔ–6.\³µÍ]AøÚ3·ƒ§zÔN¯+ ²dDˆ­)šížEfí)>ÀTˆA¥|~¨ÕùžêZ¯7eÌ"a$¥(ªuÁjZ·V]†™”wsúyÖºeT¼üÄüü+Ô–Hâþ Ü­@[A%¸§+8ãâ¡íyS ÑT@@L µB�Šò‡¶rùU”éð|gü³ôÌ­ª×úÚGÊÀ»¦ÿÆwáZZá¯zKíµ—1Ó�’ôõ8ŠÇ@g±�+ NQ‰ïöÚs¾á)¯Œi<®“í«ô!fó>"Ý9h„V*ÕbÔŒ »j ˆ¼Í!q1çã$u†ï�GéšÞÙ ¿šByÝ��‹dœ!%A™ÚºÞA²¢ÏŠö_‹¼sâ¹Yþ��& í‰ ´ýU€Q ÎÅd n�R¿3ZÈR-âÙ…BÒß ú dlbñ-ëí έ)wŒ ¶>Kåý0˜ÊQÿ…+ËÆs¨³¡ï’9XÆ4ÇþëT¥e¬Ì‹„R;¤h˜a 1 ÎâËpØê�5J‚ŠH* +è… ûàýµP}“ÚÁš¼Ñ±èZ“4÷NtÔPVΗ(ƒSfÏCפqÒÎ'þÚ½€GÌ&z¡GÀïeR€PüqåÈ›6hQx ùÁÿq’ù:*!,¥Ù!�Õid\á‘ #å$GÚk$ìûþšL5W_|Ô~1Ú\ `æ±o‹P¯‹Û)£lUrFà[mgr‘fˆ)…ñPÚcP×UòLXÎ$1�a>,GÈ–¤¥PÿÄÞ’.EAÑ“pŸ"·¯mx_+0z{ö�À±œˆÞÏ+¦‚ÌÍ'Äά�a<±êÄ»|v�%èò ž%Ì^ý6ÕmØôì…gÖ÷sü%2ÿ|äÈybãâduÏL,°Æ ./•/'æ@“A+'#!ÌÿÄn+'©ΨI64',>žüšûöUq2väbýÈ¡HqÌšgÓ¸¸Æ¼�§êãŒiׇ–|Q]¢ÓÄÑ‘ú#·’4­3×ï$�e%‹ïY qaUê˜}ýÌ^Cq,žxEUz`o!Â!²¡›­¢Å°¬– gþ=¹k*ÙÁlÑÎPI&‚�G\ß§°ñX[À4¦±1[%弎yÍa²¥C@OÀ¾Cïи dnäûTI2ZäAŽ¡q`WkÂ$ z¢Àªg9?ÂÅC÷ëAíñ¥¨o�UfCG€.TbP»›äi&•‰6t�ï4ªõuJŽD S忊�ñ6T0Z†Aör!]I\Éíy ­`Ô€âyu‹ýÁqÚoÓ¨f:Ü—å„q,….™"�]Û¤¿*’aD‡îƒ6|ê+¯ÎØ-²»n#ÖX©å‰«¸ðêpƒóÑ9¸ÂLIRk�({Ñœ‹ YÊÿ¼!•wupÎ)ð/ÿ‡�=!|ÿåKLÅ‘�¶+Ó $ cX¦„ö’õ8ª?ÿ‡9�¸D}ÜäÀÛf×…\Õ&×^‰÷â�5›>JWwʈ5yV!F'äN•µâÆPJP±˜™IhIzÚd¦¶?Ñ| wc/}딑Ÿáj‚ÏP(.¯¦•Öfk¹™I 13ÒÚ‰<ë ø6_¨ì÷X¡p%Šobüm)D¿<�¶êˆå³�C€¦ˆì}¨ml ˜w.�°ò·oŠ ¨ö"õÝ( üŒ›M¼ÃÛÑ¿,ÞDö