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{"GÖ/˲¬RCÉá’Õ aff:gÅY3Ü—QNõ ¢¬†i‰+fæ™PÑÀ?š]GÄ�ÍìÖÉ…•¿þÒlÜ¢�©wÇH~¹0Ä]Q©ǘިv¡þÉ1²Ÿ&U¾9F÷Û˜yÿáOÕ¶`ïå+ÜÄ>át<66�‘>0~«†5>`uÜÏÌXå7´FœÞzŒö$7íxÍ ŠÞ¼fBÓþKû/í»V¼¦­*¿¡5æ±PïÐêµÒ/aõJ™��KXH .cÏpú1˜­YèÆN)C 0¡žÜÐ!FÊ•�›2Pz Ÿ½‘l�3æÉ�•bs»3¦tf„®ùÏ0ù°_œdjÔÕ2U,¿rí›/ßüòáÖnk~"�ía@¬�i™*’_˜_ÚØÞù÷o-/Ì/Œ2= ˆ]`šžˆå"™ Rc@ì噫¡‚¡PÀÈô Ä)]f¢(u�`ˆ‹”s�#gˆÛ€&ùÿVP8 ” �2�*‚‚>1ŠD"!¡›¨ ²¢L‚€Ú½äe]Ÿ0û€ú3è;À—¨˜´xþ�Ò^´¿@Ó¿Mñžë±_³¾ãŸÕ~ÿô úœøcà³ÂÞÂþæ{wþ«Î«ùî?ðÿ«ŸXü’ýÈÿwñz~�?>Â?þ=ý»òçò¿�ˆ~mýý'毙§ñÞ„}Sþõîü3ùO÷?Ì>cîÕþáîü›ù¿ùïê?¸¿á~“?sÿ�ýÏóÚoæ?Ø?Û›ýÛÿ+ö ü§ú_ùßí_¼çÿÿýIz×ýºö>ýRÿÜ*~Ç ^²êv¥¨Ö±í)]þt½Ò3´ºTºàÝß§&6š‚b8ÝËÑ ÑÃÃã ©—py—µc/ûš* É�M»æÖ~ïbr¡å4zÝ“€ö‚óšyé[’àõTðò % &ð¶H&¬Y'þBh2Br ãÆÎš|†Õ@â�±IA\.(Úfè¢àdjIåÁ-«¨¢'dMŽØy7Ç™U®Œöd¯(OùÉ€Säœüv‘Vþ÷q;ï£tÒˆH¸¦Lh@ø ¼<ÉÓÍLyÀ�Ý­êÛ®@†ÄË^DD)>wƶ ܤyP±0ƒ? ÿ|ÀCý¼å9SÞöjÇ>Í'®²”wàÆÃ`Uá­¹(V£,‹âÁŽ¥¥D}dÖv ‡xµÿå{‰-:~ Ênßàd¬ÿ@¨Ãê5o]‹aþÿï$}ÑGÎÌêï.å¾ùO”°¸Õ>þ®9næÂ䟨hHãMXË)èæÞiéÍ"ÞÀÁ–Ñ';zˆ,iTNFòç9æ°:ºb$]_.�kûÚ¹¾_W½ŠA$9Ñÿd˜#‘ Ì*Ú€¹ÉNýX„‘#Ÿg™‡T鉯Pp& ²P°@ÃŒ !{€Éîe¿àݶ÷l(ö…ÝþŒ=Ë1V/þwôšï“�õŸÈC`þQÅ�¶b¯k>7|E�%þà ͷV¸‚»áÓ�£Š×gz¨¯Ê5*G—ZçKý7ÐM/N¡ËšžÙxMÉë4_:`¦ŽWÿüšxèѦ‘‹Ä”‚Pž3phRb°Á’opÊ W²‡vÊ»™ Ž.ï4ÇâOWÄEaû?ý â~‹ ;^绺m¦w#ĬÙßö×Òj€˜’HˆÊÈ™dÔ~|RÜ�ÔqÀ¡>1Ñë^�‰Ušoÿ öˆÙl½©Úx„+ÿ …uÊÆcˆ,¢æl¹7¬ñͽ®¦ÆRy>0ßìß&mB¹œñ»ŠFyÃ79#fY—E¤5®K%ΟíÎ;x_™S|¦øÒ÷]û¬À|Žðîà<ãW�­5¦l4¬‰Ó&’¼ý‰îçÎy‹�å‰l=‹È bQ@�…Šp~¬�âͪ,Îβ¨¸t™Â5 ¥I/À³ ªÇdÇ( ŒPÓZ¤¢--¦m„™FóÿÊJò¢Ì k+œNd„&¢ãËî+û²'�Y–aòsºŽcæ'©x¡ºô¸Ëö:e÷aÚ!â‚јÛwTßLÝJä²^0R-Õv ŽF–™óð“ëàÊá[}â‡FÈñ=Ç ¨ïr$µ6¸RæTÌ?¶{·j*8 .(ï·¹4_ï2-÷RÎ@‚?Ó_}– …L–K`wU]˜a³ò]iT]Mkûã±Zëé»KÈ­Ú¥—½vöèD/¥4u�;°cþÒø÷p¸Ìu#ª÷ÇÓ·¼sªÈ.³Þ·#)î<©÷˜;<Å l¿Bš)R ‰·¸Ü�Áah]‰|ÖË pàóÊtÿpñµ$º¡”Ö´¦4zž�Bý<Âë�ÍÉc¢ÒÉœ¼} ]^²Ö4‡˜÷€²mdÀ;¡®bjÛHáKSÕWHý�&›/XLÁYÚ·y|ùÒ1 ;0�r¯W·WÝzÞmlZ-í�(‹#8éƒà£Y0ýVÈŒðÆ#¦µrVÅ6#Q ªF?¤vl4Ëm^¹E" \®®¿ó«@玮ðñß�%ç*$8IÐ#µ“†äÖlGÿÿF�C¬¿§šHTã.¤F3±•´;"àVœüŸt~Rrƶš½ºÜý++L[‡=××ýœy‹RL4$Ë’#S>µl¹¢ÖÕ€XþRCòô;ÚHó™ý5?�ºŽ ×÷õÉnØ9F.Ûei†Î+�äØÀ¿è€wB÷ˆdNÞt·yiÈÿ•uëd™1m“#¡×�Íx zº(•üWQôXÃzXÝКàvS*ÖàsÂo Á­t;Z72ÎûÃÌ*]œÛ•Yƒ¥žL�*{ö†(4ÓÑ4Ûý”kæUÚ•÷ÕyXJ¬‚Qæ5̲X%�hÔÌOP�IºÞLiåÈ&ñûî>9õÿzùéi`<·Ìã³w E‘ùËz|�¦ æ6ì âÞO)½ØTôXñà‚4Ù‰ÌÛ¸ ùåÕå˜Q++Fð¶ìÛO›°Ü¸"‚ Ž4ßv«ØÞU:±|2¿�YP�Ìô>Ó‹� x¶=Í©Qçif:ñÞlõ¯¥c|Ÿ8°˜½P•Á·Y‹ìx˜Ÿ@ÉÍðÒ3aàøY¦M0 ¬®öôKÿ