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‡�m›!I�±mÏœæ4Ç9Û¶m›÷9Ù¶×'Û¶�“­ŠŒ\VfOç_ë�ˆ˜ôŸçZQ ”u55 |, sÒX2‡¦ýw_^ãW·wרÈTä0ó‚PcÌ‘o>›pPIÁ3B� ‡Ÿ”°S †˜ðyDÆHct…�bˆ€ÚÁ$�ÀŠƒ˜Ý†\Ô¢«!àæP\…ç°�×xšp…ÁˆÖi‰s¸ Ñeq/ ºoßC“ß«NFEp2æ¢úl•!NjìWŸíÜÐ:øÛ“|÷<4ù·gàÅÏI€ ,–K†[¹¡±_}.Wñ²æ¦úðþ÷%7�»ÑEqë ZЇJ JB”žïàygE£sž� ”O¢6:ÍQ :ð–Þˆ¡¬C‚ÛS�)H&cY}2Ve=ƒáIR¥Eß3þ=ê2C*6ÈÛtù™€ù(¦üðäüJšZƒ2'¿” >¦¥¥eP&ùØÉОVP8 P�*‚‚>1‰C"!!ˆ¶4 ±7p`2Ì sí_ˆŽ}wÝïÛΓVèMÆÝ?0?²|ìþÓü£ñwåO˜èø¿ËØ`?TÎÿ€÷…éþ‰ý—Ö7ûdz/ôQOØoGùßâ¾dÿí¾ö_ÿ�ùÿ €`aý‰ÿN €x`F½P«kkfxȲ›=œðÁ-ܯö]lXHîbŸu¬Ò†@çd¥ÞcŸ½±1lsjÏ´Rþßç4a¨ÜÜŸ<�åâS§—H¤?F|ÖËšåî«"tBŠ6ŽºÑ´Q+Öþð€ ¿ü{—y ËhJf7Žz%Ð=Ç…[!Š.^u1÷¿@y–†Lî¬l£Ü¾`nØqíê:¶6ÃäÓ ´ÌCc¨éø:܃„‚óšÙ]ÑŒùÖŠU߬¤ENa:‚·Û"».Ö´û‘´8â¤ÜøY xä{Z\Ÿ$MÑã`±>¢Ü”ð ,ˆ…Êúëÿkü6Í Otøã…&̆˧$Sø›ËŒPE ˆâæ9U9Õ;>»ùð!ŸJñ/çÀ†Päæóµ-þàD¢ýY ½®ò¨|Ü‘¨ö*¢v‡ôT¦X­‚iç:\×îµÒ®k:h‘óûÖÙ« i Dv*e�E€‘ÿˇãveÎtJ¹æp#…-Î�@bÁSÝјy­4#J³x¸ƒrÈhb Œÿ»0˜ !ÑÄEvs¼óœ÷f·º¸™€™áÕ‰0èí�7eià ûÿípL@,ž„õ�¿M<ª€àN‹+ÙÇøÐ–!„K [ºèzPî’…ÅÌ÷¯x̽ß^Þ%fùºÈö:¸6H¦5ë®ü¬7¿øá�w:εërþ]íü;3L»3bôe3X žƒ K®5Œ¼¶Ç®9À‡a./÷¦¸ÚüÙUµzÇŸúœO½ªuß?È ²LèûÅ÷;`›ýº^Ÿá_A¦ rçŠØ8²Øö&?1E|ïhäч4Íz©€[ëðŠüe²ÞãËâ¡4¤òº ØÞ•‡³ä‹Ð,·c|‹ñ&Îc@l˜uk§ŠQR^Yë ¯è<âøµ7í§ã³*PÜÂS ºuR#�BQÿûÌÿÿ‡”ÿÿ�«ï3ûA�ŽOÇøÉÅ pÔùä Θ+3Á6¢Dò6^i¯oéDDCV¼ð÷—é‡Ô£•6¡^/Å�Ýn„àã+–¾ƒŒ®?r¦¼$C|袊Ü�p´ÇgúFâØ$…b¨\ñ_VÍ«HyG7:b|‚,¬õ<¥î«ÇF D:æ]ÁÿΊžj½ßqüæá#D++Ù�þ7¦œC‚žI�á£î¿8!:Ž™û=㬬A(^f>K~ûa<}ÿí^V�ô,·$¨³·m'†$m ·ƤÂ35hëºjÅJèßì›üI\Y;}ÿ—jiÌ