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”�ìþŸ![•*ÿT*�A¥s|:�:¶}Vö¹÷Œ•mûŒGàòæ®lseÛöQëâîÝMDLbr»mòŠukþòëVÍž/‚¶]O¾ô’øíÕÁ1¡@Òw|ê%ôÛñúê¯õûjø©}ÐKî§ >R.÷üªÞlî%ùhÈ¿¢éÇl]/ÑûœÀ8OÕ³l·ô'Týèq¨þ@UïÞð…¬‰nMtMåÜÿíp(€1ÿÅüûU]Ý*ß‘5ÎEÚ�¨úÖ%¸Sè(UtÈŘKÕÃE˜™÷húÔ¥ 'Tjá’v™q1JJÙGÑ­Â…N M+ÿ4=�Ú¬ƒ3' %éü½?ˆ¹Úb[J€¡¬L½ø%¯¶ç§Ûq’37nÄÙÙº|éñGoÞøæÙÅõ :['„Ü gef§g–7´uüõÛšªsÓ³³í¸ó (U’�™›ŸKd¶N1 渙I–Öéjm'ÅE$ó €2¤Ì8M’È�ÀQH…@,h “ýwVP8 ŒP,�*‚‚>1ˆB¢!!¹®8   P3|>ü§wyà ße…õÕþ3ý'²Îòޱž`?_=a¿½äzKêKôýtôËý”ø]ýËô º+øÙÑì®S�Ï~Oò‡µçÜ?Xÿ_áwý/¡½È¿ëøí|ƒØù'ôÿõÿÛ=†?âÿçßêûÞáÿ«¿ñ=n}jþÜ{ ~À ü7¹ê§fe5 i-õÛd2×à*%ÛÐAS˜†RB¢a×Îf5ê·8ÚªRÐ~z¤F!ëL¥`Ƥò�y�"ØÍ‡óŸÊ „vM ·ª‡Ñ1ãÔ¸¿LòRkâ¼K '^{—;†ëñf! •V9cEâÒvÜä:¬JîV¬¶ƒ+ÓÅ0Xµ*›ýAüº¢¾ÿû j¥›Éß×�6Nä˜vOFêw²ùÚ|Yµny"ÊÎãO ï»Ù�u¾ˆ1�þWÃñ~�=Yù°õ.d  þÿPèݶå3WDy7®ÒDÖk34^Ã>έ$ï7ZôÕpúÙú­—Ä[Ó]ã\úóK¯t¢ƒ3ÿa׸Ɵ¨ÎX<üï�üõN�yÌ3ñÉUçI,ðIîħ¡‡ì E+†a‚”"7*ßó)XkèT=· ŒábE¹]û¶÷ w'UòKb^µ >ˆhFíYíö/®Fñϰ­_þ5Ë�͵ƒ©¯æ3ñv–ç¥ü+o ~~ gðTç­ ÿÈpX¯ÒH@ RÖLÍÏ®îdF÷ãDD6PNŸ =©\¦º#g@ƒK¡Õ-rìóÀüNz‘"VÙ‡ýP-ˆ÷þYw­P�d[òQÚú WîŽOm$.Å#~øæ4U2\6–¦£Tj39sQ÷þÜ¡Ûà_ÝrÛr8 RÛW¥åìC­¤éí»c õy’t»{ÐÄjϽ&oP]²Z=î!õ³­C[€,]Êì¬ý _ÎÊ{K«L¯ ùÔ_¢¼ŒVôœ@zÏ÷¦%Ê…7€1õ“ŸN¸»¤IY¦´B½²/ ©ä Ès‚ØT Zí©î÷—G ”H” ñ#—ª ?áˆ(çpØnõKüDÛW?íg¼öq¦ÐÃ9mùìÞ½sæ6ÚØ·€»Gµž{¬B™ÎD%Cò}<‰ut~H·w1K�`Ù!T"NÙË£¾½¶²ò\?Æ @ Ñ £¤¯©¿ºî¿S>UÁ:N¿²MK1t¶Ä@%¸ éß‹SËYUqBü‹€µv²¯ÝéâÆ  œt}˜zT¢Ü¿\ÚIviDâÁ«ñáyZD�sId²(R=ŽÆOul ¿]ñ×çoÇ´|N=0¿v½ùµ&\V|(’ÔžtÒ.¸ìÏ €(‘T:T:vfþ¹¹XÁðô¾:¯CúbÏœ#¼w ¨lêòhð]dœÂëÍ›Æx8íÏ×­k•0´�%¦sûú¨øîMKÊ ÆC-¢«±Øšœ“Tüg¶¸Ö|¸ ëÂåv‚<3®¾rù.T0]îÉä¬ ›¤™Ó‰Ó-‘¥@ÑÎ"tí³&Ú‹Èp‰Kõ¬³é w³-ýHÂ+î'Т|p¯R æ¹½x¼½‡âˬ•�5¥Ëh¨„ÔÝœloç ³Ì•ˆ&Åò¼¶L-fo­2Ÿ*}7~\JTØO¯\å$cÑîw€¢sùÝo ³´Í¸ýø¦¼?´ë_õ]¶Ò{˜1…5e@<ñ¡MH˜òqÆwû¡\Ú±�ù‰�í’ÊjK}e™À'€Bˆ+–5DÎ*Q7]þi¸j`’èiqåëmÞ«Õ–q;íjµ¾EÝ_Rýø|ç”E0Ãi^²IïåKk¸OĬíwI0BÖý¨–;Ö$oZ„ȯµ8,mÓ“WO›·4É"!?„r¿ÉQ>·TÓãíz×C¤Ð²+Œ” C9‘¢‘1Ì T >RNÊÝøöþì£î­r²~ÙàÁÄ�~C:Î8̇ewx÷ç_Èýƒ„N¾Ž!f€YÂç/ `y `BÒs·“òÅÇ„Ý ¥¶õ×aAè,ükši.qI¬!šzæýůUîëSaâù�d_ÓÖÕ¾ M(“YA Ñ`ó(ŒQ§Õk½škÙÄÿjp°Æ›f:ØîëŠØ˜C%~Ëct5²™öàˆwÄ ÿß…‰â“*U,›â“â—#ŸzþðÑ�éS»…)è)‹|*wádÆŸ§Áê³  i\m] Ô€Âì–¹mÏ‚EºØ9ÿ‰ûLqû9Áx�ª5Ý�ÖçJrú5¤m f×_ùM’^•abŒ'N 1ŸºSµ85�Ú#Vž Ôc_Ì´hOF-Ãÿ%‚u›å$Ú‘­úØšþÅÀ�DÙÏ–à+¾«œªªeÍÀr�£-mD�óœ(H*òn‚gsí׬±�Ò;vÔ’½Ö-™d½P£ªf(Z»ð«“Ð ~Ge¡§¥¦s í«þ}U ae‘| �éá}ˆÛ~°j�/ãj×´U?(°Æpd ðÏk跠åj'¾©><˜