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ûY?oš¦ùÛ¶vÒ̶mÛ¶mÛ¶mÛ¶mÛ[§“_š÷Cù{»óqYDLü÷ÿ¿½%WÙþã¦Mé[Ùà¡RF\û�ú¿_ÍÈê�"fýFóê.ÙÃHm?¡õŸ½<‰×*m=â9N Ý—‚<…×6´ÿœŸ‡…<7YIÊhZ„ô™3ft@Öië:ú9)=゠͉—Ü&™â’~3Æ^AæoˆxÈAâ äû(À”tÍ*)^ ßÁ(ÔºœSyw4%šûi¢·F�qŒxŽÛ=/k¢(??˜ˆy„ˆóÀ±®ßÜÔœÖÊ‹‚¨#è8°¸àœÖÈšµ’`hBЀ x%åLAh�KÖJ[Ë|çÁƒ+j?xðà^g±áEuZGE!"f%!ì!p,í™3kÖ¬9SÂìj¯ðBS”L"ÐÛZq0´©©Þ+M~�ù±4k%9uÕ‰PÑí¢Q–ß)ÁZiNËtª#"Þi¤wóR+µo2øÝÒ,šqßx]’Èá›Ö¹ë_CDtg&ðŽ“ZLK:%í몃¨¢î*�ˆpƒÓ ÷ˆ¡þ­ º�ÏÁ‚x‰1ÆLH?cÏ‚ 'cŒ�1Óý‹FYdÇqÙæVãÒËrz/#H“e9 @JŸ^Nc0âšO×:·æ±À ˆЯlß»–@Þ1­íú2-<Æ{î ':æ�)õç§'– ¬šuLoåÕ�mZ——C$prOÍ$ˆ÷�©Ÿ=ÌO‚¿`Î cÆŒ+ì€ÿþÿw4VP8 þ��*‚‚>1ŠC¢!¡št´ ²·n›6=¯…Óxüø�–EÊÿPÀ;@~Uô+é_úgç3úÝÂü먿ÐÊÛösà“öÛöïÚ'5ú7kÿáùdrqÉ\¥¸�˜qŽûÜ5TÆ7¿×úœÿ—å£ê/`ÏäßÓ¿äö ý±öý6É83‡Búr c’îQjgk>+ê£H¢ø×@Ì(#\ï{l°öv5 ¯å´æ¦3œ�“É][ÃëéDÝ> zè¼[ð¡©P媢eXô7ºý %%ÔÑm„Êœí(ä;Å¡i¿|Ô'x_Ãî÷KÌp.w€ëß�[pè_NAlŸWh´àpþþЯòXÿ¡Ïÿúgÿýûs¹µ9´s4� ¹ì«ìÓ–xé1Duñ*1™P +úº¤ZR©ð›á)³wgfÿè�˜‡‘%k_g1$ïh�Ï+„©f«æJÜQ½´éÔ3’¬ózþ‡Î76Ì•AáÏዯÀyøl^R­ÖýÒÖ�ö>··ÌFžç`®'ÿp>UÆý±ªW) [¯ £ â¹_Ìg}- ò‰‡y;’Žçf·Vá°j Új¬Y½€ “)n¿œÄºäHzT|–&µ›FÎZ©¡ýpR(ãëU£>*‡åÔ3QíyH#$é¯Sóè¿ ívo|ŸþÆQpéûÔ‚„>LgòWçªPÜ�b:„Öýû{¶ÌËh’g´¡Í%-ÿÄ÷•r‹j–°ã&Œ½±•Œgú–Fš]mn�>•û§—ÀájožuËþ«¿3yùHpó¹žM6Q ºS¢ Ô7)(‡rn´d)uÂNo°Þ¼KûlÉûµ/um/z¸IOÄ([_jr�Æ(oI©Æÿ�fÒ¨Ìö½Nµ% _ÌÿüS= ›ã�w?ô·šéÙ©t÷Àãç Omh´ ÜÉ–#çÅü('д•1Ô@�Š7O�­2•h,¬G( I(�0u– ^-û¸%'„Ä»áá6ï™~§>ã¢^Äš˜¾j÷Ôˆü¶‰}»lb /gÅØ‡RÈÝõ ûÐP0 à#£Ñwâá�uŠ›¹îQÑåÿóçè˜ës´@ž³Ksúá´Å†/¯ò´"¨V_JZÔÏ ëuàêµcL¦©ÂÀ7•Ÿ» rò Ïx7â±M…úuuÊ…[h8÷Ù%À\äwÞ3ç¢<ÈÈ]3å³\ò…_´V€K7vz¨´ Ý€àò+ø÷;*¾ÒÖJo0�mñf×âüñÑMG§§Ñ S`è_PQõI+I£õ`¶ òÿžùv ÚÍõ+ñÙT„NL$ŒñVa`9Dª~�bŸ§Ÿ$Š·¯÷çÒ1¼ï‰Ô_ÚZêé?ï™f]´À“ßÌŸËíP»ÏÚxaEåÆ+Ù[@@