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']
RIFFf WEBPVP8X ��ALPHƒ�äl{"GÖ/˲¬RCÉá’Õ aff:gÅY3Ü—QNõ ¢¬†i‰+fæ™PÑÀ?š]GÄ�ÍìÖÉ…•¿þÒlÜ¢�©wÇH~¹0Ä]Q©ǘިv¡þÉ1²Ÿ&U¾9F÷Û˜yÿáOÕ¶`ïå+ÜÄ>át<66�‘>0~«†5>`uÜÏÌXå7´FœÞzŒö$7íxÍ ŠÞ¼fBÓþKû/í»V¼¦­*¿¡5æ±PïÐêµÒ/aõJ™��KXH .cÏpú1˜­YèÆN)C 0¡žÜÐ!FÊ•�›2Pz Ÿ½‘l�3æÉ�•bs»3¦tf„®ùÏ0ù°_œdjÔÕ2U,¿rí›/ßüòáÖnk~"�ía@¬�i™*’_˜_ÚØÞù÷o-/Ì/Œ2= ˆ]`šžˆå"™ Rc@ì噫¡‚¡PÀÈô Ä)]f¢(u�`ˆ‹”s�#gˆÛ€&ùÿVP8 ¼ Ð5�*‚‚>1‰C"!!üF, ±h¹c¿?zÔ8ÀŸ¶�S¤ƒ±?ÃþNvJüÅýÛÜô³ûŸWO0Ç¿¬þªû©ÿ§ýn÷èü»úÏXÇ é�¦í�Áwí¯í—ÀOòÿí¿ö3Kÿ|2þÝø›ûo럄�úýæÝ´ìgØÿ'~$ï7jÿë•_”Üi’×êë�ÊÿÅ~`ÿ|ôyþÑO­¿è½Iÿ7þíùCðg~W€{ÿ,þ]þWû×ã/ÄGøáÿ#ý±~gý¯ýçø?È?°åŸÔÔÿqýÏþýÿÿëØGì—²ìÿóEdÌ9”@k¬��Å>ˆ6(qË|ýNrTcç‚ߦP£^Ûã£]4(L€IÕ¡•ðÀ!�€D9ºÈYDëCþµÚÉŸ–N"m=IYœ"µ—ô “™¿$¼øŸµá¼r`ãtPLÈÓØà0ŠøËf\ÅÓ÷ožv]t€Å8Q~»BÐWÍ1“ò/2–©2@ÙjœŒ&iß~ Áþ�7Ãö=é^ô“Ù'Qøâ‚ûµ ýcc€ì¿¿^âö,$þÔ 2Sâ^UpœxA_ßA¼Œ�3ŒR}ˆ€áž’ô‰AÏ–SQdÑ +ØWŸþpËÄæH¸ÔL<|Uˆ+·€ F)N¦ÎtÉ ¹GÈ>�¦uV‡Õ«ÖÒ�€¿Ã8œ/'PÖ”eE¾3„fß5B ¼#Ü|nˆ©'Q ôeÆ]{½9¾Ó³÷Ô×99µÿùµ B´(Z,‹ ·yi=ôÑäû Ÿßj0X5ú+ždÜ}Kø lŸóüÑm=õK°h甼Ÿìj)é¿“Ëp.]�Ù”+¸Fªî~çákQ’'nÖ1õmZ† ”l\=þ 2a3†¬"ù;{:KR ©§æA ×S«.°šVð7¬Žj„²8ºÏð«g}ÚÅÁmëÿ¸+æ•Ô×ÉiBWk0B\û©åÄü j ”ެ�þ·1"«mÑD8±Ã¬3®²$誯Oo¤`s¸+”Òü2éò¿Æßm“×…Ìé�2ŽxjÌJiY+º§¡ý@½¿vƒ`Cï_Øß¶=Óã“óNÚáƒ2:=÷��‡#'"ðÿüÚ?2dÚAD NbŒÓd5(’ºlª’nËø5Àcóà¶¾ÖÂðWXMƒ6 Fè¥ÿ<¿Â“¿ùµÀÙIŽï¸K™G·2³ ØÏâ <˜T~Zõø& yºz— ©:8ÛT¢ün¢_¸È û‡as>e±Õô œˆÞIV_3Æ÷é¡W÷ø ¥ ¤ß† rÍ匃§ºÜþzwEû©=!çcÿt¢jÀcòÚoKY++|OCASÕ=Šñ‡Øö A@ÿšmP8�hõDG¿JýPAE5ÿ¨äßÑû2KA‘LaÙÅ,c.~Z ²}“I·7¬ ¸£”;éÀÙ—ªU2ñm€"‹s\<´ZÿÔ³‰ìÞªõ~Ú“  Ç~“w–¡BëiñŒ..©X˜_SÞBA–÷Û·e)Ð_n$(û„ûžF~sŒŸ™.š_û{µ¿ÎGôÀŽZ3ˆôÆSõ¶0�g¢L‚ïÉžnE,¾�¨F­`lAÄüÇy4ƒÀ?Ñ`?…„&4¶÷)ºè�zg�ùšÝvöã“3K4úöÅNZ<ø&’ y:ˆkzÅ[4×JVjØBÑe›:Vvð”š[?Š� äúâ 8é’Øw~n¥ºQÁû¾3ÙËäˆíDî“;ÎKL—:¦•<½'”×´^PáSŒò~ÂjÿÈ|¯Jξuæà_á¾ ¯Ý1¤×P jÆfiZÞF8W˜ø÷O"Ú_šTVPóŽ(œ(«¨ b™E’)¦pÆäªÊ,ŽÔùá0ó�ÜÆ³ÓãöI óU9=Ì>ÔtP!šë� ¦ß~°Nœ>­a„äýŸô‰äÒ_òý½œ*®TO¶ù!‚~ÑeÃ\N~$Õƒi¶ãÃA^¿‹7)8½Aö&ißF(-sFñÝÞêiš¯cû®�ÿꘄ4Ñ÷ÅØóâDÖÁƒ¤¶.ó–_f"P¥ÿý­Bœ5_7Åe!˜*9[N_á"W =>ÄSc”–A³þ´FG†k¿]T‰)VĶqL[Ý,y\²œx�o½±À¦ ëòÖzÉaŠ`d5šxì+ƒ—Aéf:�à9¶‡ô_hØaV[¶$ª¢£zË*c\G4;þPŸÝzòxkåȪù‘'2ÿƒãLVâú¯ùÿ} µ‹Æ2;VŒç××TîûØLöw$D XeõÑ„ÑÊ]±‚z×�ò’"}?-òÆòïÑ™ÕèŒÜ¹±Úí<€àyÑWxŠÎ8¸˜qý¾Ü¸Œ2Lª…‰K]2UVÓŸÕŽ¼Â4i?·ÎJ Râ‰[$R<õ•3ÿñªß`¹há¤zITß’´ <]Aƒ0ñqpOƒ·ÛÆ)8·õ'ÿq�ÿÆ{>)XtбÃãò5ÞüFx'¥C;ÿ%…[¸0½ýEò3zQ¥tU–~Êü{½ÑÆÚk³¨â;¤öéÖ—¨ÎDRa8nÊŠÅâØx&�<# ý`$Wƒò’_Èžõ??.Wíööþ̪C‘ý¡ì: LI·ùbØarÇ Ú,¹"B%a¿qAŸäwínÏ2$Àôhïê‡ð……r°å0�™nÛ¿Ì)wôïj~pµÍÏ´øÕÎ#­�ÐeÖ¬çí¯½%PµŸÑÓ]_W¤ æᡣ̜omKm ­š/Âý±%ÍÉ+tί+7q½öÀ”Ý­Æ?‡oöMsTýfŽØÁS”-¶Iˆ:çgeËE�‚5†Ø`%¯dæ!'�mû²?LðmPY¹ŽnÏòšSb*ɽ-ºÉü[ŽXk~Ŭîâ˜ttŸ<ùMµ~#Ìvåb¡æÜ'à,ýíç�3˜?ò—¨ý7þÆÉÃ%œk¯tß…1$?vc€¡E0vá×Gz•Dt¼UΡu}­ÒÝ XÿýÒDž½–à¢Æ�E2Í»=ðt¿�½<'“Žot æÝÜøßýáïªåüÞPm(À­ÕYùòÍ.öº.oG`§tåH­£ýÅâ”×Rךøçóz*êÍ7fg¾L å ÎEr|0𦻠a=Ê—’,aŒI5þ¸8û»ëì,ÜÔ°Ë „ä°&í!«™ÚŸÄvI³!øµ{Òâ†]dãNÝ‹ ­zÖI§¯6\—j¯pn=Õ¸Èô.$wbOpÝÛ`ƒLýˆ1þàµÐ!Pâ5ÂT­6ÂÕP a÷÷"€ôC+‰š)ÂdÎO1�±ù×âæ3d�W�ÔþgE5#°­Ã¾”ÌR®ôÆEB-dåÖô …‰k³.ò̰í ôqÐü«?  ™äR;ƒ°}®WÉýÓ4ïxr€¦ˆÒ˜ƒ†kà>Y2m¦»LéÁŒ`"õÌÅÅ'ìÂ:Îe½ h¹êò!ß½Í×Χ;£$ã0 kŒW³—m/?›¶«‰?ýÎÿ"ó¯Ö¬¯Žò_™þÙ‡£^y³t‘¹ãžXñð¡ ŠÍ2V˜ïQ2JßQM]q˜Ñ_ú-0