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›"9¥_¿J¥V-×Ò�ZµÔ*mÄÌL>€µ‘9rĘa„ð ØcÄ 33Û­¥&ÿr61l†‰©¾Åë7oüÇoÞ¸d–áQñ¡=/¿�“øóýé9™‘”ø>N¨{¡)‚¶ûãľŸaš^�“ûuNˆÄíq‚ßׂ�ã$Ÿ±@ÍgšÜÙ~[Ɖ>Žà“y‹ª×Ú¯ô-Uî€@ÃwªÆÇx`×O²æ1ôê¡kÌ�6N¦ý—ö_WàØE×<ôâ5_Éóökª~öpô�òUOcÒG¬¢jÏ¡ôKš¾weKôàJ®£i—U$`C™È=JÑ];‘ͽÀR)û =Ï[bE™ÏLhû K̵†„�-À‹�ȵËs—1‰C"!!)=¼   H O”~:~Jô·ì¯z? 38oú×åú¯xßÀ:@?C?»þdrîgæõËõkÙsû—ôÀÖ³�@ØïIŸúßÙ> ¿jëÿ˜öpÌlê±ø«Ø5äŸh²x=¯ñÓòsäOíÞ"켉•ØøAjeÞ_ï‘Þç¿à?-ù¦hügúwøo¹Ï�Ÿø¾à=Ðý+ÿKÜ3õ ý?ç'ÅW°OE_Öc·xÓdîÌ2YànbXä)!CR9hçß�ÐÜc¾¯×˜êÿðÏÜí!RÆ^˜¸*8 1ë -�Y€Fýî>*Ç!$m¡({ÉP»²!D¢ ¸6ðw9ɵ„4$ì$&ýû=oå™ ?kÑ¡)8oV�Êã”Õ^4¢á|bÑ‹—×Ã8 㥒1î JÔZoîÔ<Š0d Sæñýq�‰*gý3Wò%èÉ”1›0äU¦¸w¨þÿÎż÷¶Û&[)�¿BW໓èV‡þ'KõÏxÄìzuˆ^Å0ó‹ûm¬J‘©\Ø·7h¹wÞm99Xùê-¹Dô( '`"KµaÐaаjI*±”åH{RzAIkƒ.†ZàÀ6”¥87ÚŠZ`ÛMén?^L¥ö#¿¿êfA5Òœ‘ WãOï(sm‘Qþ �w¨O¿Ckâ^¯­eeêÿÕ�ÿóSÃÌüçýAH)_Z¥5Ž��ÆóoRáª*>¦h`�4—™³µrl(–ÚÅ löSH�eô÷[ü^ß}î§ÈWü‹i*‰Cר¢%3ü�áµíh¢¾nÿÁˆ¯ŽÂi™Ýóö®b9óH^ÑêË�dוhvùÁWÝ“2gß‚$—}ö0!`Ä÷çnýG¥…É;ú‚*ñŸÌ9Ý¢eÝû_èä¢ü`s^o˜­1Áœ²ÇÄÑÜḡ3Jœ~ú¾Ò Þ+Ö§¢Ê™„tjò¾L� 9Q\­þÙi�(Rä©Êí[ÿésOå}÷Oÿ aüq~Ðÿ_²tÝ¥8Í'ÿ|Ò´  §ÈÿèþE'$ßxD¼ð“ŽWh@I.Y_lÛÜåÅAºŸ ]bP6k6¬0i£w4Ñ“ ºž°ß–Ì`ÃÅüN &ïCC_KçåÖ³®�ÆNû°P±Â;É1ã\à*O׿œbhwin¸¨CP>‡¸{8:M§H¢ïÀA2*üDn¯ÿÝ ß¢.óå-ÝØ¬…WsPcm"o½ç�-ðbCæt–Wöß΀ŠIÐ@×Eâkbw“âßxip¦ˆ,¯±8Ó»ŸÒ¹G@›ýø>ƃäì| 8 ª½(sÊßHøY‡A°Y/˜¿­Ó1Y¬¸R¦È‹¡˜á>ióÌQ"…1û ´öëûæ»!'ÈË œ¼ˆµÅb:å5Þ÷ªi¤NCMà:=?—É{³É59‚ô 'Ì‚˜yd‘�NÖž¾f9Ø‚ÔÏ—ÑÎÿÖMÔ%v°s†`¼¤\·{%œ)i´k\üׂÆâ±Fu¾—²£§)ŽP*Á— |j~7ÕÎ1½¥�Þ¸{Üo±�lknftTZâƒVuR©~…–É ~üyôb^5À`)|±H \ÊV{¸ùuO-kÀgë&è*·s…Y]¯ í0¤ÈIiøæ;ÀK­¥×`ÄŒu“lb“p‘‚‹ þùgÒ´"�‹ñ`”—Ç”ÏcQíòY¸ç椴ôcÒ¶¦•ççV•Dšw£—új²¸8¯P4·™¢ã³;·{Q+hοß]†;¦‹Cers UÅ� —gRxbáVvª{Rá—Úfó‚¡m‘܉h¯xb�Ö›5X‰é¶â=6ùÜ¢«y™ÿÿ>�’‘À|:Í3!?ãž °ô¸p©4õ?Œ:Öû¬)õˆ¶Ç&Õ¹·Ž¬Îl8)~Æ+ÏÄYŸI}¡$Øþ­}[@?üî®Éù£ëÈ/½³×Ä'"˜A*$þP÷a·“¶�FùæÒ*†/‡MbÊgƒ¢Ú³ˆz”ŒØß¼Ûmšv ¨†^¼;S,tvc'~Òut#ÿýñ•‘Gkïížd3 8–¬:3qiØõ¶íuèëà•UAÁ½í‘�´jºê)Å#Á ë磑R™Q5ÞÀ$üv)&á"0ݼ@¥³:Œ à͸gœ–г©RÚÓèâ�…0ÿ!þ(¯#MÈ÷]~ãZ�ÚS†ŒÂX×ÈPãSŒ&ü´ìÈ ëÛ'Øw’ݲš�¾ ouqYŠ«@xlLQØjõꬎb¬~˜¥ò$·_E¾ þmGú=Êÿeëu|ÿ¼¬GÏa8SÔ´¡È¥”Uçô à a¯(r€5²nâ~‘´·bÚÈ ÆŸŒåŸ1W ô)‚èþbôÜ‹1žÒ#ÿ] =p²�âÅf�£b) ÿâýNU~�þž§ø[ùÿ¾j1� �¯×éµßt™ër†&0k“Jø.ª·=Ë7˜ÔŤÚ_¢yÐ@YŽH¿Ì»½­l»Jï\¿¤ÿ3®>‰aìz<ï§¢]-Ñ|»FÅ.{bä,ºDŠùtQV¹¸‹­2PˆÇ%‚ ³·ÿ™¡Ìd! v¾ŒzOA1Õc„+ ¹›šT„¯îMŠ�i ¼ÕxÛ�,ÊwÈ<�iˆ¦V`ˆ’"CèÁꉘ+Ra›�¾ ¾(!;Qj‹÷œSäÛuOŠ ÁóRG颧ÿZ¢Hվî7gIt`5uÏ„æ)ºŠD{6ZV.-"áF½z¬ò�ŒfÀySBü>Üè·þ»Ø´˜