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’�«þŸ"IÅŸ¢(ŠZkŠ‘•¦£)Ö}›‰ÖÉע}�ÜŸà¸è‹�‹ýÀ/rwwkÖª{õ\61ä_ÓœXZ;öW¦ 9º_0xá[°‰bðëúÝ}vÕ«íûÐýjÙ/ã°—ü§Mt�í!ödáÍÑNm¢|•G€ú?8CáÄ&ÒçØ ô Vï!4õ « Ï,Àü?XmXxo€ÖÄkDP‹@lÌFQ“EÿýWZ/^Ca�¿Ð*”†è/XýñÜÛX½¨´�pf±:­B¸J}ÀéWwLÚ˜S9ƒÓ™„°‹ÐÒJ} £^u9³�Pºþ&>Oò©„¤ÄÆÊ+3æ6wüœëp°*”ë¥^aòá¤çi%) *c:ç5O]yõé ‚ŸÞ\ÝðsžŽIa˜Œ¹cŒiõóǾßYkŒÉéX)˜t*uÎÔÖÖÖûµµµÆKU+É€DÊKU¥«S©ÌñŸJ¹•±rA�ì€ Y®b(*§T0 d�RÆŠœ3 d¿OòßVP8 ¤ 0?�*‚‚>1ˆB¢!!+ž ²€h}L?úU6?½y"ü¨}›ò;û7éïúÉÞÔ~`?T¿Ýõ€ýiÿ3îúyÖèü[û¥?ì¯íwí²÷ýŒÕ/Ã??£þ<~ævô÷_×ÿÝ-ù¬Éý_ú—å‡ö/øõù÷õ êø¿òï?“ÿ”¿:ÃpGn?Ç~Sÿwô‚ý¯ÑϨ_ã~Ó~À?Š)þëùQýÃÿ¯¼�‡…€÷þCýüŸöŸÞóßß…ÿ1ûOíÓóßïðÿÐ~Aý†(þŸþßû·ïù¿ÿþ!j½‡?[¿ú¡)2è(·&^ÙÚ�6öÙÿgq6§õN£ ä®@²„ÐèQ?þÍZE~püÅ›/0ž¨[ùa´õ¹öœË > -ã¢ãfm&EJ$LK¼p#zHÞœ£¦#‘F³¦1Ÿ39³-o7ÛáJväþÿ‹ý:Ѽ�Ë‘Ùwÿ¥²3¯¿Ä ³FÃýOwŸÃi2H.|–|p gbÀ²?ô7è QGL¦Aó 8ë ‰Sk¬BÃ{I p†7“D.q6†’ieø+J˜$Õû-ãé—;�bo×rJY:†aÕÓr1ÇØ`Mýovör²�œŽ ‹Û½@ç•=÷s¨—ÿy¢›¡–ܘ#À5…õÖ–6�àƒÀÓF§ô³ B@Ï|Ên\¯¹ÿ˜‚7È£ ˆû5|ã1…=’½Òt†Š™dr¥‚úõãÅPÿìkŒ<´æóé_µèÎÿðÒHLñO…½%Šø[îô~‚ZÆ{ÿú˜ÌA³*øëý€³€ÊFLäïâ#¨�ô.ðœýe™;E=•-.]=ÉèL„â_Ì`b �Ê2ܾt£´‘¸ ^Îw¨cŒ®ÒÔVmeaèÛ\Kd‚N“ý{ÑêÍz;¯å¹“æ]Û¢ÿ˜Ö]<¹Gšþ2ä4RT”¼� )•þ1J6&î ¦DqÊ¥êÎ ÓËŽ²ð—�hŒ‘ÿ®Þ»n¡" #;[ß‹ t¶„Of? Aܯ9v’åzñR>¸}m‡zðÍos®¿$—AAÆGv±R@`ùƯ¼Rú6~ƒ._ï�DšÆ)…È,!81=ùyWfVºä´ σ-ˆK'Œ²� Â;]r¿ˆ^;å=ê”ìÏ'´8b™’üŠ÷•ìß‹-‚IPÊÛn“óЩùxs×Ýeæ%Á$¼[ØâóžW‹r‰1~ógöQˆ4╸gïÌ” ÎÝÙýr#qøÿçk¸àçÊ—6nIŽ^ûög#À“oUO)fPà'pt ³¤³t1Aöz¨J‹ñËÊ‚MT €LC¾Ë‹ò©`ÚßÁŸ-²NA¡‘HÒ#ˈrÚj–ÆC‰£õ²�4qEWÏí—ÁìüDäzY KK”ã,!Ú›oÃ#·'íWÌ`kïÂ×fÂíÝÔúø íïûÙ˜t?3ü%±ÄʰËù¯ç…SÆ›S=ü4ÇXR5"B—ä“›Eñ8ÕÑÍ™™uÎó £jé¯Íþ4PŒ†�Q �Ësõ—‹ï�êQT|K&¤Š ÿø2š›ŽäÓMpjÁR#$2�|XÕGaoªÜ®tDézTj˜yiÏkÊœóE€:UèE)m4ÞëÌ_—HkÝç`ÓŸ_„¼ŒÆ:ÃìO�wÙîÞb2þ2t ¸J‚vuäêöJ„IzE£>w¥ÌÚ”¶£U]5G„>ðL’®,‡¤tkÚÝD�×»î_d0˜üÂ+j‰á,YFÔ)c°Go4gâ bˆsšà :�IvgíI�ZË×ÿˆÞ‚úV!ý=PÖ×Çß˜ïü€ç–í’B§ÅôUåˆú9½_8ži1ÿNÃ?°†k¸á3š|áðEp‚`;;�k'Áðâæ`±ÑO;ê©ÌŽšÙ�Ô¥ ÃýËù¸0ÝB›®�ï·jãhsŠº¾¯§·<^Óinä2€¨8ŽSæ©R§› =né•…á:è¤ñÿ‡˜ý•î‰öá6£l«ª Å€ýñmþ¶fCVÓKѺâ—“ÈcAŠoøà“ý«¤žº±ÚE鬂añ�Ÿö>&Iáxù¹ñê»]$€ïySÀ{ŒåÀ¥òù,’uߺ-$äñøÙâKåɉ¼Ç±'È´´Ûóì|ßÛ!RÐö#tî¶N.+;§ì •"ýK÷y;4¾ŽB;Åïêªå”Á}13{ïéh�¿:Ýð‚³è0 ª•Øyg\­½±12–îè£Ø ƒ.¥�™Ä *x®¾½d Ò3€nÿ�Ú~wzp�C´¾h�Ø€ûkW¨kôõø)@!g!{̤.0;áeÅÍÐ#x°SécßÇ™èÐJѼ¨¾+Íy‹ùTÇô–y’&43VÃ1V—~�Y©ýa² {RÕeD�ÑlaJxYôW?¥$£Ì�".B#§(k”�ZH”Iº�ƒeÏíºöGœïX“Y”G›±ýÂĹõ‡‘攚߬¡Ù3¨” ³x¶NÑühÅ-å�ÖC¦ò>\�æ&ªÿ…å˜FhScŒºYëö\¤“Þjóá,| …ŸßRjD‰×$#‘èOAÉĸX \Ñ{tÇï ê"ˆ¶þ,f’·Á[^¾Í¼^ƒê \–U9¥f÷€nO÷ Y­ÿ»XIY5¶^(%¯ÿnÔeŸŒ`/>â—”åuèwѶXRtHwu˜ìjX6ÿüÂ,~ømž?í`Š:)~‰'>«´½v¡´k¨m¿j‰ a™ÝË׿ù�Ä? ¬¥ìuMöB Ð5. þ–Ê4š� *&ÔZ)Ïw”¶²r¿@Þp8ûX¶2$-2E¥ØÌâ­òÏJ8ièŒAêïæÔâFƒ÷cHV<5 › ½§:`þ{AGuú´Z‡øsà� ʘ~ß ÂܱÚøªÅÓéÓ”›ƒùr—,´vûpß³ëU3múÁÄ Šâ öÀµ­ù®Í8�ŽDé…\'ö׋WÖV¸Í“ŒúƘká¤ø™ÔOƒê¼[øôøÕé¼åðtñå“Màl;ð?˜|Ò`|�&íw-Õ @¸™b+JgY\¨©—*î'²S}»¦®Ã¿{•œÚ>yÊ8}Ä:ž¾vª–—ìºd6Á:÷gpÔ’¤pJ'x\ïݘ9UQ³új¡Æ> ¹¡òœÆ•˜Ã–ôÁJgäÚ8$m0Å2é¥ïÜÒÐV³FÔ¦ÍCßBˆÁAÑW& g×¶0µ¨_ñfÛáÑg=“É’$qŠwëÅ^Úr©ÚÑúõ¬ŒT�à˜J&9·žÀ� Œ-KUÓÒòãó Ù,²pgÿ@Pä¡ÞÀ?Ð