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 p Ð5�*‚‚>1ˆC¢! •ÂY@4ˆ\/1Äze{.ý÷ÜÎoDÞ`ª.¼Àyº²õKûþWÜúø³ßë콂Pý8ý“?¹ÿ¸ýÉö¯ÿÿuËòÐ?>^ösÍ›p¯ãZþÿý¯ö×ûWÐÞØx{üoæôþ°ù¯õ¿òÿl>š½úõ#ý�õ?Ú¯ äßÏÃ~lü+þŸÂgêŸæ½€¿’ÿDÿaýûòoãÇýO0ßDÿÞÿ=ðüÃúÇûß\¿eÿ·^Æß°æ>›çg#É\©�×…Z¾æy-ÖmLçÆ¦/ëŽ{9\01æ}tðQ’?Ä+4¶i¡¶[Ípž¹Öëg›ˆ®8>o"*Ý}y¯ �à±·tiÓ�4æÔ+PÁPÛím³¹ë646�êmEŸ�“aöâÐÊ"á$ãyRõ3ö¹Dëõ³Ì;Ï�˜IûË·¦&ë¾m™R�ë§ïY%�#°~q;À~Û»À!qE"{ëŽkà•°`AHÑ4ú[˜ò¹—»²—’Y<ÄCާP„·­Sw~ø÷Uýj?ñÌþÿþ&—©°^º2Æ1â³9µA2éÆ�ïÈÿÒÂ}¿Õÿü–ö&¢Åc¿þÿáþøÍ =ò®SâB[öx+ãêá>¤ÞóƒÔ‡‡Âh-¨*͉<âGþ¯yØWŒXtè¾p¹Œ}‰HÙ‚ÏR³¤笷ÊNÎ!p�è pº ðÔÖ•—”(fû‡I-38ïû_ e ÆS/Q§ƒVÜbo`¯Þož™§M'{¢ge?…?ÿÈrõ#QþkåbwJÕÔq?^ê#—ÄŸ5ò�;ŸS×ñ $TuË•6²ƒß]ºCgs.ŠZ•L)¼UZcgñ$¿Ë÷�˜½oÕwºÈ�Æ™º‹£Š×–W;t<2Ÿ?‰÷~J£|Dâ癡s?P ¡Ö7šÑó,”eµßû-ëìÈù´2<¥H²³õûœ5lØñT»¬´Ná´à?ÿv¿ÓË>2ô�}'vì® ë™�ºÇ_2†î!ijþc(=;U˜_Þ5įýxÎeú.ãÈxHi@ú5aJ„Äcv’t¬M&bj»àDwòsT—P�Òˆµ�¢ “ºp°íüÖçâ ·/Éç´0!x¼öé)Á+먈ߒãf&3Íá"åö"Ís#õ¨þ‹ä¡yqX¸F–=†Yް%ËïUÝOé¥m70äVªž’d"6`õ}:Ú)’ñÒoLHwUî*x=î¹tÉÊX‘(,bòFc» dN‰E´ãøE°Ç|J[ãäâä<_ì`Ê-ÎÌbn5ÿÕi€[[t?ñZ¼ãôXg²:Œ[ô+Ź�GøŠ†˜ðþ¹­hÃè$ÛúàŸ"-n–pž›ÝcUD-H!˜Ì—ƒPÒ¬5‡Mâ•�°!J2ZÞÏ0¸žIi¶Ê 'S÷­Ûê8½®W–Ê÷/j ~ Úƒ¾nT~¡Vu4òÃ`xŽA­5>«1ô…‘‡»û%FÏJ´�>ÉÞý#ñ¶Ý= a~Ò¦%iDv„œ]`©› èï+c:yÆw8DÉÚéEôB¸Z<�ÜEkÎIÖ# ×ãC0Q¶ÿüæ�Û,‘áá~N¦¹eæ9aìD©­ o&—eد‡ƒTš×¯Ð7é�òR¾í2?˜ÎŽ@kËߟ­øj�~¸H÷Î'$ZCY&ãÆ|®¢†éÐ0Bç”Ä>GOúûÝß�402M9YÇ#.3 ½`p}¸NYÆZºf¬IvÆ]}u &=1ó—:éŒ(@÷Ʀ-DS=ï+~Hu*®IÍŸK´1±…ÛxëÑ5†M&e?!ß�&˜Â_7"„l+�Åüøò{÷Øþøq¥|’—‚4ê=D2/9„ýût“V>‡ßGb7’2–…%’ÀÁUàOæ49%m×f‡)éõõó‹ÿKMI… 3â”ÐÿÕ1ÏŠú4¸%*÷U|FÖ}V\øxÐõžÜeJ ñÕt™…�¦¶W§¦H¹»Ÿù3F©:KÈ*â,iyÕ-Ôÿš8 ]9ZìðöxPÔJQ. MT”Þ³ÀiÎV�*0¹�tZ>ÌÀZàùàˆŠ‹+&§f±‘ÊžÞx,ÌP÷A:ìÎ%JjƒZÍ f\„Mš\£™>jÊÿÕâ ¨ˆß fØqKü^Á–ȹeyLC– Èþg,¯ÿéô6›dØUßÿÀ1é!ž۹Àpe¦¨\³ûòˬÛSÛktÊ „ëMjcOl�+ÿ?Pyyó³ÀUìgÛU¨tls×."b/“æ×~ƒ^Ñ©=wnŸ3ߥs˜»Ýñ$Ê)ìˆ!‹ ¿ãÿ;ŠíÎH £v.[ÔÇÏá? íôI6¼yÎM¾L¯„»YºWÇÌrž6+EoJÀ€ã(p}¬û.þƒãú7,�HL&Ô�Ïì8^sLz9JÈ{ň¬GÀíPÿ#‹?ô»Ð(_ˆiÂ% \<`iÚÞÁûþ¹ª{ªÓöô°‡¾mãt…R¶2´à“©‰q qéÁ­Å�š?uü™S”.‚;A(7 ñ$ µ¯~«Ö�H½Ü¦®9 \�ÇXo@¨Ù[m2Mp¿éÁÂÃø  .ËäKÕ’ÂYA�œÙMóTÏ5X þwo›¼˜_Úäàö¤¬;A}‘~]êðf…zZÔRª“Õ«ÈÄàOÕUm!©1Èá÷bð'mzƒ½;`æî?VWÉ7~ xñ`¼�°@³úRdY±º¬tÝà[,×%¨ÇN.vW�úp•ôNtµ¶ìçÚ¦ƒÒËÞÿi½âo×Cfñ2a61)�à•N„K É1ÊECJ8B.:´°[UÃÊîUÐTä%Oº†,](Ê*g,¡Ç½9´6e?ÿÄãx9Z�þ@8&Þ$Lä ¹Š¤'‘å×*vx9sB›WJL •ïW@HO*‘á „YO"T�©·†£C�ë3!‚ù#„"]8Òsy¬�Z‚ïçÛKiaò:JPû2‘ǹÚóó主:^û­¶?¨¬ëäh/ï)9ñøÖB.o‚Ö£D°�Ât>RLyZ¢Nþ(¯aåïu"œ\¶>ØŠ?ŇÍØÀAÙ¤ö˜‚³Öýxê@~4E}œ?9GŽ3#P}z$Z½&gB�Yjé�UL6ö­çŠÀBŸ>!šWœ_Äï¬çÑ+ø–j©Ë2Z¨!õ'|y½m^MŽSË÷Ñëõâ‹æh—… IØîIImº½ŽÚ­[²%#D¾´� Ú™]Ñÿv¾¤Û;¥