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ÖO?Y–5òÑhá`4Z°F£ÑUÌ|_ÍWc͘:J•2@”*e*¬85§df::ø)é6"&€Eä§>;J´úf×Μú›‹ýšÇ…}W>üÙ¥ñË�1‹}ùÏ.¥wbh{±Kì·)ˆÒði—ÜSÏw þT .ì’|K„ïM»câÜ.ÑWü@=¥ê]yÚ_¨ÚíBÀ†_d #øð®?d�q?ÑC×”@ú¤þÛÍüWð_!X]t�Ⱥd�Ö'ªþ´Å÷¨z‘P> ‹—¨ºT ™4ýêJ¥©%š.š¦„C UyùUŠž;V±ðifôz^4eR2?®Êµs•š‡ Ú*àÇ@˜–“YzAɧóÚ±Y ÛqÜ¥›¯>|¢ðͽ³5ÚµŠCn$¬œë朚¦–S¿©ÁÍ9ž¶Š Ü(-·µëy^õ©ïyž«3•¦Á�…Ê,·ìL&wúg2Vy¢X"°¨\ªb3A¢Yª$G`1¢’FÁXÜ@&ûÿVP8 ÖP+�*‚‚>1‰C¢!!jÖ ²€iªU½k‰{‰L\ì7ø%<À9Éù€ý€êú“úÇðúÓÖ)úÇìú“êµÿ'ö«àËö»þ×ùŸ€Ÿ×¿ÿWWºÌü3ì&O/¹þLúÅþ+ÄŸxY%ÿùQÁ¶?"þuþ¿Â ø@;Í1ÿùuê«âu@å_ÑÌýÛý-ÿ[üÿåß´O ¿ãþf}/þ™þçóŸüÎ7°�EÙ#(¿‰¬âË?�Èå¯s‡y‹1. ›5‚<ç&©“?H…ÐÙTm�i–µœG—ÜêRsTy˱*N.¼} êÍØëÄβKÃs¤�Iû*M{³V¾,YÅñ¡C¦möv²G¨9›�ñ ã£ÖxŒ²¥_¨BCDƒ›Ÿ:ät€ŒV'­§ûQÍO�¾ ÕVÂò:�°Gk)ã�‹ÀÎpqëaRyõþÿÜ*ÖG‰áDZ nûÆD"sXþ~cÞ¯�zeòV7¹3JTý;Qµuq|�[¸{+×w*Mè“ëÞé½jSä˜�æ\‹ò§'ðFÖP±¤Tÿ ³q*åb¹¿Y_ÿÊŠ6NSü¢Ð‰ ˆ{YáRzW÷*š5ÔîôÒìÌ—Ê\¤I VY·ò3 «Ç.sÄ©ì$7u�™MRüê-ÏD%ªsÄd÷ü´!Ÿ�‹!Œ>[ØKþþUô„ýþ¼ùÇËhd+³óÞŸü‡9Ο³3¹xÒY~Nêß"R@rGáï�"¾*?îQF™W› j’dxy÷±¢ŽÜǵu{Ü;õG/þ×ÿB²_ð¿Y˺^Ó '÷âORäç"\Hï^õ‘Š¡+'ËÞ2æ¿Êû𥂪ä¦Z õÌ zÀø £=‡Gÿ'ªSéYr kõh?þU >E¦–=u¥ÜH+1Bü²š5œºm‚YjƳŠîbñš‰&Å E¿#1y‰&h ë³�_ˆñ@�øÖ…xùÒQîÉ�h°Â”ùˆ¦ˆq…ÝozyæÆËM‘ šmþÅ륢�— QYœžTì‡%–Æ‘SÙqŒËÄñ±‚`EèÛ€…q¡¨äð£ù±5¬ëå¶ñ�ݺq†p¨€—̺#ù¢fBl§5Ê5£RÒ‰¾Š=žuµ¡Ïó°PÛ{<ÓÿÀayÆhvš=þ/~¹Ë¨Ï'Wûz]8—hyK7ØÁ!DQ•hÏ ¿ÁÉïBr"š¾*ã þ!È4,Îÿn´/�þ¶C“Ç8 ‘žWp¹å‡fí`^_?}~'ûƒÝ-ì$ä—Ö­¿aCöÅi ˆð|ÝzQuì±ÅÄï‚?{Þ"lŸÔV3¶ƒ®"²W«Í~Ho¤a ð£´'¹òæ!ôéï-2Õþ§?ø)Ü�š˜4óÖ§gUÖ=ƒç›ÏïÑ /3_†yE »5(ï¹Å?‚Ü9Š6P.9~‹Õ�·W$Í×X_±ùX˜‘þ/>)Fv�ˆ<‘ÊW(?¦¥™'âå N8^ ŸfCBçUâ�ÎС}±_®¼Ó¯[L’Í^¯Ã©WÀ™‚"õ‡ŽÂ•"ýÍì:"N­ÊŸ‚}•7N]>kãoFć¨<-1ÿàÕÿr¶ÿEj!É�V÷(a1܇u÷Á¢¿™ôï‰ö,ç‚�®@û..qjU]P5R$†–É󹲿ï-”,,ÿ³†/a£K謊Ç8‡MJ‚gÌ/£ò<Å„5Å&6Ÿf 긵øüí6FNá— çI ûœtû eH㔉 c�£…¶ÝSHl²ÓZòB‡£®(¦Ÿˆ/oÕO´-™UÅ�ü R aÆ.T¬� $>²S´ÏF‡nþ1¬œ´´ðí°ØŸÒÿB¨Ê.Z<SГ—vrùxÑŽ±õcý ù—vQÀÏ—º+ÿ,¦nÛ:Eùž§fšÏÔ½è;â©àñ÷qc䢸â¯g$̃m)>B²¥Ê•ôˆ¢ÞU4ÜIRƒ$ ZCûá\¯vN/@/Y­¾�7pUbÏÆwT©*Á­÷? Ñêø×O5 §èF¬ûbÅÒBµ¦ßì8úèò¥æs®Ùñv½:¢%² �"ÎPÞu%ù_ƒ•ø—Ùj×* d^ûŠë³Þjç uº~_®·’Lß]Ý/éöá&A­¹Ö@ä÷5¯‹•ç¯,P‡L~ûŒVc©/=¸y`¬¦¬!—éànôŒ¼Q61Gò¹ÄLÏïUÓ×ôR˜ÙÜWcð‚Ts“×üØà¢Ç¶1âI{³€Àã/ñ³«�—Ø}�7Óå{îúÛ•Ì�NH4­ý¡óøóºÃ*O³„¦¾ê�ÿÁÔ1ü]Ž"pÔú�^;‚ø„_êøæÛÜßÅÀùa_ŒMbÐ$F± ½Ï[®‘ÏèøËëq úx¯ÁÈkb¬9Û€=êEÿÃïƒÀ"Üé]<ñSÕ‚H $ò×| :ýÈ—¼®ê ÒT(´Þü žFÆ©?ÞÿåVq™º\®C¶H®½‰Œ¡!ÀÊgr;>—1žUá±€ÐQm{÷Lá�:÷�Á3Ô›ÈÈ7Ø– DBKw¹Bî$ËÜYéˆù¾ŠÎÊa˾›åõ ¿kô/xƒ­ÆÄ�‹,±`à_—=Î…%°´íÑwýTÎõ•(̘3åÁ|„‡-Ò'rÝ•- u“†øû±JO¡ÛH‡Ä`gù8ð-ûäR