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ª WEBPVP8 ž °3�*‚‚>1ŠC¢!¡û5Ü ³jbÃÿ¹ìè¢^úßì¯ã·ÌÕSúÞÿÜN\£yÔ7ä³~èÿ•÷Íþúìʯ0oÓÏðš^꿨ì¿g}@þ‡þ«ü§»7ö¿öÿÝýÄz)þ¯é;ìoèüÇüÇ¥§íÁ�í‡í?¹·÷/ù?ŸýÀEýtþñÚø.�_EûO“óñ~[øKÀ Öߨ?.x>ù7õõ?Þúõ£Í ŒÎ€ßΰÿÎõÏoÓ>Á«ó¿ºö—ý½ö-ý”'ÍÑŒ¼¢þct ÉÚK´nåhöظÿ‰ÛÒ šåÙ[Š}íÄù’,F ³|qo<û�_ñx˜ZÁÉv*†éaP†EбÿÂ$øRD"‘Œdã+ƒÃ'~*ŸÃ„¬HøÉUCý6ÇaΡb÷döì£Lvé‘ÉbùƒÒª€Ú=•KßR½@Qtê ïª|JLW³fÛŠÝÍ;Zº@X*Iìâ¯1[ÆÂÈ;Sr¿VÇ):íâ;D:Z ûõØ{²⣙ïe-�§&ôÖ‰åõGdÿ�e�é7thÝÜ#-k4‡Év£ ¡g—QÍä1a�}8%ONþáËŽ!Ç LÑvjJ1SEb3Ýž±_åÕù‹¼ÁAš9ªŽÙm¿ÑFó0=’H´ŠMÏc‰’Ûc”OÇüåè®Îæ6Ê~»ë²7T‚gâZbìêS˜Ô`ö;‚šŠ÷ ¯T³)ª´Qÿ#¿ÿÿjtå¡k›š¸÷‰ÿ�Uáã.|J{‚¿ðª"…N^á4‘PÐì5â’[f½NUúc0¦Íã ôz}:`Ár3þ¾Ž= ��-13¦�Ö„-’D‘£2ëIF OYš@ƒ—”Ó ÎÈÕéÞ‰M¢Ò+_ßåR»Î·è•� Xg¦î”Å?S4ã0Ú RsÆ/;ÐàÔ¹‹È>¶åTÍ>פrV‰è(©5i"¹}—àB+IcÊÔ¥Ðn<ëúß‘þƒrä'ï#ÕáŒr‰°¾ÎPýÄÊP¢¶×›û+»Ÿ?ò“Ÿî;çÅ_Øï˜„T�azZ81oðú·üô~ªÄùE"±Ð"Õ{#iƒ÷ÉýHâÁ�;ŒW$’­}ÖIHÆ5ÍQßû‘›VÂ/¾W7fÜSxÉ,<¦¨ê½Q„S:xEùÛò Äüpîÿ¥ù2íOO*:ÿxi%’2cõ‚¦­BÁÓÒ[±ñ[½åÔ·‚cØ ‹Ï °¢†Ql™ߢô Ž¯Ž¥"xgg‘=�ä»�e€’«ÚäMþ`šÕHwûâL¿Ö�ùIÿŠÌgé�¹™kõ²æÛ™®—4öã!Ö#�àŒsELDâaÙ…ø“{úÒŽO…jI¼Ê;Z¤ßL�¶¡ \Oõˆ÷ÂÉ退HPl«�‹¬Ó¬x(ék¤çõé¾Åq±gx0Ž¢"vLyXJ=çöì…yÛÝ-BVÛã:[t‹Í¥ê­×^6Ò ÍDñ½íÜt{Iòãø÷HPJÔs¢ö9«nŠy%3pY \Pؾo3yF|ââ?ßÀ/p§p ÖÞh§'ˆ¯7�ný°Ã SœhZÑÿ'ú:ÉÝݤ4€S��×|£’Ki-?ÒL1°Ø ¨ô/Ìš.Ôï ÔÔÔ°ò™³4·1 ÿ˜È1ÑXôÍÈPÍ&Œÿ×TL£½nò#jË~;$ ÜÔôöËÇ%g¢ÏÝxš Ç32”ƒð¶—­X 8•²¿|Ž9Ò†Ñ?Û£TÒ_ßÒ'×`ü¦ OצF  “¹y²‹ýõ1«uJ‡£gà¯{é|éßH,¬ª°_›¥!¦×Isë†.ûÙP)§�%š$µ:ñ«ø”ýh¾‡ÞÇÊ [¾ Ô£ÑgîÕ\`Ab4dŽ\ØJ�r*Ê•Ps̩ҷge¨Ú϶eÛhð€¹;‚™ßtäd~pi¿= ËÑx‘Áš!ˆßB÷èùÌ/WƒN³¼Œ0”s>hZ§êƒÛ/Ó¹zÓnCÚsØ_!MÉ´tÎkó¾ê*­~7d„¤{FÕ½CõË’-IoöqàµuJ‹å{4­ôÈÇ\¼‘�Úõœ,–¡Ðëþ²ò÷ÀîC÷Ó`u*R`»†ÀÕ_×òŠOþ¤Aì'ž –½( 0½ 8|P?6‡àæLw¼ÏЧ g7‹Îÿ7ëTúè˜býb²�¥R²¾Á€0½ÑÞÁÿÅzeÏ5ÝQ•<Ÿ|0l;?Þ‰ÚÔ°PqSäØßêÃûÏú¿üšbÒíÙáO s *ÔÆŸs3*ì÷Yßœ•íÎGÝ”»ªõmXÆ9ºñ�¬õnZkh$,)1§<›Öâ—^µIºè6Gzaq»Äü)i$ Ó9÷‚ÒÐÅg�|úÿsÏIw$]aèv–³%\º&?ú?`S4È M: ]Ô¦™ª Æ€Ö|;ø×b/[D|}$ìÖh|MŽ?$@ˆÕÒcê­ÀnKé6Ç(8Ì…à€e‘Z á“|iÿá)+n5µ»CqE øû;QàîY¶‰öé?þóÛçò³þ[Ò­ñæb$ç{\Ï�“üPÆã,ž‚Õu²|ñ@‡¢×ù°YûZ1—%Vîˆ)'‹ οékâØ3‹AêÑ 98Âd€ËB‰3œ†T_³Í‚Ö@tR:Q± ÅÒlAÖC‹'`#‹ßèYE¡ Öë¨÷E’¯Ø‹ý± Ьk`”훉 �Xøä7†ú#ŤF#8d,»¿†ÈbÍ¡»i[€/Û—t(ÚÄ7eTÅÛí)湡ª¬Æ&ãÅJóGØ�êÊTrKüÝÝi—ŸÑ߀hCê÷â}ý84m¸W|#�S<ªAåJL©+½szñï%RH¹¹wLÆÿáÓɱ±ùa[²dê´_ÒÓô÷ ¾öž¨ÅÜÔÓ6c‘àD~fN=½*(¨™®u“Nvp©^NŽKI2—tw·§NµlÛÉÔwT‹Ç�×ñf=ªÀ¹dç.ÿ¶°aN—Òpª’rc‘[œ©©K^*�+SU½§‡­èSœ_ }µþÛëõVbåÐ;ô×%C勊P