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{"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  ð-�*‚‚>1‰C¢!¡i]Ì ±€in'}¿‘Ï©¼ Ð|T:ïýÛ_ÁÿP’ý€9ÎÿGôúãûuîµþÇÔoäg¸ôõ^¯ã½€?ª°öý’ôÕýºø-ýËý¹øý€ÿÕÖ—ãñ¯§Ìž¾çûsø?,{ãÚƒû®ø·%þ‰ÿ¹Ëñ›Ü­gß?3=c¼((ü£ùŸù¿Êïó?¿ìy}ú7þO¸7ò�éßí¿·þñw}ý¼ö3ýˆ+än`ƒÄ�= zAaðe/!{‡ÔŒIyãÆX%ºÍu�ƲC¸ÇÒ�‰ìMÌ”äk®R½¢×•¢ÎÖE¤CÉb£ �p"#´˜p]tÓ/jy?¶ÑKÜÿ|ÝyÇýR/9 ™5YÍ#ù|b/ "¤µ=\Ÿ«ÿÿ€&h¹jVÀë±”*#†šŽ{P.÷~Ÿ¹§Ò�†Ö–E¥&öh)ˆ€ÀoÄåÔ¡>€!ÊϰþÿA©ú©Â>¡ ÃH@5O¯`cŽýT…Öy¬�Îüè´rþ µ@òußt;âràøOԆƹ«ÿÕúaëw»5ÇÜÿ…\@K·ô9rpz¯sÔº× `ζl¤ Ö°Ëɲ`õJÓJ—‚͘e Ág%Lˆ˜gž�}5Ì$Œ_TŸbe|jÔôö»ëý^œßö�ÿG%ï´ Ÿÿü„œÑ;x4¥Tdø¸ˆr ŠXW ÆÞ¢M X’…ü¡'†K´‡Çš…Ùâ�@?‚BÿóC{ãüÛì§ç)¶Üá»Ì-ü²ö™³�Ÿ¬ÿù•\¨Ïù)|«½X²Çáœ1ûº‹ ê–©†�tn›´Ú×�؃Òoñ¡œŽÖÀÞ (·ÂU *²瞽ƴuósó‰Úwƒ¼3¢Ûè�Ð)¤ïõ=¡mºØcF‡@°þjð�nQ §F¿]í›Ì`¦¡O+-ø‚\ÑLW?w£�öÞ>ß&€¬¿!`l»ÿÍbf¿ü·>AfþÛ‹¦5ð?øãÀ/PÈîòCñS}=yG‚K¤A¯pvæLæ…S «–¹-(ß…Mè7öZ\a)zIEP‘Ã($)RØèSf…ÖËëÍX*ëµ7œÃnA0vätDáœvÁ˜�¾ðwñX¼Ý€.MÆÛáGÜpGDD:œ!s6=o’(u¼éþ/ ñÏDΚ”v²¯ÝùÜ"ü“ß¿úÞŽ( yuÄoèK®Úr>_,•á{ê}»ƒÙ§®wÙ»4“PÍØM`,–‘ÀpS“ G°3�¤žåTM(,¢ó„:Ú_…± Dìû<‰²ÖXQØ[yûKèPVÒeæÒÜ‹¸\š*Ù)h÷%u˜š]â mw@Þ2WZ´ ª/Ô¦ «=¼ Ãu[rãJ'™Ç§˜¤É @6{DµTKˆ› 5C•éŸ\8Ÿs“w¹©‘:G3FgÌ(È«ì+iAuñ6ðŽ"F'ÿ×9—î¦Â£°dRþ ƒÎ aâÄuøááf‘ªÐñÿ„~Ý�©;>#BÆÝ4å5›ßö7ÜZ±Ÿ�{`X2Ç™Ä,¼È£:CV­·Ø-9ª%!AŒž&¼ö¹È¥7¢§m«ð¨Ï8#Ìb˜¤‹¤Y³ŽºzZE©ml¤¼Ä¹òS±d‹Ä²Ï¦M�Pq#ða›› ÉŸ]õü�Ђ®�æøÿžÙ{"!<‡” Ö‚µƒ+¶*k‘féri€Y1f)…ÈP‡gF+`~Q§¬Ág}¾ÅìLß ¡#*чî+u@Hô¯jæeÄ|Àã½ 7š‡îñ<ÄžI1Ü¢°U`nfˆÕ9O#ú–Ãiœó˜yÞÁýÀdûY¹Ã×¶|=õåó#±Î€V3Ù™ÈM3õ¥.ÌPÛÌ6Ô#>Ìp75ž%ná\øÂü}&«!0 䘉y�‡¸ÝG®±’�ÃâƆ}f‚¢ÖÅÙH°ìÁjÕÎtÞ+�–}nBÇßyó™2wóÔy@ñ=ðð”RÀó4ûݶ4„×|Y ˆì…Ho2ñ¿«QÕ+,—×ÿHð¼P¹{Üø[ÜRÌw™•ã⬗©†O1úçÉÓ�—ü<ÈR# W OIÏ…Ëwµæo÷TÐg_pj¬ñ%/šv«÷}×8é:›´Ã“"µQ}ε™0uÏ�n™ïø�»ÈídòUQz1¨8ïþUºyBs~ÿECšºdEšª3ÚTù ·Ïê7÷åØ5¨¦Œ|^ì#ɘt¶ú/pÕÒM‹v`j[Bœ±¦ö‰G¾æwÿ¸žl÷g}ާêm 6r´Xsö?ÈŠ}Ðcñ’1#|£`üp°AÛ-6:h$„ÕQ?›ÂÏâ8cÄDŒlê¸þì\¬U2S»¥]·à5ÌÝ9WÁ3WîÝtÃÿW?𑮞RyO)ÐbtÏ6¶HyPy.—êž¶·ßi�&J2oýÉÖ;'¯F5¼ï÷X~‚ž.ódûG·Ý‘¿Iÿ�«M�¸Ú™ADl°ÍêÛ°ï.Nè‚Ø6Á[ŸA H{W§#X§ÜË·)òaªuɶ–k`‘~Gí4�]:ý+ÁÙL ›A¤$^û€Ê–ï\FŽE±”^, ÝË}îWºáùÈ?ã nZZ“µé~­€õ�ò0…€Š V”uÖE„2#ì‰F  XD»Î¨I›LJî÷‚]ú>—ƒ9ùjB‡¢À¢ÛŸCm†Šðâ°ˆ>Kÿåý'8·ˆR€Ã‘bpà‡î±£â0èÚ!¶¯â¹UDfG•CŒœ…”7ÀH>ø}7æ6�‰ô1å6�v& 1 õO\­JÍàö¶<¶nHû_޽´ጤ�w4ÿ,VÒÐ7_!¼ß:´®›«ŠÁ[Vžè¿AÊÊò¦pkbì‡66.÷·Dð:^\ço»»v«Û€e,‚R-¥÷uYGAçš~0�¶qÙö�2Ë· ß-<šOÝÖoþ\Ä?²àC—_�×0F‹cœ mÐ�ÓÞÖ˜8�Rjt,O±J‘"Lží�A¼�ÆfóBõËWÑòØhú¨ Kúî