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ÅŸ¢(Šf´cijÝ%ZÜÝ%tw Ý£}‚ ÷ì@#w¿è¸ÈÝm­íäl61ä3P48³ðÏŸ¯’`-Ù~¹�äÇó­Âmûç>¦W²lÈy²�ìÇ^°’ùrݯ½|�ö~Ÿe 6÷Q¾$L@ÒGœöÛÁˆnì#}ž�ð{X½�2 ò=VûuTXÖw´ºèð’Ÿh�r=Q±�ö¤BO¦,ì¿°ÿÂA+û‰Ö¸QÖW´z�¢Þbõ³ÁÈw«—qFêV»ÕájÆSœ¾·�¶ŠÓ)© 8F¨#”p£Ç9š‹ë�PeÖ |ž·ÄJô˜#“s›GMqš‡ƒ¡Â£Åe¬?ÅäãVV‚ô)Ô¨â“q)yëÞ~Eñã­Íª”p0 ÆÀŸ“”’–YRUóï¯ÈÉHIŠ“>b˜â ɸ„¤“â¢"T…1”;Ô�&£bŒŠ’!ŸK0 V�2áð¨>U�C0 ÄFʹÀ‘3 ÄnÀ“œ8VP8 ö&�*‚‚>1ŠC¢!¡š° ´—Á¸`ϼäÇKU¶f™_ è¦g³÷•`Çl¿Øzà<9ìN€¿Ç~Ã}³ò«òïânõ}@z ÿ$þë¼P=½túúÌo2�óß–ÿ‡ð}ñO`â¿ÓÿÉýÒý+ÿ/î«ÚoÐñÆü&þyþ«û¯ï'öÿ˜_¿¶~É?­¤]³5+PЬ…àãðRk.7I°d1ð9Êõ/QÈo«ŒžyÅ¿~ß\ar¼Õm@èì~4j¦ÐÐŒc�ùW€Ý—OO<ÉÌø4�8C Ýø$ï|Ξ3Ñ�}™'Ðî:ä³[뤾ó?"TžFÿò¦É0y|£=&•Y|¹H ëvÁ5ä�½Io?�;÷ë�wÑï0þð9{\,zhé1v§½X¤Å¥iñ-ÏùŠâJPÁe]ƒkûQÑ[Ú竳ȽüÊy§çœ�c ÃSG“’fƒšÖâ<ùÇqž½çÍgñ‹öß—u€+€SëEÇ"Z„g[€ùÊ–é6œe¶Œ,_?e·-ÓêÀy7myŹè9‡ÅŠÖ}•¤k}Óu§y£^¿Îž�á;:}ØD–ÉfÄÕ¯k¿úô­TÖ³û^zôP÷ÈTÓã¿§-o´ÜÚÿmîIGÈ©ÉÀP*° Yw¹H2^ŒžJ� b–ƒ’¯ñ§‡–‘[ã�u‡ûÇ ßÑÅ.ôöÞ=èˆ*N‘QŠ¹Ê Õ gš aUtQ!è�±t0œ(W œ­UI¯ª�+øÉËÕ%€ÕÜyÌÁ;=ÂJþyäE&Í×N²ªÃ^1cæË²î-ºEÃ[ÕÁ+=•½=Òtiëé@[õÕqjÿþ…Rù·ÿ¯{Åɯá¯!0=*ÿøèÍ´j×à¤è>UÎ--¦ä Ò½íM¤·ŒEá¬Á`ÖáÌPÜÕem6[ÇjLJ_ýihå¢_½�„Àð7“5hOŸÿÍ¥¯ÅBæ“E¹?â3øí{ž>žá8ÉD‚RXבÁÔÁÔ†€Zºž6`1¨øž?K.þÜ/T"4Ð,Шÿ�>ý(D•AêÓù»÷��kàÖ÷•åa[—¹¢Iå�^hõîÙüÚ­«,Ò‹8ªÓTZ›CåäbµK‚Õ÷Œ×ÿæXkþ«Ôœá¿ô sÛ,f‡�1Ÿ Í”>;$옄h—-‹û«�,ücé¿SþãÉR#Pf©¾–ŸöùZ:Óõ‹ì™ðzaR>:)sá複;@ÉŒHŸj5%¥�.³$ho?»zÔ ¯â9šÃžŒ¯ ‰ç�[ë?æ7=5–—õXÃAûý=JäqÜœˆÕ/ñ¾µL-3ß.îé”«ÇØ“1[k² n¿’ÊyeyT·I D¹¸�ý‚ Î;MÞôíÆ·âp([äèuosëKØÓ�x±mX<”ùoŠøîzw'{íÝõC&¿‰)¡‚Ähôr6ɳùû°ùÃÛêÿÆ¿fÿÓ,É;/ჯ…‘±)lÍÃÊø²M)òÌL‚Jè8þ^v™7oTPOD¬+gj)6w¤ èG^¶èX`Ž»«CèAv(ߎç/D™•=˃GMR_ùá»lþz_’£™_ZK!~Œ@2É”-�å>x]�iDÇ®Kø³Ž ûˆJVäƒî~&¥±5å ¾gܸ ¨ðý?Z—*`Ò4&:é¦-XXHÑæ\-¸".pl-¼e¯Š:kT�‹ˆ ñ˜å4\vXš/îN®ü»ÍBe/^ ‘hø-«‚Z7‚~,ðw3†ö¸‡n(›¡›,¹þm0»ÎLó; `"KšŠ ¿ ¼Ã!ˆf¥Úh:_Ê~½[u¯Øëš–ÿ/€fs‰Ng·ódÁió |D o ¶¼ÌÿHéÄž_ætDÈTZß×qó®Ê QG~ß¡ÆÓwà“j‚V÷„Ê8 ™��þ_ ÂDùí{2a„WqÜ ÊON¹ ksÄÎÑÕ ·np»<•ÑkíCk¾;3R0˜¡2«éF® [�wíO¤*{ó™¼ÇÒOá€Ó{³-@ޱι:áéßü“íj¦\S(ŸÅ~¯+‰»Ý–]¬À¦Ëÿ@–œŒ{«‹KþÊ?¿1§vZVK µÆXœ[±ãB¦Y=�� ¥a툡†]+e´As*ŸJ)ŒÑ-šÖ§ét´�eî„mi¦]qÉYqõÛ&/w�Rò%¹øÁ·ÏPÌQ/^Ý ßNR_¨n�»6.UsîˆÅÇî*tµ*=êx/"Ìi½0-ü ¢|ã´