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 ��ALPHo :¬m«®�£+ë333£«¶\EV*ffff´^qb¹ 33333Çú ÖCëjí{Ï^;õ>gGÄ(÷Aõ0HeŸñ65ÑÊk)„`eÁNoÑ¿ÆÓ¥v;µU¤y‡¶Mªl n®ˆsa:Ö(˨C¦ÑYò%e¬KÄØ³I™›Ê�T)WK÷4ålãà ¹Gw`oð°û@d…kÉÓk Ö¤—ÉÛ—#¨5¿’Çq ¤£ûÉk=Ï�:y_�`f¼M Õ ”Ö–Vrz‹˜ÆÓQ »�G…0ïãÀÚ@ec`¾¹Â-¹0%öV£$ˆÑ-ùš@~½„ÍîM‚i{òHªÕãž$°O�ónÕ÷÷Ç¢gvànó©p-�¾¦àͤ— öËÑ“5¿p[ãÅÑý]-¿Au‚_’ÓŒ·I@µ\JkƒˆVÊáô OÍjØíAШ™Ìû8ˆjšAecvs¥“ä”ÄÕ˜´5êA9ZK¾$¡uÉìÞ$±·îþ�¤J¢[¢ãž$áŸ÷`ÿáa÷Jw¿:½4•L/uÿܽ)—í®ÿ¾ì{©¾7ýïqÏÊô¼¹v ×Jt­i‡‡÷Jcê:ß¾!K#j–ÓÞ–D§¹l‡Ü*‡r™ŸÙ’!šæ¹ëf 4º||ŽïË.ïQ�¢‹¦ù'Ul–¨—ûvãêVçkñgTZtþNxÓËê|.ÜŒ¨fÎócûÑèñÎÿÒZ,ëKÊqÖ‡H>œ¥<‡Ý�ãnul/L1htœïÄ Žó˜n ÍœŽ �ÓÛ(Þd4‹P¦3øœ#(Ÿ‡q(›ÂVë.Kè.û#ÙŸËH”Ë­H”Ë‹H”˧H”ËïH~æ²ÉÚÿo $¿rùÉç\^Eb\îFr7—.$]\E¹‘¬â2¨G³ÀEŸÇñ¬c{.ŽÈgŽE|ôKŸ:Æç£PNÓZú'qÒÛ1De]„�®â¥"ˆÊ|Y‹_\ÂM¯åw­²õ;7ÅOwãVqoäu½ƒ8è]No 3~çcÓeq+—Í«Î�»y4£"�[9Ä�k±á_CÚïûf3ï�š_äÝ×úÓØ]Q�«§~hmŒ^|ÚS~û‡Ó|ôáèœSý9;µè„LÖØ»­Îâ»]kuDùôÚ³Ÿ¯íMÕÖÆgk¡<±VP8 tp �*‚‚>1‰C"!!*MT ±ÚŒHÀ`??@? h@~\ZôYü™ð˜¡=;òsòs¦[r;óù-™o㢲þÃùuÚ?Ìô?üÏõ®±È}~¶þä{Äwý+÷èýWýg«×û/`¿@×/UŸõ¿µ_·¹ß¿Í¸ïëôõGâ¯ÑY‹-ˆQÔþ¿‡º‰j;šå¹0¶‹úi{¬·yèu½†:+NÓçŸ21lP‡A ´Ö`Êj†"?Œ•?’ò\�ˆ ¡Š•Kßú &󶔜N«nÏï©-úR‰×L—­±ìÆzÃóJ[cJjÔ3¼Y»þš–¼á:P¥Þ$ÊU ’hJ|¢Á™r�ìÛ¼HçHWý¶µÍuV©½â߯¡Ÿ ¶6 lZ¥« —`koÝ‘2‚jH àYš”H~u¾CÒãĦn˜ðX“fÚŒßk‰4pŽéXýïø r›T'Ì|LÌ0I£Œ2Úc³4 ¿ûbòWðâ¡`r¶ª‚²®¨52îÅ—ÜG*O󺙎·12÷lg¸Ð‚¡ÿ¬QS˜3¶“·(¦“Œ‰·K´4:JÈØ´50�RŸÇ«÷þÕ¾Û8Í©l2»§ P½&’>Ñ;­-Óìæ«ÆbÝ¥N†*À1£ãÌ1QôÍ!lï%ÿòÁ±œˆP©þäµÙŸéqC "9}€w ¡ï‘Öx#¡,1ý!ÕU8ñj:ºS(á@�ò‹Œ¾ïþ‹'õ–»)êÛ�v}CeM[5ÜST§mÿuÁý°‚?Êe ó‡'a,cÑõGÑÌ^ ýÿ[Ö…ØËÜ7�Íod�”7RÜV¼•o3(Þ¢"ÚÛÖÕÖ×ãºG‡1Oßk1{?¼Ó£+ ÂÎC—�Ã࿃Žé¿긿E½I È6<)4” † €PNùf{/j»YôZâMƒÀÈ %”alJÀɵƒ žºŒ%™ùi_õI§÷0K„OµI°6YïV¤pLžªÖ1‚'Žùïj÷5ëųEº¨­÷l€°ê[U7 §îÑádù7pé”ͦd�Þ¹‚yÀ8šö´?Eˆïú”Û§Wþ?뤊ä8‘ÉRe]jFœÌ�ákúÿÿúʽÅÖoü™Ø;"KK?¨{d%âqþ¯æ?«®_úwë÷õâXvÊ (øjõM ÿ÷ƒ¤c¤‚H Á?pÆ—!¬~ßµh¦Ø´Í iyÕ÷ù­´Ñro_Àb­ü~ÜUÄ9ø�æ/*¶rKd™¼ô|½‘ü®ç®&6tgGÕˆaòoÂÐêÓ¤=Eè§Ž i’lÒÕ:‚&¶jæáßtz‹“ Û wEžV.zDÄ‘QBTä%1hh »¢2\ü¹+(XªZa’1�Ú™e¨/mÓT]ÓÌ*(ûýk³UôÕÍ&�÷�ŠüMÇ›”v³IN—¨Æ° (j­DÜÆð€Xû_ðVÎ%ÄW¸�Ñ¿Y ežð!!Û„ãÿú£Rê˜;ÿÈ\¼¡q†9s}ÏüvP?ô ½ÈX›é,üÎ1Þ\0ò'{ø Ü%àô`t½ÅøÑ¯M:Íþj^<™n‘ ßÖÀ^yﬔ<¤X*åZ @$Û23;³Œa¶Ø)%»¥»iÎÁ¡> nh »=PÁòÊñÖ*Ñà�å1¢Æž¸ÄØA”�Ì$‡›uþ)©"ö[Péy£¯V(ú€{÷T+n]6^,?Ìþ:rQ¸:Èæ‚FBŠ0&a(­¢Z~¿ô‚nPÿÖ�Ê#ñIç¯rZN|õïY‘ƒ`edÿþù®Ñ: