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— �Û¶iK«V�ÿÚ¶mÛFú;íÌŠ‘ý¼m»;3s‘­S§VrÜݾˆ˜üc²uÏÎ + OŸŸ?~îs*M^ÖTBñ³Aû¶¡êè¯<ºnp°’Õ».j¿þª²pê2˜ÊÁËÏí F/„µõ×ßÛ›®åZØ[}Ó¡ÛJáVÂ⺫×ÿHb÷�&ahÓóJš ›ÝôCA1¬=Ú( |÷qMauãÚ¯!{«Ðø¬¬buKY'(BÁl Q †BÙÿeÿ—.Z%¹„_%g~ÕLøPߪð¥n—O�zçãD~šQ×[ÖŽtjDs“~�iÎ8áË¡ù´èróÆq‚pºáxƒžžhM0I~Kå@sÞîèØD>m¨œhÌýª®­Á$Hø²©ÉŒ¦´ãËÑ;ÝÛD¢‚Àpâl¯ñ]«Óù×Wïõî^Sd„âÛ•ë¯éÀ‚šöíÙR"ˆ”’‚ÊÿñPÁ®f‰�H"µ@ _:"£à!ET|:"³ &$‘«A&€DþÂ:VP8 .�*‚‚>1‹C¢!¡>Œh   @k§â¯´­CùçÞ¿Èì¶>#ÿ1ýcöïûÏÒ¯@e~à¢ÿܦ~åÿ{îæø—ó?ûßÙ=œ½L~7{€þÍêÙê-èúíé�ûgð3ûEÿ‡û§À7ò?ìö?<þ@?ÿú€n€xyýò¡ÛÙ¼ã¿a¿ÄnÔŸÙ÷–8Çô_ñm|à|¹z!ÿ™õg¾Ö€�¿Þ}À|€ÉþÎWÑ¿÷}Á¿—Iÿ…ë�ëÏö÷ØÏõ—ÿø²]×ú.Î÷Œ\ YÙà´A �JªEÛ~_Hz¶U®˜X˜™)“ؘaŒ¶•¯‹0ì+%;ÉЧw|o/z20¸¥“zÞ9_úÀ_o{ª¹o£x(ÿQôhhÊĆ9©MO¿óʉ͎;T¿æ¥{O (ZšŸÿ’ð(ûÀ~[¯wîßäè³ÑòbÅ¡vy§·Óö’í¯ÛÓ›’/1É0 ,À‡ÔW0þó±<>îšÅÁjÙ¹Ï6(?[¶éç&¢hÞÙƷ…×°ùYk€Y÷è+ÜϺeˆï^̱ªjÿ¥‡Ú¢vYàý1\�~ؼ$ý*Êí¬.ƉùܾJ^̦•õ+@8R—õÌ�ƒ�²ÚTï´Wò|üqº�d�¤ +ºC¦w“—þ¹ìXÃ#žiûP‰ïãkù¾Ëç1ðþ÷ ¿ê�н Œ,_ÿÛ!‚�ÞÒ8¸õsÇÈd4+�}V™å,¦Á 0ÞK˜9]kÐ Åe–¤EjS2m³žx»¹âå‰õ•�ñ�&à iF«l‘:ɤv�Ï7l˜ã§ÜŒ1N‹SezrÂ?òÿŽ-.šöÉã=Ú?Â|å1Dmß×ÿÅrÿ‘³�rZœ>„,4³@bBì¯Ïl±Mѹ~¢ÉÞÕ‘˜ÝéúH¾Å|¼÷࿟ü4ŸMˆ1\ÜË@¯Î™æj»¢&A3\g¬õ¡Oç7ï3t™ sh<.µùS×ø°æs®\:ìRç6J! 3GŽ^Ï‹ôÝmÖ�O !>ö' ® \‡ÛÏïI�ÞRgïR �/ T±ça=C nS»œ^Kù©ÇÊðÇ™õú nÍ…PyÙ$yŒv¬ìÖÞO²3„o*6%á†G¥@�*P¥rÄxëØ‰o[kÜ-®ÁÆoîs´€Û|üÁ¡$ƒß~™¯¸#']ï®Å€ž:L×ÒòJ;25¾Òûû±{cˆ”øç0Gô4szÙ±©¿×¤Òž¡{;×4†«@td fM Ì-‘Õ~†u?'ÉÍø™–޶ã&'Õ_mz±ïû8I9=òµŽ«CÍÀƒÙ3†8¶å’òΛAåļd5ð:Ÿÿ ËíRu�1©ċ­§FSº‹»6/ÑT ‹›ã^ˆXý¹#úï‰FrüÈ,,Ö¢àke+¾ÙáéÛò¼ ,ú­ž‘"­vBA,ÔÚ“|¡ØêäÏ9�ªGlÕøÖ7Ö™4Õóß¶FÚHX¢qÊà�ŽöŸÿY3H¶üV@yQ3š×@}JæqàõƒndÑ<�øs§g·XœÙ$`™z×õôoóµœ9–²œ$ƒÀŸ}®üR)cmùÝÇßsÂNÁqêðnzIm%O¬)´_‚‰¡¹Ú73m¶âþÕÉɧƒ¾”$‹"Ëa)§rVh;Ãu |þ\’…¿Qê2§.À˜8…tÚ(–3ûáwÁŽ3¿§b ¢ŠñÔÕäB ѼŸOã�pM¿7 ÀƇÉ+*æQA£<ÍÒpú(3Î�O›”V~ŸZ_S¥¿jâ–w*ú0³üÙit»Yý@{Ô^ßX?X3€Æˆ*ø¯¬=ØÍ!2ñ«Hˆ÷T¡üÆmC¼·OjÌw` K§gî @›Ýf‘� ‘yƒšÚÞKmη87Çx�½iù¥›°°s½6€NÌM§uܲØM_ÖGØR³×ó«pëÌ„Œ@³ôÅPÞ�¦ÞYuø—ÅÒ›8 È!Wê¨"H³8$\ ND¢þtyèÑL¢y—I¡>Èão.DàfšãíŸ÷1©Äð¨ û±ÛY9jrªª.—YåI¤^¯@þ�㟴ë`­ûAV•§O[ÏI¿Û±Î²f¢4/KY[å}Ȩ_={zG3&ýJŸ2õ†ø²:ò«‚å í‰máwØKÞúNÈÕÇ-8! ÙQ€}Jm6<“ŒeÎ6Š›~Ü@Mój% žrS#ù\±éZµ›I%£�Zïÿ_EÅsº�J_ª