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›b7£_£_£Õê�F†ÕjtpÌÌPcÅÌ®|–K;É)SâD¹f,SY.Ã3“Ù^ ü’»ÀüìO¢Õ¿|ìÔÿDv4�A…&/Ø&òÇíù¼@ÊWmº¾Ö ¾`ôÙ6±ŸÀOǧmr×§Á[å‹m‚?´zg·I¾.¼4£i»ßË™m¢ï"8AÞªžiæÒúƒª/ín½¿¨úÑÅ`Àè:U¿úÁ‰�Ó5 ü`4翜ÿrBÃÑ_Týtë¡«�ŒÚoT}j.±‡T=U¦‹ÈRu:d‚SD?£éKcÄp1yt“¤¦ C–u�¢UmG�9‚!m½FÏýr;Ïà.²ã•×׉¹Ûªì‚SÚ^|±NÇæ»¬�ŽKƒ37næÅµª]ºøøÅ_=¾žmŽëxž‰àÆÍ<•.NÛº¶™Àz­’¥Zå™Ì+ ³âº˜ÈÒR·¤‰À¼!Y âIãÊ’!Á�ù@ŠH™G ”±��,@ŽB äÀ2ÙÁ#VP8 î ð6�*‚‚>1‰C¢!!#%;ð` fÓйÒWÇþD{TÙß¿ýúýÑéßB˜þò»ýßÃßò^Ï6U÷ýÿAºù/öôßè=×ÿÀ£öú¹ìüïù«ùÏcØ`æ_Ý=(?]¾ hÿe~¿`¿öæœõŒüzë¸óo³zý,{gå/²Ÿè¼SÚßû¦½îøßãÿ3¹ˆù€õ'üËü§�üßIÿEìüßúùŸï’_?îÿfÿûUíçïû?â¾’Pÿi÷àG÷#Ù¿öx™¸^„ìóÙ;ÿÉ6Þ'é2™»5‚ÑòñËkøÈ�ÈâË èHˆP‰8~óÿütú©$ÿáe)„Xƒ‰¿ó.'�]¡Âb¤ ¹€Iú[Þí›ì®f^b(â¡PnJ6ýàÖwV:ôeWB¶…Éað_¢eP¶q´ÛïÁŠ~�cÒ~âÇA²ØOþ3…ƒýJ}ÐãM;žËw,‹V:�`"¶hç�Öap×¼'žò±·PCW”ÞóyWýëÙüR°�?¿.ÛÊék#r�à²-£-)¥áÎ i‡•UUU#þù)zþ¡Ü¬ö’™a‰³¿p1'ˉìI3S³áX›¾ôŠÃIä¹Ìv1ЬóÏ?Ûj5Ú6p–6|ýÀ?É~ÈÄ^1~% ~%vén©;#ÐCDÇ�抙¾“‹ËFBx¤¬+Æ{RÎn,o6À� ?2„pq†ˆrk˜¸ÿ·—•!„nn®¦I˜öúaÇ0üøWS‘¬_Í(ºYŽž_Æ\T?¡úd øÄ}à/5€Ø/þ¥ù?,ÄýF"�?Ì1 gÔã•/ÍïH¿÷Q0þíÏTÂöS÷Xq ì [|kj“5 30B†‘ü'¹ï ‡�Å@‹Êäƒ_<Õ€>ü6Ž=Ûœ*è™÷Wd!KQ)3nÐ8†ÆµW©xGèñ ¤×– …Ñ:…m‘)´ùüƒ[àÈ–N†ÚÍ ¹�>eàj¾ó 7†ˆóhÉ›v²Ó»Âþ ¡ªQ»w¡ï09¾mƒi‹e¡3–ýØæJª¸˜ÀçÁF OÕ®ð�)RûD¨Hvž´»ÎŸûˆ‰}Eì'’;Ô!ªKçxíÃúÕ¸&d2¨—��yå1,ን|ÔGî¼zeãõ2¿ý6Þm�¡xýšÒC²8fSÓŒ^§dw¬D”²…r/ðOÆ5%ó$×oا“4Jqò‹?ù„ÿüüšÇ¥ŸÈÞ— {úcñ–#°QQÌ&ã×eAh…Èä/#¤z(x4dHÜBÍ‚lnüù÷ª�&ò ¤[…£™*,hÈ÷Ã�ü/ý"[¨u(}jTNé0O¥#¸€§`9 /¼×’….¾m¹¾árU^ ?‚ýIo¼�¦Rð[Û‚Ý䣿wYZDì£VèÁS@1æ—„ŠÆe�°;<~²¢<Ðr4¨p7‰»& h÷Q‘L”QMï�á]˜€×ÑÜ”Z·<+÷â’Ü™9Ô—[DáHÓ�B{‡‰>ÌW™|ËQ‡“Uô)L�*ßRÈTÿå°Ú¾Ä)«/ýIèÅꞃÿC)3ÕRv;- j±¡*À¾‘±ºägø v¹¢[«E9/Ba`‹K*úˆxð-K«’è¡äÀÖ©¯{ѯ|½r™†4&U†_ÂÃ>»>\¸À°õÞôCveÚJn,ïæLòC&=Ƕ¤FµðòÔ‚YâR<8þ»jW̹„‚Fyàa¯ŒîºsSb¨ç“æecùS!¿òrG"õ}kûIž]Üß·÷¤Wý(d6Öú£&g+¿ðÇÆa6 Uýa÷U¤€‰‚Ñ÷¥UÞµ9±¿­—‚µÅþ[5-€#@nIÄ‘ë¸ëÓ\wOÂN�l¡&Dl‚Æ ¿îÿ€‰P»Îã¸Z`˜[©ƒ;˜ÐHiLL+²!ô³5DøÖÄ>T–ÒÎGQtp¿¿Ài[Q/'5.™,»ý«•¦� ®s! Ü©ùr)‚v-¸ IãЧ�ŒaWf’Ŭ>g³³kZ;ñ6{ ¿ù6l€42½oÛnßj#šUÔ¾zü—›VQ�$ "gÑj6¦™n~Tè•úœ;íçÏDë’êöªŸ‚O³Ï8ËrX•’Óì¶J>÷÷­l'ej�j,¼¯Ãõ�hêvN3âÚR­ /(úYJ÷ùÈ79àˆŠ‚€zQ¿È†µ¤\�âÉÑóÝžõtuvñ#YüŸ*³ãR\å^:ƒ€^„žò ü!¬9»U9Š…>˜ä I_C®ºj£Q®ïÍ/«(ô$‰ÎÑ™Ð`ûë�œ[’º„PÞ@HßÅÈn�‹„¾�6qöCi´£ï}˜»K†_ ôElk1Ò«GV�ŽÊE+K…ám“^�¸»2¼nçà“ãüe¡µD vò­]-i~sùgwsåbX Qâ8êò7$エìäŽoÎ¥Ëû;pÇitkKUrÚiö­¿+ScºEŽ~ä›1rÈ÷ŸR¹m  /œ/Uwó75%Ù<±øÕæ‚”WäÓõñÄ3—ê*pXÂãáPéÔTéô× ¶wÇŠp´è�TýêíÌâöî¤Åá|mmoèx¿þ˜—9L0ÌÏÎõxÈçøzÖÖ„ŸŸ¤*ËÊÚ ÚNlkóºxgJ Öݲ…0 : 3YOû/nûNÏ…‡ÔfsO(>l6J´Âèê´D’ÒÅKt[£lŸ3ûTê9Å \l ygÒz÷ÍC#Ì|Ÿ³ÆôèµfA!fmäw•誕w;otïtHsÉš=ºígGB‰¬ÕÊm‹?Ø2€ '½ÇŒå‡"\¡«O‡$ÖRï¥kßR}šngÉÒÕìôè§©# ºŒ™VUìðB¨-9µq‘å,q„8㵊ü ÔX�wAç›RÛŒþGJÖÀ+ ÿȹRÉ}¹Ý¤Ê`&ÖÜDùñ†[Ð쬴ü¸X:É –Rß¤Â»Éø  œ¯—ïÇé0ÞÉ¿ZÀ‚î^ ’`ÒA«Ýýn‹·ï•æ¥þs©†„»k $'¿ÿ`oEB`‹3¬‚e§Å)šŸªÐ¥>‡ Ì/Ûo9Ôù„ BŠ ôvC÷^½ÍëtI§=‘;˾Þq]­ÁÉÿÌͺ$_‹™ØJuB