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ÿâ8ú1 !„–e !µÔÛ�º»»»·Ë–Pwww·PoêîîîîKírÂJ Ã2„áwòÿýçŸüÏ5"&þ÷ÿïAÅÂæ²�"¬ýO^ÞYWa¡•Ĩ¡jà=ó­—Ãöô=ó¤bÎuѪæÒ²Þ³³nîX&KÞ Ý?™ñòv ™7Á´zÙ3̹�ÿy¦CÔz[D©8ë°¹¦HæÚ„ø]º*WWd/17�† C<›*Õ6"ÃÜ"ŽæI€ïKHäÌ'J˜ëOÅÝɀߔ�g²_ƒù”q’ߦŠËzɽÓ\E�+šÇÝâ"/£î–_Bá7•úÙ±‚" êÕüxî'ˆ[Žê[tÊh.¬ð›I¹Šä6ì,f‘T âc«øÞ#™ë%Ú8®Ø8éœ3ò‘ 2AJq4¹j×Ý��œ¹ ¾ÁŠ:’ 5ä§�dÊU–QYŒÞ±*]=•‡?Rd? 3Åðg úìÑ£?³'�—X“¸ 1WÓ@ø,d·L‚T"(Éå—d“$xØþ à!ÖÈ‚×òµ'†'Î/ O[¤ÛM4Ÿ3’ÓÇϘúÚàÀU²ÖX1—˜übÀO•¥áeŽxK¹Ô“Ⱦ I_|o“I]€¤_¨%p¼DöuH†m2@õ/DÄ!‹½gÒÃA èI`_)î®:E·ª$Êaâ¶&c>_2‘»«9ð,Ã)[¬93{XœgagÉbÍA"?1G®H]�©¼ÁÚ/“±Ó R¥h¬‹òhÇ«ƒ`Q#5æ{TcÞUÌÍÐØ­Ä4òKøô`'ߤ Ýk/ÈV9À]�éóŽ‚l«9¥ évª�È”‚BSáŠ]�“áðÙõ­|.ÿþ¬ðÝ�VÊsø(¹Ž#ó(²P«‚Ö¬£u¹l-×< ¿>8ÜGø�Ò« i6jÑhÌ0öò(=¿`\×ukR^É×+�ŽX©§8˜u;óø^†®ëqîKH:^O3UwƒLq×Q#Ý„¢…­ ±žÅìýn>?NLžÛØ^.gý»4¾bÆ[EÄí ì`›óÑx=ÕÅHº!ÌÀ5|eP ]ÔÊ“/F1»&Ïðä9`»M8>Õ¹¼‚Ø.`;üÚ7¢=nHžÑ`þgÐoª<=K1ÌÏÃîD)ý¡tÊeL?ÍÏ5grd`€°¼5JÉ^]×xæàÀä‹™ôÆ£Šl0‘§T<ìLDS+«Tv~aÊrÙª*MÊ7\0 o{X6ŽÑÔó÷kÒk×n¾,W§'ŒY3ú¶¼ìyMªð¶Pè(æn …–pݱ×YLAwƒKÝ€¹›6<õô6Žû!ö‚yQdƦ*<�¶SGfuÊg ùšcÒ+õ<îb¨÷±+¨#³‘"V ý¬ GƒKºÛÁlZúªà¢þ…*50�ìÍQw �®PÝ6XŒÀÚ~QpÍÀš Qw Ýþ÷ÿïAVP8 ˜�&�*‚‚>1ŠC¢!¡™@  Û´\&Ÿü@ï¦Äëò[¢ãg»ñùÓ^iúDûÇôOÛOî¿=¿¤ÿwéýYÿUÔ+ÌñßîïÌûÐÿiõ/èüËú‡¬Ÿõ¯c?A¿ØïLÏÚÛÚŸfÏûùÉ™�‘{±ØÒ•|4ï�˜ôýt"Ìã Aæq† êµã�Yñ h¹‘Ô_¶†¬�º‚×{_294‘`z%ˆÔ>3ûP~ö�Ò?ëw‡P„ÆÁ‹í�^{¸ØÈÝ—d#!ªÚá^[:®KÉ䯙¢Ýåâhälìóàß16˜šÍ÷KÒAºe,$ü¯*:µbéÑò›(Œïs®ai/MŠƒu‚Ô�å_›Q�† Ÿ6ËjÙWÉ+!¾œaˆ<Î0ÄVþþЋ~6h”›ÄrµöÒŽ'�Ì#“ù­Zä�a"ÂèaŒé›; çƒX/ÁB�xàH)JÅ^·»OÅÒÐÚ‰=˜î³â‡u71�·È‘Ê3pjŒ¬~õd1²ºö�¹íl–|£Uÿ‰_Ó�Ñ¢sàè3èŠl¶Öè7Aú²b#‚B½¼paYB)SOl¨›X½˜Œèvÿõ3Bè{HE[ÞÐÿùE¸×ßB[u{5†ÊÖV9 ¬w÷�âtÒÒÁlÙüÆ*\H~OæäèGoV±à§ýÙ×;ÜMù´ËÚÉcAíK%áLJq¼sí3®BM =Z¡9C�é(õM9€Ûûï“ß÷îà¤xhØÞ ‰-ì�€¿øFÓj¼—gë<ó·x~ë'kÏZ)Œ Ÿ¸mNç&ØâÄd=•Ž(1ß™ï×ç.ù3&(m¼c7ð¿Çè+¬¸C(0æ­G=QȆøõû¯‚ö+‘Á`,Gîø&Ψw¡_¹éÛ�ò´î%gR7ãYÿò•ˆ0º§A“žkÂ2Ïßé N]aì|¢ž è]NË›*àQŸiKÏÀÀø½K•Žx;:-Å7¯Vá:%Êÿd_3è‚ÔÁ?ðH΀�HШø¾zè2!Tä!Âøƒ ‚Oa˜(†¦œÏÐ×[A02¼æuið¬\nƒ‡vŒ…KC�¡`üFF£ Œ2“öÅŸîÍœ± nÉ„Ë^ëhsîÅ:‹ÝåÃ¥ìˆrdó;_Ýÿ¾¸6³Wz[…÷[v´]ÀBŠ¥i¢IMAlöúz«3  O-•sSg·ŽÅ¶$'ë<ÂÅ. ;o�"Ü|ý\Tn˜q}„ïß:2½Dxäjž‹§TT+Z¶T’`ü×±Ž(y(3T0ô �á„ÕA€ð¸xß4 ­9MÃ`yoÈ+W ³—»† E%¿ý\oUÊ�8õm  _uëarG¦P0úñöñÁr ùÎ “ñTtrˆO‘†eŒ'ð²ÓÝןžçŠ!xˆÎ«½Úrɧì­�ãü>þ%›Ü…êê”]©Ã§.“�BÙC&E¥‚\ë)îýL}Z�ÎØ?‡Uh`VÉÍI½ùÙTêü¤÷ya€|_ÿós/ÿþ’¼Ñ’p¨t ’ˆÒ (� ’ˆÒ@Qâä±ü­åJÎÇ®÷³ä‹€EþëÂEjä»±ær›õK!üÆò#>³´�½Ã,̆Í�Üî §9iÒ›r»}éæìÜåñY=‡CÃÁæ¥éᣣRn ‹^åÑbLwÎØA1*ä¸öpï½§bhÖ[pgл•ð ¿jZÍ–8%øêª$EÇÛo"ÕwÁÎì¶qÛá + ^þûÿ½•Ä@:g÷U¶”å+„÷?œÒkµYmèPÈ`Änv, Èþ«vxÁ÷¦>›>±ˆæŠ¦qX=WÕ£÷aCòtO~Ó‹m>Ó_ýî‡ÿ�ò±mxÜ›½vl(àf�°fÁ�EoóìÞ-© M?~ŒV»ZªõªÞM¦ˆŒ‡�<Õ››‡cÕD0f/�$]Bb×ëÄ‘ãv ÂozAÇsØHò̸到nðƒU¼'Í’W †ô›#ÕC%Œ�e§PÑ÷”´Ÿ 7,€ìrkÕ%?ãÞß4mÐÀ>§�÷( ˜„b:¯L"”C墯A´_JªƒÐ‚G Mž³“/®üú{�³07ƒIÎ¥,8Z+w ä1Ç@ƒÄkecâøÊ<¯P ìU7U!ô’‰>Í(ôÒC ˆ�õ9¡±6D7ù[þÀáHzOü>}