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›"9¥_¿J¥V-×Ò�ZµÔ*mÄÌL>€µ‘9rĘa„ð ØcÄ 33Û­¥&ÿr61l†‰©¾Åë7oüÇoÞ¸d–áQñ¡=/¿�“øóýé9™‘”ø>N¨{¡)‚¶ûãľŸaš^�“ûuNˆÄíq‚ßׂ�ã$Ÿ±@ÍgšÜÙ~[Ɖ>Žà“y‹ª×Ú¯ô-Uî€@ÃwªÆÇx`×O²æ1ôê¡kÌ�6N¦ý—ö_WàØE×<ôâ5_Éóökª~öpô�òUOcÒG¬¢jÏ¡ôKš¾weKôàJ®£i—U$`C™È=JÑ];‘ͽÀR)û =Ï[bE™ÏLhû K̵†„�-À‹�ȵËs—1ŠC¢!!9u|  ;çà¹ÏëŸwúKG^_Œü¤þåô3ÐG˜é¿÷N¢~`?�Mÿ=ý�ݯп éoZ—ìw°Oñ¯ëþ—ÿ´ÿß´_î¿Ð| ÿ"þµÿFëFß�Ï}ü? {W„ü¨áSâÿÑÿÊx*ê5Ý_óŸ`$ÿžú þK‚€Ÿ•ÐzkÁåßó_ðŸõÁ|ÿ&þ¿ÿûwgÏÛOd/ÖòE&ÒïTÿö9Ñ�ªãþ³ä—ÃS;‹¾£¯™W-y�™6çåÛ?¨~6Áïœ�,kó6C8 vÊ Ç"ÑgKŸr³þÖ÷ÂÛ*Q]tM•Z‡78ÉɉӤ_ÆI {¸Â»×ßSŒ0þ…Çþ8Ö/ëxúˆ¿~ ›�ä<³˜À86~Ž‘àZ(d½³„Şɔ7IšæbWÖ§.›¬²×P–Û’}’¢èþÿÜ›‰¸eþ )¼<*3“ÍLcÜÖ™<ù¸ùúgþzស纟Ýa»Ïýöjl8õ³ÎYýÄ?w€ EB¬\¯'eÿ¥×ÓÈ'c`wŸM¨]씓ºòà’·c�í½×®*>ÁÄ#¶–mgóÇz«é³Y1ë?šú˜ägî‚y‹(UnúZ‹öÌÿ™é>_Êxbsò¹cË¿ýL“>��¥âÔH7^e- …TN6©P#œ�P†!æR+Úìí_ÌÑ}Yb|ºC¯ñäž9Ë]–ßØÞ…ÑŠv;LÙGÿ›h¸¬¸BuasÕӑĘҬ½Hô1 ¢BŸ‹2ä£|'ÚJRü3 ÉÔö¿OØ5^×õ|õÐzÌ�+û:“{°!/ðCiÏ\ýD%wŒ}>`g­ßv_sϨ[Ù׆>�Ö¥$Ïrì�K7!­†+ÈËÞû%&Àjnñç1u5Ö úüåýú,3‚8ý¸”ݳÚoHRÚÎ%£¥Ó¼‡MÚE¯~˜Z¯êÀPáHó7ϯ› Æ3[hVÐ�Ób�ê?>ÿ½Ó„�;å+µÕÅÎ6Æé9lòÌ÷Oyê„çbÖ¥ÔÁ?‡UðêuÛв^"n&hôI{y»ë¨WÒ)y.ù¾WŸþb[…Nó{U•¬44óZ¤ôÓ8Ô"ç9+ç„Ú%\�[—WáC.ªØL²  ±ˆ+Ý’Ã €M?þŽŸž!¼ÖY_·loeÔž gêa§s­—Û( '–XϪ:Ããí�wÕ-€ÿL¬eðN\Ç�W�Ó«ˆ\*âƒå’¬ý¿„Auì5«¸0 ©ÖZLoðS] Ž€gPw ¾áÈâú²¼¶@0Á– n~ ò&5º¶ÄƒÀ(ÞìÁÞþǃÂ\þù¶nÎ-zKûðˆ�µà‡÷új�w°NDiDüÎñj¾ õÙÕ Q>qç¾É“GX¾Êò]ªf K=WÉø£f#8ƒ&E©DÓEN=, µ¶¢vçŒ$�9OSÏ´/5OÜäd - ¹FåN0&š<•{ÛÂRZr5osÂSVÍ•r:ѧsž=ùoÜÍ¡O�ù¬ žLGi‘µL·÷�‘h(µUY ¯ÿõÇêD%ÐìÇÐÈæªßý‰©Ÿâ8,"h7YÿàFŒ^0XùFRã'zb'Â|öûûu® ömæ„§gL"ÉúQ%CÔð3IZÎÚÔ@çÙäÿMNÂrÿŸ®uÔøþ7¹w½MýÖÿ6:?‰¡�ŒÐ‡ô�Ù7ˆºóÑ,¼Njá(�O‹\ o 4Ç"Nûé£d•¶›cñØlÑTû Ü·ÓåIv师†Ìz¼ûLPÒt+«B}SÿýË(Hâ¯k ™.Äê8kšRPYÚg÷Îö?úâëúZI�¼D¬+›á ,!'ê-îùPÖ{x™øZ¬Vr�û¦†¥3ÈJ˜ûzèø…]y^¿ ² »K»€çÂìýƒË[£ð‡ý�¶ã³$Žb>ñ±š"8QÔÁ<+gKLd©ýx/¥È3”]|ÿ’m«ÖPËó¬À²»Ãϧ€\!¾ñ¡pŠRO‰ÁÀ·o}¨¿Ö¾ºSÍG2„\ŸhÝgá>oyÕ Yý³µ1ÖlÔOZ_9m}Šk¥Ká LZb÷GÐNå:üNŸø5?\mYü@�¥ã0£ÏÀ˶«|DÅ. ЪíY¬Ms7g$�ß Âu£ :àùñж7~&ßdžŠç\x M\5½'óå1 QOuφo'üŸov1r&YþÙºØjÒÄN›DBÆ®ì“ÅHòû6�ÁÀ§0Dݧô¥‘×kxýJ©ÜY؜ֽ³Ìäb›¹´�ùQX – ½¾,¦TLTÄ\/Gû•b•�ÄQÏ:zÿò†OªÁ13’­„÷`[¾Û_c/üÆ”× òû#n3Bß[bÏ�”©©ßNqqîg]@ Ôp^Xôùé4XpnqÍRnü .!¼”Wc>!h÷¿e?»v{èŸþ ¯X(ô› _èª^²§%†ºvÚ„�Öm�5-3óïj[jœ€›ËWò—éåò¯åMnŸÌzrÞÉ‚uPj§ÙÉ=±X‘‰¢j§�S7üv@