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Û±?W®<ùÙfmkêÔ_GÛþ:šcG޶ív²mw´Ý¾yrU/ª;¿ˆ˜$&þýÂïL«×¦U©ûçùW·®=øü‹ úô¯ tÅÍê½Þ±óñ/`—Ù¬d^§þMæœðIÜ��05­ÕôË}‚>u°¶lâÕµ>V—‘°7gê¾cqr&ÀâŠñ ßG±S�Iè–³Wn4lN¾å£BXÔÆ(´yùaõ>ZU�õXa�U.ë=€ÈðV!ë³ð3iBÁîã)ûRþOù?lOZå]ÄÛ«äÓ"¥|̉úÜÀ¨§ ßêA›NUåè'{ÚÖ3éåž22Dx|¦ ÒæFEa‚´®qWÚsézUBà¡�sûw0çÆªFe ½ðta]÷4Sü‰}Í*%Ixº(ctEšþùÚGÍê‘?)8¸¯AçYν¿wéf›fYy¸§çÎß,p Úµ¨€'‰8’@)ð¸4‚’#[’Šˆ@  Q H"¹ä!&$~© VüFá?VP8 È0$�*‚‚>1ŠC"!¡û�¤ ´€h$ãñ8qø7z"Û•Ïèsý'J7ªóüL±ˆÞmøÍò7´œ»¢5ÚŸá8�ÚÇ€+—_ïŽþgÑï˜Æor/ó?–Ö´þ9ü×ýÜÉ>‡^¡ÿÁîúÇÿ±Ÿ¢'êè®?ÒwÙà°ýì0p Ggÿ-å––M DǶY“¦PŸ6@Ô]zyùZ�Æ é%Ã2#½¬ã™aŒ_kwJõ ·Iía–?8íÝôÅ�ƒÜxRS6YA¨ù¹Ìïôý�Ô4�‚­¯ïk¾´?œÇà§„­ä›þƒòÿüWdÝ‚åËþc§ò¯ÿ¨—a¡ú‡Þ#ÍT‹Ì°,ÍÉAƒkåÿܳó×oÐi-wfºuÜóUI�¾¶ Þ(ÐpV5KFÕ!ñÐJÃNÖq%èD®3ݩŨ<«Ú_$ ”SyaùÑ WýEܰ :Ðɵ—ÃQPqOï«D-Ip8†­ê—�³þ¨AŠA˜Áwÿ>\¯ª6äÒ)ÎéÀ¸Pá¥9ÖsÛ+2F;(³`–@9E>jû±åü VPxÏ}g‡(«�õ~`öNÓÙeëÓ †ý¼=rƒtoìª×3¹ÝÅ�`¸Í6xPÀ[’’úp9uÔÄ4Ö‘Z v¸‰ÆÿñøP~œÇ±×~ z�Jϳ‹›ÕƒêÊ{ÛøâÍ«b -IãÁr`«(Ä(ò/ìHM‡"¹wI‡ÿÓµ֘Ԓk£_˜?Æ ëX}£„* ¦o\Ô¶Q(”¤.‚„e5hPøžLlþ¡¹¿œóºê«éÛ?ò Gýþµ¸„àÌG:�– ‡tz¨šý”:‹mù¹³úIÉ637—ýa›ú–Áábά8÷U¯kl ËLj-å+ ZUÿ¸¢ÕØ.ÁÞJ‚ÊoGfñ&©blöËKæ²1êgz"ü àHs×®[áåŒÑî‡:ì#Íœ�qqŠ9ñü‡f¨ÌÜúbm š�%(¡üi5)ZÀ›Ê۱ثÿí³.Ô¶¯åS¶¯–¡ÏÉÔÃ4æôÓ�ªŠ ÕìyÆ=,ô‡6Ô>Ö°ò¯!Z=ÃýÎ*ŽeŒZ%…™…T¿ˆVlcÒ÷8˜ˆ=„O‰…ÖÐõ°³ÜªÏ¬†–bîð›j-#a]°U!ÃØ\+S_½¡„Õ!ö’Ý<ûû~R?(«ÃÞ•�lE[Ÿ œÁ6•PĵÃÁ´ßùÄF~uMàX×OsûïªNO²Ó:Wù80nx²÷bn‰[sN¾ac#¿žŸ}á2µ•ÑøïçG´/{ÌÀ”Œzía[?-*/B#keó“¿-Ñ•—€-l¬ ¿Ô#‚Ò@0‘¹PK2ĺOÁ°;¸ÃJíùø3�½ÞåS�'Øüa?�®ŒÛ³+'Lˆ€TÃÝC¢"° _� ((wM<øia±xŒÓn·ìYNž@Ž£-²3î×_\ê,‡…!Ú Ô6‚öW­ní“Ò”ÙXO€(¡9 ¤²ä ¹n:×;ðÝ"ü°H­Žœ®7ï\ü[Ɖ´lÙ¾•@ûÃü|?Ì0ïEn�ìê½:Û¿¥á œž`€éºÁ­cž®päg¿iKxçÕ‡�ù¯Ëu2ã2LÁW9ú«`>²óñ-CÇ�¸5e¨ ��*ÅsÙ: Ayj-ò¬Úa_ }æF§+ça“á3^¾1ÓÄìá/ŠnnàN²¢ö¸8 Ò•#rÐ8E×yjð–å±ú¦FWNç¶y7.a'j ¬�\¦Ä¢�áI¿†ßœC�¬á=�PõEÆ-§é?öC “ëÄ7€8€P­(ÿ'šnðD_(m°T¢¦9áâÜ#x/o/Å[Yt¨8ÙxôsN¡}¥7?9°[Tz’ZÔŽZŒKµƒœëÂß2³î¥a�¯w"7mŽ"o2_BõvÞe<_U þúr–äóBÐa²çp {,bFˆmÁ?°¨é¸ñx€