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‘�ëZ›"9¥_¥R©Ôhµ†¡5<ËŒ¥�˜!dò03?�åȱCË1;fˆ˜™™—š ÿÊÙDÄ�e&Ä:Wî9ðÏß³¾?C�‚ΓΡøóë¥êˆ~lÕ u´>�Cöý °#ßΡû}†ïþŸ«¬žCù·eßqú9Î!}œ‚¸îcõ2d–øˆÕ\ 5&¿£5ÌÀ€wþDk„›tã5Á©�ÀL,†ÞTÁÿ‚ՉטYÓW´Íï±ú.]&ê5¬†\Ôȳ«#ª ×R¯qúÚêSŒ˜؈ÓÑ€&` ¡®�~£ÛE3¡éWð¹/…#æ ¥JNcs½)Q9ÊÕX.µã9&¯etŸ Ä¨â‹er5kÏ>}ûÁ·ÏÏ�™œîS˜`Š/–**Ê•ÔIÙò�—²¡¬¨¨(£û\ ˆU`ŠÒ3¹$‹2‰ˆ¦0 Ö�r—Šé‰DêߟHÄB>�`@ì0áòhšCMu F�8@8rF�8 x’ÿŽVP8 Ä �1�*‚‚>1ŠD"!¡ÈäÔ ±�Ø ‚ïá/@~·w/%ÿ”߯þRÿtè÷ýþqùsý'„ò?æßÝÿ·p€~–õ€~€{þ�èùþ£ü÷À¯ë7û/ï¿¿ÿ@Çÿ¡³üàãë3í¿ú×â7]W€}“Ð/ø‡ÕÏ·~NUåÿ¹ŸÀâŸÆ¿®þW~cq…e¾`^¸üÏýö�OܽïCüçüÇ’ïöï~úöþOýþ÷oÉŸ¤oÜÿåÿ‰ü•ö}ù—÷�ø_âþ¿‘@ÿaýÓòåÃ×Oí×±ßê¿þñ�hûd9gaê 1U™}ö\"7‰;ƒí8J¡ûB±Š»AØ”ú”'zÇ ]sý½ñÖÀ¹”0 Iÿf¾ýêHŠHª"‡mžîsÑG='ŧaý.i" hg“róCB¨x†hYç#›|E?�Ó…Óƒ1‚î\ZÀúútZ pÛ pM:[Ô,'‰®å^U¥ù¬þrÍO´8"64¶ÖŽÌ¥T&ë"ÅP „¢`þþy)8]bÑÁJ1ºéóMŸW$I_ÿ"½˜:TÏ4r>èQv÷ùW?ñ�™Ã‰íf÷Ìeí¾|¤¤—7Ö$ðÄ&&öŽÊR'«Ð^šØl=Ou$º€ZÚì‡kÏL�G»§ŽQ,9-‹§ÂPÞ áÕÀUêš´<Õ`ƒÊO�¸ÉfÂù﫳C�§÷’ ÿ÷'¶‰ñ»‹ç6ÿü‡3BûUÍò&À¼’ü'´Ôèî*1›pVúš]ܤÏ)fÒרqö½F9ØØ¯ÏI!µÂ75hî¹”ÌHÈ…U¯³ªÍËgn++—Ôf˜ÿüiØøj�èza6W }þ‰?`ÀY€ã@'é†>Àòö¶®,[’¤µ“¤™wpÆÈ7,C¿É(­I–w' sA&Ä[”¤™ø ÌpØæ|WäÉÚFáó¬ë/€^¨:¢©î pûôBê˧Üç‹NþøðP/˜W ÿSx¿"Æ ¶•üòTûþ­P|¶_6u ‰íEñ%²‡{0 ¶3§d§þ$£j~ç>� _h°Æ`§ÚQyŒGîv¾éöÚhC»Á‡ÿ’i«î˜ð­ë?3çKk–ï_óB"áëžO“CÊä8‚6c1âÁ…°?dÞ*X o‡I ]å>eZVøaŸ+ÞžHñ’ÅÕ°0`)²žt>!ð‡NÉμ"È”™Fg©Þäê5�ÁXíëfahÿô ;xÊ'²#Ótï"ÖÛÂ]ƒ*¤‹!¯‡õSÔê½?òã <Äͱ2Bi=¨j®ÉïnK˜^•I“®¾�Ïì…¼5 ‡Ë§ßÅaµ›T®³DbßýJµi\é�K�Y6�ßÌ®˜® å¹§#«Amá¿É �Nî�k Ü ÂC²-ÆÖ0[Ys8„=Û�}WÈo^Í03øçšŸÃŸsËT°ÉMÖ ãC:ÖXFÉ,9CË Öëô‚,?ÿ-®„<8WJ=øJ[}ú{¦ Ö y?PÐíôƒÿúaÈØ –vÐ ág¨êU‰µ~k-¹OüÀãù0Ë:ž‚Í£'2;Þ£ï#]t IÏ’|ä ²ÖÃ!º>ãï>p‰`¬÷aµ„ÜArT&b~ï-ÏF:¯3¸¸ÿ„“Ö"xI:ûÂHl�ÀÔë¯Ás-¦®ÖØ~›¢Hàæ(&Ýt%HäRMÌc1•Ù ÷­Ó‰”Úüí÷ Àñ¿Ý*Åvè£vMü—ܲ`œ°Îy®þK�ªœÐwu•=7†¡ÄFüÿ”m˜ë…Ê‘‹ð G7#A ¼H{¹�NaÿØz€-¥%÷Ñ~'Ã~G1»~óÛúŽ ÷'©‹·úðpã}—¢µlí[ѦlÁ^˸’üñšß=‰?‰fåcð‘²0šÕAµõ¥Ä1þ8·¹‹(kÒ>'l¾[—nàïý<š8ùX×FAL篃ô\öð´à5ʱ4g¯ÿ8D§4NÚªbüBßfÒÿñ£õ9[­�'¦âJ1׫½­ÝýÌôçé�¿ƒÙ?F0{¸XýGÚyéç*N}_ûÏU -~ùM1Ãö\N)¦þ\¡Ã@˜ºQw�óà_´2±¤«þ)´¤Â,jÈà@ N´4®=Vßüü$)Ñú•º„b²j‹Rý%fR3p„If#Ý«=¢�PL ‘¢ñÆÔüœ«p:I]¿ô*¼`û ±‰| ¸Ø ²~=Éqù“pRõ?_ý~«2³ácV ˜èc§¯ÿB¶Þ›(P~¼ÇžÕª1áy¾àIf\žýíñî#5¾ßñÅ-ü5®Þa¹¹ÃÊR©n”8ZùNÀŒulvkW@ãD«à –B¿nX»|¤’ßÝû?—RªcfØDâßjke‡T²˜GßÖPøãwç ˆðz9«eO çCóòË÷Èt—#GŸë�Šu-¹l´qyòàý²S ¸+·¸‹�Rû¿¼1g>éµ7šŽ=?Y¨:’=2òb5”ÇëøÛá~¬ÎI6+bÂD‹Ä®Ç>›'�i!úוs¶6ðWÈ~-ÿ ÜÀ§€W!»-Й›jTÎ}s‡!A('¿/ºÈØ`ÞÔ°„÷Vµó\¼/‡L?Eïð¶U£/óü“€ÅºúÃ,Y¥Ågµ¥^xÙÕMÂŽiò-u_> ö7ïWÞón´ŠëWì�G!A}Ç¿ÿzxÁàJð»%úÐzòÅaXN¡ÀÏÛÌš;ó6ûFÄšnÙK–˜¨ÚvŽ,]””}PðR¸ßQ?[•ÿ÷"þÁQ‹+Ü 6ÿÿz* ñ(켬—Ð�°G¿´¬‹ ã1ž-}Œþ$’píbyÇ+K_ΜkƲ± >ƒÊ#éúà–®›û/¯`²ÿÆ5ù3·{ ®©éX/ÜÓã¡ZH¼Ð«rΩNEÄ­Õ!ŠˆÞ¯¯ˆKÐn€Ãþ=öÖRÂ’‰W@�ØžXFT×v"–ƒ�|öþU´TBD1`ò ªÿT[€gÚuÈ-TØ¢ï˜e5ß®ÑP®Qyã¸�«ª¹9Ö‡ì{n¯þFC/B'c„ÅÎñìj5bíÆVS‘ä™zz¸2(r=íu J3ÿ{ÕØÆsÂ:ðcù&$|@k¦ã”6Óß�‰Xo3f@