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 ��ALPH1 ‡þÿÚFûð#„JeÊvWJ)¥œ»Ž2J™=>JÏÝÝïwww?ww)=w+CÏÝB)!„¾$iYwy\"bð¿ÿÿäggs\]²%õF¡�qŸ‘1Uœ•+Tl']*È|¹ÃdIS>ãmcâ+?YÈNƒÓþl,?³‰ÇCéxÒ‚‚[»¤#WMä[¨8§X"»SŸ½¡„%òÛŸÚ<;—nôìò,|vàÍä¥ç—ÚK@ý  äV©¾´ÜÖjƒ¾`e‡^Õ^ÓT9-ݾy¹I·¯Üÿþ·s­ùf;€w~¿Gç$û Qz~©¶?Å^TûóËö缚[9=k3ŸK±¤Uào¾óE~[`¯õP'n¶D…µð}]´€}·zªÅ !÷Ó¯}`²›Ù„O˜(`éu.Öˆy`Ÿ¼¸Y'j‰"[܇‡½–Fº1üs®Ãm%´’ËÕJ Ý‚Ðz‹oú-v6¹rpå œ9Áå{+¶ùµ¡­—¢¨Eš|ÙUßgç–ÒBþah�Ÿ�o½s±�ry–f>ò47G·Ç£íVú =íã.ôhµ�Yùªïæ´º<^é50í£! òðÕV¸1Zíi+á�HþFè•ÑH•?@»¤J$/všp_ÉDÚÅGÍú5hDò< 7+Dê± P©ÎþD&½©tvš(Sž?µ.sC¹¢mœüÒeJ~uŠŽ-.÷\×~©~|£~€3̤ģáùLhúö© ëi°»žÎ-œžÐ%?â$ë‰Õ2Õk§–Þ¥Dþ(s"Ÿã = ÀÓD1Ÿ&ƒýBOà~¢ñ†Z.Ñ 4ÐÓ pÖ9Þ „à¿¡­,FÚT`8é¯0ôÓ®rys¹Þ\'_ºÈ@œ’xš¦Ã%]ç ¤& ¿ÐÞ° æ=ô«ŒBõQ‘<1ú…=ô å<*gæ÷ÉWGëa hW† eöè— ¥´Ð®…t%1˜3 ¥Õ0-LKÌ€”Ö!FïÀ°€'Ÿ"0— ks‘´Ü|¢[J p_Ú¢ÒF.;¯’Ý{m®]d†:JÂà’$æ&½.R@ý*o²’¨‡AT$ÏÃÀQO³8h:ž¥©êé#_`ÒÎïQ}Dá"ÍÀÞ »´—Ø'´m$•*eý›º‰çè�‰t*~L•hq¤Çè37 M™·t*ÉâHývqT֖Ƈ'逯…’Ãã+)Ó ñ®çËVµƒE*]Dt"ù‡ ø:ÑÝ¡ÁÝ5Åá¼|™ïwB#¢–JŒÖo‹¨HéD™Å.x6«Dú¡.@¥>@HY À};ÅòD²РŽ>£c¥ ܃ãÅ:º—€X p�ÁcË€Õ8z�Žy<² €uàÀï€Rÿûÿ¯®VP8 `P�*‚‚>1‰C¢!¡jü ¦î4@#ëþ›¨åæ|Õ*Ù¿ ñÉ@\¼cþòŸýW½Ïî^À<À?E·ÿ3ý§þµÜ[ø ã?É?Îÿwö3þÁìÐû7óÏRïðÞÀ€¬~¨ÜÿÙÿ†ýÿúý¼ÿ“þOà#ù·ó¿øßŸÿ X&NÞèúÌF@ßÚ‚FH‘€oÛ‰¸@€|Œf¯1È´ÇWx0±£�”µžUIÄòji#ÏÝw®õ1grøt�yËBé–²:¾ñ%3="F¿µŒ‘"Èþð€´ÿËM€9öIŸç-A5t]ý`ãóˆS*æç¬×#UCªe75ÿEv¯cÿ¥j§_'­<¿sŸóšEº!Mü®´#Bm?¿�HË `¾ÔÖB–Ňò_Ý+è/ŧoŒ\™¹G1Þ^)—�™®øåöü];J¾£ó€²tÞê×çõ-^gµƒhL ñh07øi¥ïzþDÍ£«dO—ÆÅ_àû¤ ÿë:°K^‘Ióâ‰(kt•4Iÿ `¿¡Z®L*F´fi†öYæŸê�°ÿÀ!òÙ(:í~V8OBr/Ì=¸•.”Ø.ñ±ÆÞ-•s†‡,1˜’Z›9u>�âÊ/þ9ˆGWÌTìLØ,7bs:ž˜ÿ lÿÊö¤œkßwÿø’Ø &i3£$ýe 6hEý«æJ+ÿc…ÿüG_¾÷›m¸[,¶Þ|áì+¢€P¦U�,fž¡ä߃ïhØAÒì8ú–VàÄÿÙŒ›Ì§ùî‰iДz|ŽÏÎ\žS3 {Œ'8CÖiˆ_™V¥ùE…¼™8£Ê§¢´XOU]OI7Ï“µt5N«ZßÊWx™r cÒzºÑ?ÔÕK~ yp‹=Oت½ØÅœvCe*˸Àwþ%“ËêU‡>èUÚbë„·¼þyë´'“&× ƒÂ†©±ì6ÂfËC.Ý“ÙäØy¾€¾ U ‘ž¢Y»1¼a@'wˆ 7c.­ ¢=Oæ?åœ(%Épz‹½ÿ+¿Û›(üµß+¬:&c‹±L4çÄOR[ZÙ¥¦æ‘5ñá¦ì¾…¹iwqìNiª3Áß[ CÜ–>9ØœR•Å6s͸ÿÁOÏß…¯Ãž£/b¯9 dk¿µ >qèJ#q)dà‡àT.hí&,ä�/«9—®á) t'—/�£¼Æ,"ˆ´Œ-8 ¥ò_ÞWôo·­%´ãÞ eS•úÅñ4’`2o—‹_Ï€óH¹åK}Ÿç (Ý-{À|sÎÿûå_UƒvœNÞ¾¨$IZ¥±¸Lóȸ¸¢×EÞaÓeˆ2¯1(AâçiÉžÁd^PZçï�K|§õo /ã=j!¹?¡؃àáÿƒ ·b…ùÿ‰Gÿö®?ý©Wÿö˜¦’¡K¼©+Å’®Ûqä¾ _r0