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{"9Ö/˲,«¡d53÷03…™sffæäYåYáF³ 3Ó’™™“¡¢ÀÍ®#bÈÿ%$F/ڰ響fV›Ç61íÔçn$_î[Z®tcú}ÈÌûÜ�ìÝ*Kó¾w£û´ÌBÛçn„oi¦äµn”÷€ ˜Ö�óû;ƒT÷N#šùŒÕ:@'vcýÞCõØ ´>§èðíh}-ã:TìÆ«J ÔŠŸ,ø¯à¿°¶ãUa —¡õ9g4­—!GÑ[¬Ž(¡'=�X­Rú�ôLý‰ÓÜ‘P±NœÖ…4®Ç\‘¦Çu¥Ft©ô%&¿ÆçRUL ª\ e&ÞÆ¦«&p0Ð#Tzb¹º}1y¼©$Ñ8%†À¾D®høÞ¿¢øúÄ–†¢LDI F¸ÃË•Õ ùïÞQSRR”Š(É€˜¥Ì¡B‰LQ ŽEE™X@“ ˆy`Âå D‰‚‰X$ œ± ” ‡¦<(*Í!b#Pƹ@‘sF�Ø h’HVP8 4p%�*‚‚>1ŠC¢!¡úm” ³¢;Ì‚�>ÕîòàýfôÃýføQý´ýnö€Ì@ê¿ÐóÛ?[sŒýeû÷än‰Ÿë™&_ÿ ýcÃwP.œ¿¾.þýùIýã®ûΠöþ[ýSýßۗħ÷ÿ¨þ‘>rÿ…þàù?ôŸõ_Þ?z¾(=†~Ìû"þ¯¿¯³¬X7Q*¾å\$®Õ½á"k<±c�Ƭ½¾&é•̹.¦TãÐàrã*dwìNå|ºU3_È5ÒS{z�‚<æy(¶ÇŒGgü“0‡ü_Å‘Œ/ñµôïG?J¹µÁ25jñ?”°�#F\ú�T$P1é\eŽ?”¸×^sH¡¤ýFyß}EW˜Ë ¨xËú3ÍníRUUUT½Êþüã'.�ÌU'ÌøøÞ% €ØmOPêÄ÷èðÖЈ‚ܧ¼A¸8bnß:¾ÈÉä˜:Š L¿üDg6²¬±M}+o9=‡§�ue W:=zôá„ÕÿA²KL½õVü£¿¾“¬'oµ__ýë©avišäÇj~� ü<2No›£‹âß™é²ã_RZu<ˆ” ÷R¾Nð3ø¾÷ñ>@šU ¾ã~¯KüÒãöPÞtÀÁoù4èõ[®øpq€Ç!–Í-F¹±x«× QÁ Ÿ<~ÕcׄíÝ-¬™ÒšJ.ÐÚ3¸ÓöÎ<À Ø[—Š�ל´SÚ|˜š]ø&Áh‘ Õi~Måòûˆƒ–R›žxäYcwï�Æ�‡ë#M�ìv?ÿc·üóD„ú¤µŸÿû_U¹Û�ë¿Hd“þ PB:ñäÝ: ð€ëmûŠ2ŽÌ£¯ÜBèï¢»ØæŠˆ±?Hñ«‹QŸÌù×DSÓû¯ÿÄÇàS¦‚ ­ñюϼkè¼/ù‹�ÿ0üw/P¶%<Íõ亱€ý‚[ʇ·Òë¿OÏgAeÔM˜¸Ã:œò6U £Bšý¥1 _èO"æ£Ð5Ø—Í\ͺ�ó.»·ìO¨Ì¸í¥ŸeĈXR‚üÅi=N¤¡¿',jG7=bDõkÍuõ�§š�Àgæ…aßWE~vEL_¡äS��Ëà§+ä-;4Ô,n}i[s óh!m*™ éöBÿ;ÐÿÍKGü 1쬂1z44Äï¼�Jd¸ô³hC8a@!û}û ªA™È,p>+dAÆûŠ/Â8Ç¿ Ö ?DÛÙß�·Í˳ŒyÂúïiJ@Cˆ}/ÿס¾¬ü�£Þ)ý£5u��M¶£²ð¥ÿ«UCªÁwªÃ_êL·ý¡GƒEB¦ÿô$ŒÐõ69#¢ÚÀû'ýºå€ ³P©Ço…c)ÝDÌ¥¡¦i›Ù—TÛDS¦À¤ž^3A%[ Qâ�¨KÕšñ‹V-`WߢŸæÛIÖ{ ›ú!ŠË‰ Ô&øòþXïy1y�¦ø/çOQÛ³±ÛÍ´—ÓY!ÂOíx —Tú¿ÿßWnm�3ºÿ"öªR/윜…+DÕ×ìižçzÙññ–ƒLSÔÌ#¶õï@È6+3ÙÔ€‚u¢Õ$WwC€ðî°œˆ¤Áfþgp²ºœ¡‘þàçiD,Ò‘¹•ÿðD ¸Jn”�0!Jüšÿòá†)ÀËýñJ�#çjƲß'Ô-âÌEá‚NU,Š�e&^Êpöþ ìîl0 eCQ °ó¶`6n1³¼>œ¬Ñ„ŒŽÃ7¡3¹ MØ"zGEÛŒ¼j5ï^3ß=ÏŠ™pà�‘ Qyß®—5È�äh£%ÜR㽎†zgrUا޶Âlnß§os°C¯èlFÖå,`%&FußE––X 5ÔnC–®Än'µ³»¬DûMgyåSkü‚ï|€ôŠvbÙÑrhÁPLÈRgȶ*;ÁÑ�@Ûà ‚»ÚÁ 8߆î‰T&YŸþÊÈ”tÝ…T§ ©¦ö¿\n*Ü7Ý—D?£ä~@%-Qÿ„øÇþÅBËTãüÛ°\‘lÙ =ò·îVšà2NV�èuœ.`zöf ¬5ÒW¿îK.´«Ý¼3s"