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 OOALPHmpÜØ¶ÓœÕµ|ý^q"Õ‚(#ÖáHxrÜqwN1>n‡ëâ‡6ö¼t‰]EZ®¼ ­$W© Þ´˜�¯bãVM;¨®ÿ¿ÿjö­š:V³¦Å‰–\©¤r€KL…/ýºŸ–w¬×VP8 fÐ�*PP>1ŠC"!¡Ìt€ ³gVÉÞ'ó¯Æž~�€ì¦R6µû€íæú1÷ÚCÌñï骾÷^„}?˜€ëôý£ôÈö"ýªýªøþAýwÿ äÇÞ¤@ì°1“³¤ô>¡)›9Š”î@�ußyŽ~»¨U4¹2îAŸý¸% :T’³ysKå( ~Š›¢¸Œ¼ªþe 4þðºkýƒïÌÐ7}FïQ¸ ÿ÷æþ�’Ëf"{Å¿Þ-ûÃ`2 ÷S·²ø3¤k¾õ ã½L¿�Nÿ!ÎÂãÿ1*hÐWÚÌ�ÿ‰HpûiYÎ\ÖüƒåwZ«Ë;X…1!¬vu“ÞúOõ2Н^*¡ØÌ%�ñ)í·á€¾�ìjßgÈ¿®&ÎËH?^š?míÕª¬�±twÉ Õ@L hÌBº-v´7 —¼ãz3”i:"�y`äšßÕÝbP�³F7U‚¢ ÍûIÕ×?]Ÿ#°õH¨mâ‰M¤ Vu˜ãÞQ¹¬³Ò·:²Á¬þ$¸ùÔ`õ©Ô·²_hŒëüNÊ? ½Žÿ¥Ü2xÃ[Ÿjs¤×=ͺÃÕ¸ïý”ÑÀ%ZÊÌ!_À5ø!Â;÷ òïañ͵Êmà˰VëW�a]ÉW"­ËŸ«“ê*lú®˜8`B‚ýömÿ4ˆ•j‚ü‹ØZÛ¼@-ßåþDÞû:u?¡Õ ÞM�@3Z5f¸»H­«M½îµb5ßËâ‘–éÝ(ðIº5Èo¡¤,-Ï¢º¢ˆ¼O®-nk1Á’H ©šÑQô¸ºG;°bôuWßxÂy`Lëí/¹x£,즚π9a šw‘ÚhãXStƤÛEVÁ¢K¯šáÛý‚4£_è¸Z¿QžÄMþ'±#"/Ñžº¿~ Æ”¬|{5¬4Æ/Ïø'Ýkã–ľ©3Ý»ø¾ŽÏðî( €ÿ qcúÂÿ¤¢0 H‹3ÊLèwI¿uÿÅà$ÿõ6";bj ˆH't›Ç?Å¡÷»‚%ð©ZYÁ��‡K/9‹ÖÜ�,÷²€>o/ÀÞ¸{xa_ðmm–›êØO$8ï ‘Â)ôŒ ÚݹòN ¡L£½€ë¹ˆ©_�Eà