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']
RIFFN WEBPVP8 B ð1�*‚‚>1‰C¢!¡›µ ±·n¡€ÕVèÞcêÿ�8Ì‹�W?¨ûªí5æúcÒ¿Ì7ë'ë×`ï@éÊý ý…½?j½/ý‹j½%µcØGøŸÿùÏï�»¼Íbò?°vü¤ü½ù?ü?‰¾õõüSù÷�Éé_º› ?Îú�zïó/ï¿–á¹ÐúÅöÝð�úøïÈïé¿( ñ òï`?çÖÿÉtýÂÿô·üÿý/º¯l¿HÄÿ+ð ü‹úùÏï?»ä?ÿýU{)ôIýk$¢B->`Û�öžË’©úÐu?;!‡&‹™ ±]?-Âì§QO¼)é"|ºê\Ï‹L­`è`ÁIoÖÔ«ñ7£‹×Œé×à›üʽ*¶$ut¥ËUƒœû�Ævư YS"ÿËO‹ºS æ�òÎÂàWìSh¬<ü%©K“ç�é~ÏêçÏXê»û"êgË‹ï¬#ŸÛ'ÜÇ äW�¹®Ý úxf._£Ó(œÂÚ`Û�öŸ0mÎûþþÝx¥”‘\!Ù¤Ëpþì›Á“þ —~P†ˆºîä2ÎYŽD�zfü]Åv‹µ®aŸç_y��pF2V#ÔAYÉy·¹zÄ{±h¯ËA>”~P.þgÕ5·ªNã‚—ƒ<퓚¿áy¾Ú¶!³¥wñÔ_ôV;óâ· ˜[Q§Ú ‡ÇÆŸìž·\&0Ÿ¯ÀᇜBî+¢ÑÐ4m(HÒÞ2—»ÕæKµ/Ϫ*}sY -'%˜Ê•ãÆ·ë\S¸º–ä·ý>}ÿZs,K”û0»vÇ'{nˆfÒ«ËËŒüù­óÅù§ú©™+Ȇ�÷ OmèÄÕðÀ5n åà,ŒÅ?‡V'w¼�ðá·a?L«�{÷m@X<¥q…ê yþJÊ�÷cyÇ¿ç[Õ÷CÚ¾}ÞO›T³tÁÿâ;¥ævÒGMcˆå{¨ðù}©Ò+9—À3 ì±ñôžæyçÒ:–ÿ£!‰gŒªX¾²{ƒu7ÏóDÊÒ” 3–wÍ]¯Šð¡ÖL†©`Ý[ºå+7ÖráóÔÔcr'»÷‹·�>`Xl‹Jú&¸<’HNåW«O`\@¢²7^£Ò81„k[1lÔäURyCÒü :£Ê˜m¹kf4ò«Ã)K€¨§ )À=‚ç_5ëP×M9 ;å?žÁhJ�¿ìKvŽ%Us(¼ÜE{)mfûŸ¼'1ÃÑñŽ~^¡j€=¢Bç poÿ鯬mºë)¥n©é;ý� vR™õþÍÃ=M Ï+Pf]QLÁ3­�R¾bXü+HªÕ½ÊìââÆZ¤äÄ‘XŽSà/C²˜Åp]p* R) •Tkì6´NtÜx²î×^è1Ôô_nîËæ>Öl?ùÚÔüõ �–Õ¥{ú‘¡8G/ÆØ‹kýð.t?R"m]z“o¹mÚVý,V®Ah�÷„½º¼C;ÿN>­œàDåÇ̧ã<»*(>Çÿ…ØŽÀ£f_‹…7úª€!WÙï�ü½B♫I˜£T"÷ݸsˆvüûU‚ß“]Ú«žg¿b.3Aªf“’ÎÇöbªœÔ\ÆCo9wù^œ‡Åÿrò§dg‡µè5°¾ZĀ›°þPù·Y‡R¾‹¼7¶V­ ¹kÅáaŒ6KÃ+Ô¨³AÚeÀ Fý?e‹+/f·¬H·¹ìmê3=·ýž]˜ÌÏÐÆš‹¾e=·ü×?\‚-‚�>Õ¸–J3�ØM&`ؼÐPñv]R·ÂÂ!^‡L#…ާÕóÈQl¨úm]™€=˜G*—™4ÐgÒ{�}l*¤ækö#£÷~¿m¯t”^¿?S_­ÏŒ}ÝeïvÔ8×ïÎó·u÷qñ?,Ž"ÓÆrµ5ÓFæÌd�‹U4²ïÖO±ÏïŒÛ Ä ¢% ÖzÇè#ø�)ê]ü�¼:Ü6mÖpt¿À¦÷‡}…ý(h�âþSÊ7’¥ÿìOê™ œù£ÖéÔÂ’Ëv†øþÓŽéV:»¢‰$Â}‡2q¹þÚ!&¦[ò+ê¹'ðóo{ˆ¾».QÜëKÌ]ªÉ$ûpä |ŒÇðÆî­R?ޏG:×l‰Ò³¬$™íM�ÈìåËZ ?FÈX[õÂô¥‚qC¾$bûþþ£«ZB&ÇMੈ©x 1Ôë©1ëŒèÔô³ {–÷!‚deêˆn¦§çì¹(þ“l�QôE?’Óès„à·Õ‘¥² çŸY~9¿XPOÿÀE3?׿–Ó›ßñп ”‚¼�—UÌLš�…Û6™8<ëØoƒF¯˜'"`à¶nT{ƒ `QMxßΠ<¿åðÚË>¨ª¾”tb  µ³EüN�8bÞ[)Ã6ßø—Xa&Šªå±NŸà¤ Š…Hy´…j¥íñ¦0‡ä€œG¹åñð4Á'.ioÄÿñêx¹6&ÀIy¸~íÖÕð¸ö¸–¡OU�æ2X·Z¤£ ˜îìùÏæ,5Ngá?Ø.oΞo0ýÇ…+Ç¡ ¯½Nõ ÎÑ3Û^A@‡p-N¼:eB1k$ÿq+_a�évùxQ‹¥ÇTçׂ Œ®ÂPž¼™ÇZþË;²ñ·�˼&âÚ““"AM>bÍé§ÿƒNœÝoþ#ð¥°ÄT§ÌXPßjüv&¸ÄÏCDQnï’§¾°û«“uKcân¿‰ÜUà4ýÝœïúýì ½Ÿ¦.v3;"^ÄHx[0B*ÁYÅCœV–QþZÄþ$^ÔuDZNÐ[ŠkÅh;k5}HÞ´¿¥àZÿ†,zJw¦�jº[m8®1äQXã²W@†héÜ£1"Gt2Ôú5Õ6ã˜éÓm <êÃrÚÖA 6–?ÿÈ—±ñå�.waæcÀMWœ–ßýöÜ(ô²Ú™g ‘–IE¸�ˆ¥ƒ½uý�³íµX½sïŸÿäyê]G8!ýª‡r0 Ã,3üsÑÓƒÚ?¸Ju¨unQä¥ÙmO�ÙE2‚ÉW9<µ·ìeÞàNÝV]Ö€ÎaSLø½!0x~NË f½Œ%"[ºcåUKg À