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Š�«þŸ"IÅŸ¢(Šf´cijÝ%ZÜÝ%tw Ý£}‚ ÷ì@#w¿è¸ÈÝm­íäl61ä3P48³ðÏŸ¯’`-Ù~¹�äÇó­Âmûç>¦W²lÈy²�ìÇ^°’ùrݯ½|�ö~Ÿe 6÷Q¾$L@ÒGœöÛÁˆnì#}ž�ð{X½�2 ò=VûuTXÖw´ºèð’Ÿh�r=Q±�ö¤BO¦,ì¿°ÿÂA+û‰Ö¸QÖW´z�¢Þbõ³ÁÈw«—qFêV»ÕájÆSœ¾·�¶ŠÓ)© 8F¨#”p£Ç9š‹ë�PeÖ |ž·ÄJô˜#“s›GMqš‡ƒ¡Â£Åe¬?ÅäãVV‚ô)Ô¨â“q)yëÞ~Eñã­Íª”p0 ÆÀŸ“”’–YRUóï¯ÈÉHIŠ“>b˜â ɸ„¤“â¢"T…1”;Ô�&£bŒŠ’!ŸK0 V�2áð¨>U�C0 ÄFʹÀ‘3 ÄnÀ“œ8VP8 ð °0�*‚‚>1‰C"!¡9v¬ ´—Þå^»[|ðúesé?€8üaýÎî ðo¬·Ûç¿Îþ3z‘û ö?ÊÏÜó�û5÷…ý¨âßǪ~;þ[ú°w:°À¨Ÿ#þãùGý¿ÉÓñWÝ/­þÀ§ßÛ#þð òßçŸß¿¬~ÕŒøµþ§üîwù?mœzÿoýóà#ø÷óŸóŸÝÿÃÿÖÿÿÿéãØGî³ìy™Ï=^`¢­Ìƒ ÄÙaHõå×i´Ìç· P�Äxþþ3�G͘èªÚš¾¥Œ… 5ÙuJP}±�[�ßMÜÛ�µùùy}nŒºÿ`#hqÈ›÷@�Æ� Á£ ¸`\òˆ^k Ò<Žº=¿Fõ¿J[µÚýõ#½ÈIÛf&ÌfL_°´´^–$ÁÛòHFË…Cê÷~Ìï¬1ÝóSZ¯*©+&xö�®èè­ãXá!ùÁ&ly7ÄÔ—4ÚQüÂ…d©’g&wƒ«£�“#lþ»�%§¿QäÓéïZŽéÖÊ|bCµ°¯úø“¶ÆeÄC¦TùNñ—ÉÏïûG cuéÚ8ÙôHŸ†ërün�«˜ˆ±ž[*ÌÁ�-Å�zæeênÓUÒx p4€°»ÆàÓÎGPFýúud„�6€[bu!VжBFÍét êËÀG¸Ój“)ÉzâŠU"¾B¿½„�ú:Eï�û¤­�J4W©p™+ð{àQ<#ÿ>à†yq›?ßþæI4A—ŠؾD=§V„{žÎ\þR$_€â%í³ýÃèrÚ´t‘ÝÇ™aÏlºµ¾ÊFL�Í—Q÷Ûì5´ðG×Ð 01>9[§¶ŸMøB­ŽêŒ¿ûù }[ÿŸ¾Tµâ5fô¯´¹#Ô¢Ž§SD=© O~‰?q>B˳õ$»&5Ù<²ú uc�lîÛàÀ‡À¦•B‰§Mi}¬—ƒ?ùLbø¯ï5-*Âl<ˆÑuÝ,I‰r6· ó·Ž“Ãj´G×xù÷‹”™ùIšë“±#Â!@qÌu…– ϳcÜ^P;$…�Íà>Ìä>òùA¥ m«WîH‘g|öÀ_ш°FbŽƒÖ ]ïhµÂײÈHã¶5ÔíÆ 'Æ‘fa-ë.ò_ûÕÜlfYÊOè0eûîù¶Øæn5—ÝÛó*1myîÛñË�"ðm ¤ ²hì7˜Zd±ŒyXseu—&WµPØ:ÙN1N¬ ×ÿé5)2g»¯|箑¨°Ÿk³GÚä »²uóGZO}dþLžá7Ãñ©2¤QCðþ·I¹LLj@3÷ðÚT·®¿,¨ÎjÅxŸ¤]ö"Öoüû“Ñ‘™IÖ”,+ZsÔaQt*Ÿ•ü‡r9™ß+…¯äÿ®02¥ßi3ù �}‘þ«m–jÆ:«Ó.ïÈòF�ìüø¥òˆ@ö柊îNJhåLGè4}Ü­`ϲàêÝÞ‰g‰šÖ[¦7Û&«ÖÜ=¼¥»Ã, .Vý;«-ÿˉoL†B1M‹ Âbé •5,ñª”ëá[ð—»´–°[Ô´/ã›ÿ˜…2 ifÈ`~Í-äu°ÙJ»ÐÁtr:LsÙ›ˆ—«xÕœMÇB)Õ‡(b»Í!øµD:Ì~àVUîÙÙá™Ëy³q–ÕZ¹êÜ`”A3ÌÂ+ï³w>Ø¿*”ú–õS¬Wy7WgH7Ùw%7”]&+}–0=ÖÃ/–Ï.}² t'‰”O*„“˜¯—0“»äÚ¬r�Eþ嵸»vœ›z _ÿë'cÄB:ïBRúÂîçë SçÔ?á–™*(˜Θáb™\¼÷µ®ãFžÀ^Ð k‰_¤|Go*.ù·G,üL&º hn{—Àw%²*LX–�x�Ðyüã?FlT Îôí(6«ÈMú†Æ�ï½dyõT�Gð<ÜH4»ý ĵ.>ÝœT¢ÉºÖ}!óäT1Â9 h¨D¡º¶ã±“7 Û¬Ei5 5`",æS' xí3æ8,¡’ؘ]┳É¢ªüÄ^uÕf°ÞwW^ÍÙZÀ§�lþp^×yäÊÜá>È>üíh¼ÊŠp¶î,`-C¬ÒŒ_cŸÞIa4¥Ÿ:EÑGÊÔÑ�]h‡X-?Œ*×8t©¹GšßÅ4#Ú{ýÉÏ�öNe‘x“˜È‹~ˆˆy»÷¹¡Ìù(Wù8÷¡ÒÝ÷‰¬®�Ju ìtl"ÞøªbC Ï(þ?¥ÓñPÇW]T΋ÿ$ø¥¹ÆW@RôØ]³D¦;gènÍ~Œ- PJÝ<°.—+w„–#nf“l¢�iø¤ä{ÎÜ^«°t;æ<Žä�yFè�ªá ;¢²Ïl;5¦óщ^â¢ö“™u�ªÓ�p�]ðº~ÇÙ Uã ¼‹ÌŒµnÞFZ²1™É/ŽÈ^ ê[—|iS}§¿š:ß ¸„â¤+_RΟ² dÿT(