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 ccALPH¢�FÛ¶©7;ªmÛ¶mÛ¶mÛ¶m+Fm|#¶m;i{‹ïÝ{îÿˆ˜ðš§Å„M7í5¾Ñ‰©ÉÑþŽ/ïîœÒ®(ÍÓcûËX¦dâûý Ñ�oØíX¦fòÓ …„kt2‘©Ÿ~µ�P}Þ2^5#„éåÈxö%Dƒ×ŒwÇ6Üå9ÎD¼]Œ¯.‘LÌÔ<dâ^ÏÃK‰ÏLdï|´‹ebgâa�z³…›ÔšÇhܩΠFå5F0:(׿!lˆReÂ¥™�²g´ºæQd/£öª½½“ 3u'(ºœAûÅ7 iÂhîcÀC¢>ëׇQ=E¯—d¹ëÑ�Ñ=Cs¾ëjÂ( ã iwµ™ú“–ZNK?Fû -ç‰3ÿ/�?q©åtbÔ�°Ž¼“ÌÉûä &/µ 1úû`”–TX'�Óí.JÀzœ¥W}•@à~o $^ —@îýD °ç©2°L–B¬ K ý¦«¢O¾•€÷ö‡ø8ï°î÷›'�Ý zH`R� ™ôµ4ä…Γg`ykÔȦ®¼%Îÿ¯!ÄõÐ[Ò\¡}iëtä &,½Šl!ì1ˆC"! �Âè‚P]šÑõ74»ÿ»‹ì>`;IŽnÌõ§è—ÌûgCï0ß³ªÿéýYzQÿcéiìwèû?åcð“û™ûKíu˜�¶ÿ�e~½û•ëY“;Qú™úž ~Eêøz7°ü¼óâñ›Ýï°ñ=¿ßùYxvù×°è�øþ©ôù‰ú‹ÿgú€¿Öù¿Ýý²=™~á{2þ²3ßÿ]iöX/ò ÉÅ|‘ bK_éÂuþ‘oPä8úÏ T‚¹²I4¤×w@ˆ Èœ†_ÃÅ΢øsöfªg_©ÑN�ï>DîÞ8”1^͆¡æ~…/.�‹¼†ëÍqI¦À7å„ûê4“S�ÁÇߦÃ?“;¨9ÜA¿EÃÙ~SËŠˆf‡9©²y("ä8¦ŽÐ&⺋v1Úº,ÒŠðÁÅcßg¹F`6…Ä”¢ø‰= ¶¢ç ~|uæ“ü«:bUHõ3éÂo–�ñÑ-ýe|AјioÀðAs·9³ôˆvãóPþÿõ}Òßÿ*¡ð˜E>víÚ >“�d幫Î>r\!*^ö—Ò�ó=±“×ÞðWúWÓÿš°EÛˆ›ß…'¾å”Æ÷Ð莿ʙ怎2Çp�n¬êëjEé¹O%Ml•¡ËHuÞ ž=1‘¨¯ÅÁJíˆÃÜo›e"R`´&égåßqŒ|z/Ï4Ý;ÿµ�xy>„ú¿†Ø¢ÁìC©øg=å9Û}ø~‡æyëlt~&?ǘ#ˆ o‰å€&ÓT—›;,G|Qœ^¸#-“Vƒ¿Ô0˜öš¦8%¯¦_èØèv8¢£ˆ´9M<–°¨ˆ"OCg¿æj|¯­ˆ¤]xxÊT´‘-ÏËùn^B"×3Ì™½]¸x°çk_É–õäþFáq1‹¤¡o|0*T,US�ëaž_j;í5¢Që/I¶gcõX�Q3‘ðˆ%¡äJ`ð]ü­ üÉøÉö4+U+½¥ÉqË0˜·5ÈOë®|G6¼ÙgJó‰L§±uNÿõ¬±�>r´eκ€½ þ à¥öi¤»2Îs‘5ªpx¬q¼½¬;d_æDy¶‡;ëª …œX“/Œ#Ë >èþ/ñãG)5xa+Ë IT‰2±ðK7DGgdÅôš.6xµk­ž›M×W§ÜÔŠyE[�Fž»ËMnÎßë7'Õ¾¦÷²®¾ÿVÇ]PUmÞÒÐdšËA„ÛâN:}æ8s•  ™ö̦ç$qŽ6Y%Êb~«yp©oXÞAµ;d#À]…2œºì”ß^çýBþSÖÌmAt‹hù�óó»Êèj9?þ^ì¯�2éÞ rùôÈ‘è�†rM ¿ÝÚS$q)›üÏ|ÛÒ¦S&ЇèÞ+8ãD§)Wô¢ �Êa8rE:ÍËH# œêŽòý¨ß’á¶Wã5i‡ö-oPS8â³ ù{‘ÿI™ƒÜ—%¼)úŸSõØ‹¯LÞI�_"¿•tÁ9lÝNȈºú¼‹)·dæÁúËP–™5’±¶ÎŒ£ù´VºÐÕ3GHGº;¥±[•e»U“�xJ/¢�  ô+lºÓ@·ú3DpÕâ;ë-f õ]c¬,Ô[4…ïÙ_ßÜ_‹]@B§'rµ³‡¶çâ­Pè”4'µäÉ1¯~��êyw^“0ÊD`85~4´¶z¡kò˜‚ü¾¯>|iÝ2¼¾š�1¨Ì‰¬eyÎÐcÁû9_w H|ÿB ÏÏx«í}#hêsGdO'U9eþû‰¡èÆz<Ì£ø{0OȲ"c÷¢œ¬Ã ÀÌ&H wn'ôxÉØˆÝS q×.,�Ï8Ýåí}³ÿf·†2ŽL¢dãû{w†£šy#AÃà ⃋¹{²ï·|ŸEáß²mÁ?�pö­6—ß„5Ê„PÀ#yˆàפ@%i?Övlç³�R3c¨3=Ldºº2CÕž…—_bƒ…H:Sö7wû•;ƒŠ]Ðè7ßÇ-[Ò µ$“*í9ï8û�µTjOꌼ¶ŠäºzKe±ÆiôÕþ8"EªÁgƒÖ¥:¸åŽö>ÞpG$·ð‹]Ü�DEeò§€.d!ÕÃÃ…t³¶RÐfö‘nÖWˆOã1ÝeN$oô+¥5%ëë¨=8Üzó4…`+4>§AhHåN© “०åbˆì‹)¢S€=&²Œü㷼˨|ü »÷Rs"lX,’µ`B¨Ñ`°²£ÁéZ7$·@‘¥¢KÇ wút–øþ[¡ÍŽ/º[ŽÇ¬¸3¹¡ãü~D2yü«µ X³Ê¢P+ªóЍ77š�ìnš¶hþdxOÔ«¿ËA¨ËG¢¹~²è·OS�7àiÒaÿŒlÉŠ†·¸Ø‰­ì$Û"åàpñ÷r‹}@£=¹C¤HÁ•5ûRZQåBæ¡ú¦=�GcwëÙ�ú#;»Sð #æXe‚b*î'úÇKo¾j¶?ðð¤XÃä‡hlÓ˜?ª¥¯<{÷*Õ-Lô fo³VK·Y}�( a*´t[ØíÂËÎ<·;!Õ¶ç¶&êfª"ß—'° øëÇ´�ÁMx÷«Í7ì}j ¥¡JV}FÛª_·œk,¿ˆa&鸹§lýÎ5-í²Z‚:ÈO·U$Ë÷ïºBö¿�ù©7µ?å­ßÿý„!Ѷ®N¾BJ¿ö¦w¼Å: ÛÛî×þ€¤N‘a–díUöÿ‰þ¶Jƒý[6ûq£¢+—à ¡ûÀæ€1ôÉœèÍ` j}è2-òCÆRè*"ç*'Ì}ð©cͦÂ[‡9iÞ�w#:¿£PmžÁ�çµù\Ϻ0‘™þÝÃÚy�XqJ8d‘ds ±1DùZÑ Öw^22D«³}~AUr­2 ¬ê|O¼€Z¾¶a¾Éà~Å~* ¥Y>© 4º nW¯¸b0±Íö~(\0Qœ€Œ<»8É™P žõöÏ#“Ò?\9€Rƒñ9ñ�j üY£ Ã"÷6êÅ”™ßx˨Í%-ÊXóÉR¥ÂkSÀÅ„÷ü”=߆𠰀Úõ¯:ŠÌBj‹5X*´{¼ú2QWz[ßÊ�Óˆâçkc´kî"¥*{€|%Iðf|<àiá''·VÖQ>,VU?}¸Êañ>$¿„‰üYÁQaGŒÐuªÀ!� =³9û®êäG„x}ÌÕкÜýn÷í”3ÚÁþi?îïõàò³mù{‡4¶â�¢IÁ ©¹©Ÿî#?ÑK>‹—�íá�x§´ala0þ90æ¥ÕŽßu¶<È|’?ÿ¡B