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��ÄþŸ!Yÿt&�N¥žmÛ<Ú¶qÚÓóɶmëd�ÒéLžmÛoíí¬wò_*õ¯ÇCDLü_kX•:cofôÚØ%DÌ�BYiÍGóañéí©bN,ùSeš¸…�^3(âW0ð½1/éE÷bᵉá> ¡©‘ÂL éTJ¸C›Þ�~ CmjT0Cž;€v ÃøŽ‘À½Ö0†7½¼üØ ÷néqÞZWrÌDwÊ�9QÄøŠ2ã—PÌ%ã «K‹¹QØY±K(îM°Òµ­o¢ÀÙm…ª|ÆÎ…^/RÃH”ó&Žv%�ÛQœÚ¶¬p¯8MýÒúä(A¯9jíÌê$aÓ"Õ»l”Žˆ‘5IZÎÚ/¹eû±ø•$Å'bÀ×H ö§/»1}ØO–+€¥Ñ÷ÌA_´NŸ¿*}ØM&(ÀLج§À§�à�üP€XHü-¯‘ ðAž(À8§;`¶LQ€~ P“¾xƒ¾Wú®hômú†Ð—Ûœ¾È²åfv(:Ùtú™¹%m'©”nºèJj»%Eé Šçƒö¿ºÒÂXÛ–ÖV»"­â@ãdIÅ—ê:ãmAÓÅ:bW¬+hCK$ÁÄÕ}Eê’æg9H››¢Øåå†)ÈQ�¹a ‘ÙPjÀ½"œÑ䆾Ìö {Ý ›äÏ­0e7'˜;<»�D‡ŽøÒ47CçŸT2+dt2@7CÕ5¬ÐlR¹;÷ Z@÷g7ju3ÿl —{ƒ8£†;  Hv¸H¬D3w éý€læ,Æ„kÎ"K€tv89vŽF8jVÕàÿðVP8 xÐ%�*‚‚>1ŠC¢!!8½¨ ±ƒÑ×ø~»ø±çÕÿÿ+º 7º_‘ÿ ÿ€}€k¢qõÿ̿맼ÁÿE¹Rü„îæõ�ö{Þ�ø·÷Og†~àÔ¿²zD{õý€õYÿúµðGúýÿ{üçÀ¯ë?þ~°@Qþ¹}€~€x á+½=nõ43@ñÝõ'°_•¯_B¿ÖbÚ�ñsH�©}}pm®ÝׯD€ŽBPëÁc*,À™K¡û+.ÒÆPh2x8§MŒwO­•Mt·Ar· 1ç-B6-¹ƒ¢�·t"A³’ç7+û…,ˆ&ÚŸõH‘pYA°(®„ö·ûƒOS[nê¥äfa*Ó>Œ‘'ôÝ5—Â[¼S‡féx¶×F%ÂKó€þþÐ1?ÄÔ9ÆE�¬//ŠàAB5A2?h½òП£ÏÃ1£)ª\èôˆ ¨Ù"SZ Ç æÀS¿¦ñóLWZuc€4ÅØ/ \ÏŸøTz�éY.¥¿ÁxÔi›QJ�X£ÙZEƒ‰ ë.r׃J½˜,ã E‰’çìö<Ãð¨”xºQ\»œ1Â)Á5!Ó®fNàeüWíÒ$=T¡ëMï„îÅW´H•FsªДcµw‰³«Œm*K©ã£PˆüÅ17Œ_Y^ö”Ú�¦mݤBÁÆ+j çñÄt¹¡“÷ð-Kl!ž�ÿ0XÙA¨5€oåçÊŽÄ·*5cÒo²crgšî N@€}$@TÌòößžgl›mp఼ϸvR±ýÕ狞~%ü³×ÖuÄ$Æ(nA›f?~åhѨç�ü1òØ0|JSçý‡¦oõšéÈd دLæ–´<%HÅh"çüA<�è¡öüyah]£!×Ò² Óó,ùió„ß÷ù7£È|.²$ùg„«þá°¼Ÿr(hDp^XfBVjèêoïplûß–Mü»¾>Ýué0 ŸØ�à?×Á€kA/ù[šÙ`Óyã‰r(+’¥\‡ÿ?ê—âoÑÐÙË mê_¼Mt-S¾}ç©‹]Òh@=³ñ6]w)óÿLÙ§§ä�ëJ3ÕÐ)ÿ2óÝ¥ þœ ²KáΊĹg{ȇÿÙ„_dÂO¶t§Ä#e)Š ¿Þ`屬 ›úñа œ€ÚJX�rk¬Ð¡‡–ÿù%ryÞ¾Ÿî51'´EOž6—ø©3–§Ž HÒ^ç–ÛžÊÙ ©u¬îqUI5eØø “Z /÷UvL:‘5Êّ̪õÞŸ½ImI%Þgh&×).Ú&ǽsyÚ“i‰c³ç˜Ž7ªÃ»(o¹LÈ•=˜„Ûu4t-‚јIù5DÝÙIt%¥ ¸ç½ ‡ûÐÇh¶1Ä›ÆôTèÃZ¸NšcÎ݃œ»µÝrõÖ"µd|Ë‹·¥�G(`–CjUQ¥kqüÓ³@†ù1q«rA(+šFy¥–f›wÈιäWÃNƒ¥<À�ö7DXÓ˜I`¦ƒPv¬Ù"pàýáŽHÖže˜Áßñ¸~¼Dó�™om ÈEû�aê_ÿòR¤Ï©U¾çª<QõCùƒ×Lÿ¹µ÷ÉÜ´"}A(˜ýÈU }ç'?ÒЧu\$œîÕ5êœm«mx¾QeÁÒË™x]Ûé\»X£',Fñ'¡ÿýîiöKdsÌC)(_ÌUÊÅsõ†|ƒ4¢ü%.™‹3!ï>®ûþ!ÿÆ­ÿïç)ÿéÊjg\¹\íž&MV>°âà0™åøúÓfë׋©wàœ/ÿ"©�O¯‚l–1aZayp Ž–Óú¥ÿÍè>„¬¶ŸÍÀ±ùõ€Ý‹Q@ß°( ¡½@§3ŒïK='LE•(qX&=ŒŒDQõ�Œµó'¯¸õ´Éóò­f÷úÄE²Os !o¦Å}.Üô.‰£àYþµÄ;Áʇ-)ã�#OÈVÚöøì…ù åÕcc�Y°5¾<4™º^BÌžšð YìÌåëÍÊZ�+¸w’(‡z!‘!Ü‘úØŸ3(¿kMM^ò,°ãQSp4 +gÇ�W;]ëÙz`