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 ��ALPHX�ýlŸ!Y¿üR©t*�΢³vƒÝcÛ¶mÿ¶­ë“s}.m^òʶ­å «F™ßÁÀm#EéQæ˜ï¾€5@ÙˆâcF+š´rß¡´Ï¾u3JD¼ã V3æ�øT¢‘—Vä)g;fX·e!B©¸=€©¢”ù¼W!bù´‚Ûó¢]–¦›ô%D.¿1uòn/BóaBŒEÇC$sƈË‚~ФlVŒ¥òc!¢9e(#˜ãUÞ”0YXŸ?Tù5„K¡6­Œ*ÿ&IŠd™%˜-L,¢Ë<Á£èKc0[ˆ#ÍH�!Ôë RÛ£3¤_ƨ#Ôj€N X_DúÒù�hÔÿjˆµ¿@� 55‚@}@êÏâÖà߈ Ïb„z±ö�aƒ�@Í ��oÄed™£2‰,¦¨ÒãU¾ S;Ö]ªñäÃ'ùðìÜ–QíVŽÁQžÒÍ�OQI»NÝú !�=º´+ñy¢-%R£g9,_ ¤M›viŸ6mJJ|–ÃÔåÕÆ„a:\VAAQú§ Àã03gÒ²cF†™C!¦™•¡s†�@�1M4¢)CR/ޥ퀲Å:2ñ¶(Ά$»)J|0±7?á�ÀTm$¿VP8 Ð(�*‚‚>1ŠC"!!›�¤ ²€gÉb÷ÐæÀè¸þÇê[ò�ùßQê¿À:Ày€þKýË÷°_ õ_ì¬_ì}�?Ÿz‡ùRþÑü þÆþÄü+þéÿ–óçÿ‹]u(Ãüwäg">îrUþC½7ñ»Ç‹&ÿ¢üŽñŒô‚gú¯ŠÕ?(ÿ’ôôþ“òÃüo¹�¬ÿçû‡þšÿŽþÓû•þKÿÿÿ?¸ïe^�¨bp3åÕæÇÑ�r螊Ä�ò'oé¨Ç”÷8-O˜ÙhHç‚úZ~CkÔU¿.gô„ÿ5¸zQDà 4î`Cfhš'Y²ÞÛo=«)púl ŽÄ(×<GTNí2R�.‹ÕTa=mrIJv·žœœ‡²÷‚~{[×›-™þñÚΚô$Å¥?BF´èjÁ¾z—Æ ÿ“Æ]¢ ï›´ ¯}0þÿ[\ù²¤ÈĽñØÒ}ºî²Û¼cOÿ÷L�Kùžd’j‹€„(oÿÒŽåý èUþZÂ%rWõýóŸÁÙЂme�8°�@Gœ;Ïo�Ìí§ïô;ã{¥ûÄs'Æ A±uÆÏ½O1HÜ‘·×k¾¿™m[>«yéí÷íQ']Ò‡ÏÔ$þ+-­o»1¯V,o <ÇM8¸:\9» w€¶�ÙR”DŽìJK"Ü~ñ¾XšÒÖ#/cæžA[¬òwB—þ?¬ê6¿�Fõ½cƒÐ°˜oþM½. ×5¹¡¾ïkz€ÚÿߪltR†\´fmCdcB;Ò{„ß®¸×W)â-Hk)žñá¯}+c�NCr·êá†J&©Ž›è¤Â4U•Þãy £¢�اÁ3L‹¬Fɹh�k~j˜—••Úó¿eòõUߦc&¸ÈáD€`D–7®Idç* ’½�ß`Q¬Ä‡¤’•±õ™ÖmKŸŽv]]ñÛ©ð—Ð £ö-û¢Ð¡åý¢[Š”èD¿Ðžç ­ôÀñÅ:c=à´Ó"âÆvþr:³»*)ƹÀÒŽ¡ž½áÚb3wŽ´BÊ$�zå$"yòÛYk@±,õ¼jèë|U‰ÝMvn"ÿó'ü ýÈ’ÎÁŸñÞ×Ê÷U–öQ©e¥Ïû÷øê¢»¯eVØâ¬4‹ç1²ÔÛæÎ±÷ˆ�œûÏÝ•©>4Øm‚#á- œ0¬Ÿ’׉‹î[âŽ|ÓßͰö¿jÔKù.|àðõF¢j[ÎÂïT¯äñ ScJ†ò{e݈ó‘�­ñ·sŠ�P?…ƒÈ‹O 6€tÊT kK¼'*|x�ÁÕ}¤ÚbèZDyªÅþÆz?œ»WÅ»KË9γ(¼ðiYßÇg¾Ìê�?éæ7߃ê)™¤«g-þܯÞÜK±$•yT–1�a½dp¼dTÄ„6â§Ye  Àn1…|+y&Çêºn*\_›9‰Á8„¹°:}(÷ÀÙþ ž\ô»6'ÓUÞåO‰·ÐŽ|‹ 1(òŠgŸwiSX[¶šlÃ’ú˜è>Ú5‡(±¡®—Ó$e†"ˆ^@ÿ-ÊÞðZœ_Òeyi­õVÈàçyã ¤5 ¸Ë/WwÈÁÆfU%•Ò`? £…JŠH¢5>½Û¥p¸Ôåt@/ýï¤ Cdk䌨¥ îÞú;lÄ�Σ}ÌbRþyhzÒîÌ%ö<à[?0Z[ˆ­VÚ7†£X¸Ý+u&(1¢éöÒÝqî—E[µ’::a5CLÀ`Š`Ë,ƒÓ¨öþB?ÞÌ ìrÀ¸fDhÿy%K}žÀàFãõô)çMNX‡ÛjÞ&·êè4ÌÉ„~0Ä2‹Áœ xpÀ!cë ¼Æ>xƒË–�€w¯‘43  �@÷/ˆÖƒx¦x¯d×ÍYâ�V×xEÓõ”Å¡ŸÐŸdkÀõ·¡ÅJÆás±Þe~å5X=¢¤M— GÇP›<˜¢Iï :w£Ý™$ÕW· ÄkÒ`Ãm}¿uÛ¬B¿à%®Æwœ½ðuü’}¸‚`