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Ûê8zø‡B††! ÃP õõ†ºËPw÷®»ï5ÖÝÝ}«ë2TB e¨áÞ†% ápápøx¼ïw’t7?—�ˆ Àÿþÿ¯Ï†T¤ÆEÞtɾ/TÓ¶i"r×ý«­ãË"»Füà¿Zðñ|²R*/tÕ2|Éô®šÖ|Ò#ïdžš†Ä‚ûÚ£¨YJáÖUêV (‰t:=)'Ø‹Ò<¦¥yH¶¿›ÍîR©4ïÓ�>ZÒ|Hõjºóøñ?ŸžÕªüćÌÛ°,Ýb‰4�Hõ鎃gŽ»®—%lÐZk’µØêÒ¼snh":ø^ó‡”4ݤ~ÖüG+8éw[“¨»Ÿ­74t\r‰ÈË?@ݦµÖ^³æwI,|݇m¢ò焎ß6Ã&~&°›øÏÁƒÄ¯ÕsÄ×õøÚ#ß¿7mÇÉ\xü>â,úºK>ó+T¥º„ÏP9X¤­2,òX®ß%*÷K @*G~ÝÓ¦ÈnM¾KTU\*/qEØ¿^­sˆHßÈ>W¼€•¡J¶A=¯©Ìâ ¬qÇÑ’ÝÍg„Ž DT²ÿÎ;]>Ô³B®QhuXi ¬u.å75†B±iW}©0AKºXp%ÖZ.Qù“n®… Ö�Ò»B³)Sµ¯Q¼ÉèCõ"ñÇ»I,œÞûæÓ»NKK4sê ‘¬ô:£)†ð™òº› ‡…Ï+4Àa…¦KL'�®°»�KCJŒ¦Zmé.á]% °YÉWqØ-Î0ú´Äö¸�ø±zpõ£”È ‡#‚õ"IÃJ,ßO}J<닞ÖÁª`Ž º3<-< 1yM ¼cÂ÷• ‘ £3ã‚P‰çµ°Mø]*}8.™Z5¤Z‘Ó>.Ä<)¬ ?jIÝ%�>÷ú»²p›fätýØyM/¤˜z]"ò좞cuVG=éãI˜#è_× [ðòi’'!f å¶!œ|ïR 3<ŸcýY4Û§•EŽ3³6à]ôÉ•³¿¢õ±ö÷{•ðºá÷䂟Ü^Sx·ös¦Û„!'}é½Q£–|ýZ­1®´¢j¿fº�~Ñ„ºçmƒÞ?àÓ �—L…maø Œ{ý¸£‰tþà µèÞîcÝË|“)²íeþtTš¶u´¶3Ûš0åÞ jÀ®L·Wºôýš`LêàF½zÌÖ^¾óÉV”LôiÔ#À?ÒJ¤Rq åbÍMaį0·I`Å{´ÔPS‡¸¬»ÎT+›üw?¬1cœ�G„¤èóžð¹ª-Ñ3DÞ•gç¥GMÛv�䨩Á7IÖ™;µeYÑà77µõ�By¹1¨±ªéüöå|ŸDíµZ6d E—o¼ÙB�®K�™2eJºGÿûÿ?:VP8 Ú!�*‚‚>1‰C¢!¡9u$ ±ßáü¯*õu�É/eš§ò¿½¿‘ÿ ü%â¿°iÿüûõ¯èß³þóÿ€~*ü“û%÷ýþ×ý3÷+ü‡Â¯¬o0¨Ÿ¸~ðØÿ°{ôþ™üçþϲçòoþžá´žÀÌÿ¬ÿðöRþÃÿ+ü·ïÿÐgì‡íÇÀGê¿þ/Ïÿ�@PàÀM*¶�úp;_ëÎ�¯õçL‹ìü&â^Ç4÷€�z•¥zæ Ù+¶p•ùõçîx_¼ëy•ŒNÛmhC£ŒÒ¹ ^aV<èQìÕC_:Ö˜�ÿθ•Aøå�Fs|ŽKªéÚÿ^tí¯:v¿×‹þþ½ÿýO"wœv}ܼÕ‰{®œÕKÑ9Ð�BqyPŽ}5éo1”¢ßþøæ¿t¹Ë• sb&éµßÿøÂÿæ»/”Êž®Î¿!#üW·û/ßdÓå{냥0—?õ¯KsnË­ÓÆ¾¾›}0¾ðOq6w¤`¼?š~¾?S�ܘUÌ¥Œ©¾ þõ{Ô¨à#VsÎiE‘X]õýØÐPàú¥sžž¼å*”pTÎÎ/xù´Ã/ìã Ôeb®�Ÿ¶YŸ·"ãÉSÞpø5^pT×e�¡==S;5É hÁ¾ºo¢ÿ²ƒÃ®7ÁÅ“ç2ü OÈéWN娆ʹDŽ]óü—ô�c °‰S\kÚÜsL8`Nઌ•ÙÅ‘ñ½Ø¸êÆ’^ãX£n–ßp#ÝýÑDW¿‹Ô–F°¡r|ºlI æP ütÐ uô:Å'¹ày–õÁÃ]pío¢à¹ú·ãc$¢ü«§Å¥�bQÁæµ>n¡z€¨óʆº´ajfÛ?ÁÙ}ÙL”JR¶ÿÆ:eD€ }ý>ø\z)¬úP1qÔJ—í;2 wûŠU¼ÿðÝâaçu.4¡—©ýù E­ÀýEºi€¶‹‰oI§¹ ÔŠl†Èù=Dï “Ï"nîE+ÈØþ‚öáý®ôÍlÞßGC¬ÌYÌ©qÛÓªð˜<üD—ƒ’8!7¿óðPÔ8ÊꦵÖïÁù{«ïvÀ_­�’A³2ï„yìì!�½¢M‚AV[w>5;T@ÐpUQ&szö!35òYo¯Ûò›þ_9ô¢ú4€–Í]ÿ{ÏýÔ¡«6c"o;ã0xôaax¿PÔãԢ嗆û<�{@mïùH«üü @Sµ#n@oCc²H˜ÎëàE4¤¡óü{û¼¬/rÓÈóG.Á³’ÿeÕª±óøâà2Tñ9÷vÊ£T\óå ÉjFÛtô9Ö20~kôÁØîà ÙûÚ�Y’h–7oòy¶”þ¸’»FÏÖãš\ZvšŽ qe%ÒfØ:Ys8ÕʸÃjÿH >ÆP¤»óÚïÄæŸ+Ø"Ô&Ë0Cíx«Œ9ŽYJI)+*ú_Ö.ßÝùØ3áöÔ¸9è;;“®&ÍÛAù·’º�1‘ø|ÌAü,à‘ÅBÙp’°q€·àÀÉÏ{{P�<'û„IÉD&y»w�Û£6;nª~\´VK}UºG{Ý|Ž+Ž]ÈÝhð¶¤�·°fÙbóD7!umÎ'ý 5õÊ€Ó6ë­âÎIÞ¡eŸM-ÁöéõÑ{ãÃõlbÞkùM¡i,Ù¸P’ˆ# b[ô!K݆õøÿCà)OmWí’M¼›kPC…–r­GéÍJÔŒÀN¦�šSÙ%º‰®ˆÐ©¢’¯FâÝ•œfn&>þŽ´