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{"IÖ¯_–e•#ñ‘ªû<€Ý=Tÿ®E/‘ÕÓÉÁ·”®ÉÂ'–Ó5UzP¬¤kºD�ü· Êþ+û¯ ¬ÅtMŽZDWgDÐJÖw£"ôSªn©ÀAå^ª¶VGÈDûWš^‡ ¡3iÚ�©>®rîE—jsŠ{Ê„ÿ�ž;͵ ‰Ì ¼2gÛ¯QsªÑæ*9øJmB»ç=%/·×‡-‘E&´Ý/¼|ÿ‘À÷ÏÏlhC“¢p•(Xç\c÷ÄÉcþÄn眫/$,.p¥3ÆºÆÆÆæ1¿±±ÑY“©8°ø€²Rg ¦¶žÀZSÈh%Ø`¸T•:A¡ÖÕJr6„€(„$QŽÀ†ÈdÿVP8 *�*�*‚‚>1‰B¢!!Šv¬ ´†ÞòÒàØ†ûïÍrðûçÿ–“øgñgš\¬>ÅdÏú—ä¯åïáݱOå_×"ÿpÿÉrkðÿå×ÿ%üY¹ÿHþñùiÎ/ä~ÀË?°ƒûfø»ÿ ü/䗷ʹÿÇ÷þMüïüÏ÷ܯïŸÿþ =s~É{þ´ÿÿ  ˆÿR™šr¶I ŸÔ¡ÒÿÃñäi^™š¤ F®ÕÚËfÚ@BtøVŘÍÞ™šµž4NÓlñZk�ì¼åzòé|õKvYm>釹æ3*óÔ爐TòOôµaÒbæ?DAÜìÖ×ÍPȸȂ3ÞK^êMpz%OkyR{Ô1*oð9±e-„s$BUK½Ÿ›s‡è�7ž”/Ùk¾M [ð›D•ˆS ú¨1˜Ø3s,ð ¿rOHd ƒ1xþÕ“û!SΫp�çÓõ™²æã—9´Ð6Ò®cÈ4qtLoËPÁwàä΀Ì2=>.ÆÆHòjö5ñ«9(ì ùS8Zã’]LÞUWtý±ï>³˜Z¡v…?@„öê²¥ÅA´þºê<ͽ=.|T½f»1ËÅá6^%‹Oø2 ¾‹MUdú[¹aÝîÐ-틈Ë™¹ßySdq÷K b?Ã_‘–€×ÿvLZ~u(âÙûÈVqzM^&”±áoÓ¼cø�ªf1WË–ž4 )ÿàwnˆO‹¤XQŸ À% SÍ)óDx䘋\š;¾ît6=W«¤¶v¦¡)( .\�ö§lZÛ*Û'û1Ï S5)¹»•wï YCLÎB°‘ÐÐ÷iyéÝ™õàº'ã0ŽAÖ ‹ÚÚeXM„%³cÊÔí—HØMÖ·ãn”»PÖJ%†gìÞxèîà¶ž´` ç§›2«cðÕ¶ocz ´kÆí÷ç�Û×þ›ðÈ@ªI¥ºÎB'µŒEÄÅ, ²?$o¥w芘¾ŒÆ‰zäP07e#ƒôÚ(Ñ4a‡ÐkˆÇ3±XL�¢N´Š¼:GAÞßÅ?—ê;MBx<®W'øû úÖƒOcOFÍ.£ñ‰Ø…ˆø >æc‘¨ Êyܪö™ç–²7JuúÞDк`ôßï‚‹ÑTõ‰¨* Mt å4’"~ºrä˜�qàHíd‹n¢þR¯/£Ÿ…S6ÄVIö sÇâÚYr=‡Ó�ÜþKâX#œÏTõ½½ñâ\ý£í ªÂßr?Ö,ÒÆ—ñ4Ê"Àçê-•æÂ(“ž~Væ„0•j? ¨‚IÑäo8æ·ˆÉþ~ÃÓW‹4Q'н¿þ OüŽ=¦ÌJ›Q£ÌÒJïèXÇ-³{ÖÐÙ¬0†ßušÆÚÂÈ]SLd%ÅËÎÅE÷îÎŒùu` ¦ ©ƒa›"XëïKïÏ!*l/Í>“Å{A_#Ëí*×ßt^š~/ˋٺ1.#à EÄ*C9Öý[HÉ1qh)ŒD18‹!°îÉ/¥ áö åñIáãÓ}h_©¾\í˜Î®€W¾¯Z³P�/U6v ï¶ðîS3Ÿø–š=ÿóâA‹A·‹™}fï�ƒ†`uýÔB=‚Wþ:^ƒÓJ{²�}»0rƒÇ™&�ä´ÿÌ xOŸ|?Mý ¼½7õö¼Ü[‚AžRb‰Æ_Ç#�ÉlÂô¥Z#ž…$~oƒ Dæ^ºJffÑÖ¦°i¹ÜŒÓ]o…8 °r¤sãý³vÆÑ3zTðtÙbb«Í}}SR2*¶}�b>mœ3Š'à¾+ñÓ×øuèÞŠSâi–¼Ÿ´:Ì[àH‚M1�S±©ôv²ÿ´ {£L.�lÞbù×;¦zûw‡#Õtøl~ ýd5ýfÏú7#·èâ-f3\Fò·uAa¨mhHº™�h ªÜ’?FãAؘ’ölPÒÜúï)ÕõüúµleÙîÁ: ÛSÔ¡ðÝd«Å´P&iÛÕÿþísˆ²¦Ôú"‘¢]ä>áP ÖKVã­éÕS`0ªê.ÛØ�ÓBžAe¼Ë�ï�Ò>‘NÌ·z4p.@$$y\JâES6LDÜ� ò¯I»Ä�" FŠBµãŸ³|È�šîãýOOg Ï©Ñâ½£Æ6_ª4kz©¬�½ZbcÿaæØÙ¯å6~�Îðîý±¹!úÓÐ#Nž/î½”VOy”}*L}hd°!¡~ëU‹ú¢d/»¨¡Ðv1Ñ×PãD?ÃÎu\À~: Tó/Çëf.žçZ‹ ”}j±–kÍåÛ|P7J¥‰× µ¨‹€¾}æñ·ÔM(L ¦»m¯°K�]µÞ�ñhûfœÐ-Ã=r&ÄÁ÷?¯ÿv16Y|ÏÚ‹óñX§t“Gn~w<ÝÇ{Èçó>ËÅ áX|ö¶Ÿ ˆŸ€