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ÅŸ¢(ŠZkŠ‘•¦£)Ö}›‰ÖÉע}�ÜŸà¸è‹�‹ýÀ/rwwkÖª{õ\61ä_ÓœXZ;öW¦ 9º_0xá[°‰bðëúÝ}vÕ«íûÐýjÙ/ã°—ü§Mt�í!ödáÍÑNm¢|•G€ú?8CáÄ&ÒçØ ô Vï!4õ « Ï,Àü?XmXxo€ÖÄkDP‹@lÌFQ“EÿýWZ/^Ca�¿Ð*”†è/XýñÜÛX½¨´�pf±:­B¸J}ÀéWwLÚ˜S9ƒÓ™„°‹ÐÒJ} £^u9³�Pºþ&>Oò©„¤ÄÆÊ+3æ6wüœëp°*”ë¥^aòá¤çi%) *c:ç5O]yõé ‚ŸÞ\ÝðsžŽIa˜Œ¹cŒiõóǾßYkŒÉéX)˜t*uÎÔÖÖÖûµµµÆKU+É€DÊKU¥«S©ÌñŸJ¹•±rA�ì€ Y®b(*§T0 d�RÆŠœ3 d¿OòßVP8 ð)�*‚‚>1‰C¢!Íü‚Z@4ˆ¿ô¯�w¡í»|ô~ƒz#½Ký?[ºØ¯Îz¤~2u²xÕßÜ]¿M~“øóûwþâOâŽÜ`^ þ�ùù�Æð?þQþGò«ûO9_O°~&üþ%ý§ùwíÏóîJ¾ÀÆ�ÿxüÃÿðÉý§ä÷Om.ÿ§÷þ7üßü¯öÏܯð¿ÿþœ½‹~µûþ²ï'ÝǓʖ »�²ÞåÛŽ zßë©ï•y{ D³Ñ/î�-S5‰S’h$œñ4uË«ÂÈÚ©>g¢E] X‹ pÝhT'OOÃê"\ÚXc(š02±CË }V( !ä ·)}©Ë÷«½ÿñ‘v™£2íJ}"QK"›AÓ©õ=ð/ ‘Kr �1#CùÉš#ø Ä…9Q¨iAv=�Ý�âÈäºQˆÓÈþÿÃ;èkÙšBñÅ‹Ý(„­àGÿÕfþÀ¬p0}Ž˜¬~òž÷Ìஓç=µ2–Ë æƒ­ðüÛ@צrÆãZ›jˆk3¬LHeÎÓ¦]E�çŒÜBÔߘM¾à‡o ª5\,{ ›I–ÃÅhÆ«Š­)`oå¼â‘,d$i6é3NÒ¥ÖlýéHoÿø³@´3™±à3º‰CqªoOHÆ8›ÈzÑ­�"^‰t¥å&´úPð«½(+KšTñDü5‡?ã¼DEpÇi˜æÜ'~ÔÚ|{GÉž5 ˆã{Í5îu0±}J´�Õ8ü+šwø6™, tуJQó‘.õ_ÍÒÁ5ùÊŸL Ù£û@×1Ð:§n EXÒ¾Æ%Ç…Ë\^/ÃɆK¥ªŒøngÆßâ\Ï6W¾ �NJ0iñ6±'¯J�¹ÈX4¿ÇF¯h9¡’w•.kCö §³V‚’~ø�‚öKÒªXòù@&£$PªÒl\ˆ¹X ‡õñE¼òœtm�“9Hä*vT8-عçòm£‘ÛÎHZÇÝX P*—Ÿ×|”•aö©Ûê!.Ÿ| wY¥¦¥d;Ðñ±¦úTþÜX.Œré›ã>¡¼ÿø=뀮5çR­|L»óLˆ ~„/5ú¢L~7J‚H}ï�†µ–Ì‘{q._*4¦üýÓ礟©½»ohṡ²HLòYK®Px�Þ'œHÑ¿òõë�2ŒTûóI¨JÕ¿ù¢�jÃfS%¶À-ª·Ø§©rô]6%ÔC€øEa²$·rùi¡ÌЈ~O×ÿ'ÂÕ°ÇÚSI6°¸Ó~Àß4ì®îô¾�FýðÍZìXs4ÿy•ÒàN=Æ«ôÖ—µ§ö:ØÁqƒgqˆeJ9È…¬ô§L�=Œ¤¯Î{”‚õaðÍX23¢cÀþ؉(_ÜfÚ¿e2àÏÝwñ+P§?XÎË7Q8ñœO+ÝP½+7ȃ´�ˆÃˆta󿃒ˆF9A&(ÞÛCÖ|�/°¯Ë«&‰à�¡÷Ï'® ˆÞkOÿCÊ ©¶Ð?e=bðŸÚQ±Y/!ízùr–Ð<}é‘ÝéóˆÂ ¬c# {I Ûÿô»Ðo'fê|¿®n%á�ô§àçÕ¡Š·ÉÑ�tâè§ÿêÂOÉJaUSÿÛ tQT<ì’sDàýçÖ„ VhX>¬\àã"ÃÑl4Ʀ¡ ÏÇ1‰›ÑNå<”n ìÕ$ ʳÓf÷áÈ*E Žœ¿Ú¥ÆL¾27;ÛÙ¹]df)9y�;îüu¶I�‡ä=g‘W€ÌœTú¬t¨'e‹ÛD¯»OŽ�÷W®Ã�Oûgwg©ÙbT„ Ðä·7ø»×s±â:ÂdA’r i±~Ö$7ü5 ÍqîÞ€žÃFƒ·÷ië—f8”±ÃV2TZÿ³`>˜ÞW–Ô_FZGŠÏk %úÙöu)þðg³IÕ1¢ ì‹<È4�*!ÖiIÏ—Oþå‡$ULQVËh€Ûò© _!Þ.|U½V‹_R~ ]eÙKÀrÒ¢¹¦�!F{Ç´æCÜ?b„ÜÿõÁ #D޵;«–ÜëIêÙ?9m9žòU;,&©¤¥Ð–»µ0=:#ÛX4ãt±º x6i SÙ­êp¥·úÒ„¤§Nû8¥›Õ#;Ãñ]iáªÔu’8¦d¬/œð¢qòn÷È88žA!+þ±1ŸõžÐj…Å€`)X¼J¶„âìïSQDäIÁ©;`6náN}N²—籘‚Ø=É1Ù/¸]XÃ'I;Kù�OcXŸÖRZ�èº�”•g-Ñó1|Wdâ\�{}®½é&ó —â„ΟðÈ “Ud~ŠZ–¤7—c‘¹Ð‘m2}{›PÓ�Àù`‚� ]à4€yP³£iÁ+”(ðqÛ^ ¶TÐâOL´{€Y)ImìJôýuZ@Ÿ‚ý\¤7ô8 ?l\tºîS¯"bÔCWÐq0Øž- H.HøŠ!dª¥,/ ”éà9i/ãˆPuìÄ