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']
RIFF2 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 tP,�*‚‚>1‰C¢!!h­� ³€iL�þ;ùF5üvÄù€ýnô‹õ[èú›êçêèûaéÇìqû[û…ð úítñ'®WÃþ·~êoŽùî?Îß±þBþf{$øGµ/öOÉïÉÎ'¿û³ö�ùÇ÷ßø>àÿÉ¿¡ªü×ýÿúÀöû9ì‰úÓÿЙYÖ¤ÿ�pyIÍeÿ49;fzVƒÈáð�”Õ/9Ó:c5säbYµ í¼)f3güÙ‚'‚„8 :%iÙA¿™ñ2Ñ/‰`×Ü�É[—úfûɯ¶%=I®/eQ±ç?Žî|ã÷ÒÝ›fÛÖ;zï& oòHöÒ%ÿ´nJ�~Ж’h§�½±þïá#bxöucë²™5Õ¥<­t9L¤ŽíH´:D™]œ�˘ØúþþÂ'~÷ÃܨÎ<”Wî9&J…“+s`J‹à¡·#q0øíZ”\7!Ï´ur>ó% ŸZj_g”ºøˆ‹ áâ*0€cûà}7 ùe&tGûËit¦|#ö¶d÷¿LÏòmÜŒ³¶^Źªò¿éåͶ·ÕBú_h“çVS¶¾/öP®G»éŒ´»Ä}ø|>o}d�CkìOÿûû„»ÿÞzÇÙ½ÿµú˜¾‚ûÞ‚4.•¸ÔÕfÓ°áÎKxT ٯנÀv¸wT~'m·ðVxî/ë5W(2÷H2 ÿµ³ø‚ë ~ªÌû‡gúDUk¿¶a!t¸ûNëþfâgyüDôwÓÝl÷iþÓú 5{iâOãPeöÆyÜšä•–¼OE=Èžó÷ç�O¹·öØÖ_ÃrÅsâEX¥¤'Š?G1œà“~¢nˆz4ÚÔm¸¡E€–®êéUQ#4� iuª«J=m ��C!1M>¡¸óÿ&³µOŠ\óá¯�ϼQŠs!¸¨UÝCÿ޳½nа¦%M,ŠßL×o.ÃNmâõÃz ÖÄ3K¶^UT°4‚ÏãÔRÔ)’Jß³?‡ã ª‡<}APðT\v¾ÝV&ÁˆÕÓg_ûké4Ö•†>$2"¿LR N¾4*D9æÃ’B;d¸˜œ±jíÇqùFeù�ãpqïѼ‰bâÏ5Î-âC'Y»ót & ?ì Áý9ÄéG�t|$ŒÅðükì<Âícàw—0X·¬‘ßçÓ™IOÇKá6‚ë¥î ƒ(&sõ°ý=Ø×\Múx<ꬤp×u÷Œñl7®K† Db,Û�Ï–žŒÙÌ&ÔŠg[0ß 36©l¼ó×˱ܺ.L4hÛ½T‹Ñ²£êßY©öS¢èlï’„Eâ‚J˜Þ£¹ÌF�â^CìBðñ¦äŽâý"ä’Ù×CN4]È©Çô‰Ž~Tî¨Ú;Ù;Õèœ6¹W­í ˜Å;Ï÷¹ú¯&Át¥ÑESHé£ÕH\5èF“ýÊ|4‡ÐòwöéåuI–M"{o1 (åp;ùÞ °æÂ'ÀŸ¢Ûe«:ש’8wQ쥦§ÞŠÊ5’,ãwØ®†e:ÄA)ód~N#˸g¶â*žŸ›ü.½„&ÓD(Ëê4dn¹ v™ô ^¨`§X60V©ÁÝ9mª8¶‹N®«7§ƒÎ¹Ädó=Ÿpc5/çç0/=øl3@?¯K½%r£xøì`jÃf!”õò‘ß¼«ºùsó±çª¾ Í¤ŠŠb>æYá`x@Òû7K6I‡Og•ôáÅ�àžŽåïø2¡æ\/–)‰<Ô–Ll�ï£p$UõŽ\î�éâ^r(è¸ßãul';HȲò�¹®"<^A—’,ù^𷨶éŽ^Žá þp&8�µq7-DÙ†ã´aØßd'}.Ïÿ]Y¼EÅíÂ�¡«êLÎY‘95ô3¹àŸ#°Ì?€y\1¼×ߣ¯·ú@C¤”TÆ(°d@ÝÁüE>.žv¨¢lzèYKtigHaôþóòæÂãîJwBy“~­iʈ‹“5²°©\×½ˆ'·|-7º�±Ey‚®Û¢àlñ`¢¼öÐ#%Æ+Ðyg•[êº.ÇKdga*¤þ%jÿäùEÂÂR3[…’:3ɺ˜�õ�|^î|ÙþËÞ�ñ\ׂ‡ˆ�þ�LäßdÝCWbôvÒçQ <§ æb\}’±eD`OY÷ÊUÀPÆBkOùIáѶø