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— �Û¶iK«V�ÿÚ¶mÛFú;íÌŠ‘ý¼m»;3s‘­S§VrÜݾˆ˜üc²uÏÎ + OŸŸ?~îs*M^ÖTBñ³Aû¶¡êè¯<ºnp°’Õ».j¿þª²pê2˜ÊÁËÏí F/„µõ×ßÛ›®åZØ[}Ó¡ÛJáVÂ⺫×ÿHb÷�&ahÓóJš ›ÝôCA1¬=Ú( |÷qMauãÚ¯!{«Ðø¬¬buKY'(BÁl Q †BÙÿeÿ—.Z%¹„_%g~ÕLøPߪð¥n—O�zçãD~šQ×[ÖŽtjDs“~�iÎ8áË¡ù´èróÆq‚pºáxƒžžhM0I~Kå@sÞîèØD>m¨œhÌýª®­Á$Hø²©ÉŒ¦´ãËÑ;ÝÛD¢‚Àpâl¯ñ]«Óù×Wïõî^Sd„âÛ•ë¯éÀ‚šöíÙR"ˆ”’‚ÊÿñPÁ®f‰�H"µ@ _:"£à!ET|:"³ &$‘«A&€DþÂ:VP8 ~�)�*‚‚>1ŠC"!!mU� ³�¥Ý€ðj–RÄ1š÷£þªú€ý€ô€ýf÷-çü¬ö3Øõ'Ó‡ØË÷CØ÷0wðµç@÷‡=eý½Þ­Ì‡×O°~Tï´~íøÝêkúÇäßå~p§ËÀ;ýÅþåèiürOã7Á?ä_à¿.½ñëû@ûþmýý'÷Ê_‰¯ô<£üÙÿ'ûÏÀ/ò_æÿê?8¿Ä|ÄzòôRý¢@Ý1NÇ9)£ÿbÌž:ª Iõ¤TÇÔé•]%ÂT¥D,P’Í90+Õî±Ä®ì›�µ½š~9T"Ã(Æß ׿dn9ÿw‘/B;…wÃ.f}¦Á îa…ˆ°Zå»`ý™™�ü[r ¬J÷.„r8‘Qbà¥'Þ?eå�ïEï=- Å;R­„ÇêÎNb1Zyu{™$Á þyì_³¹ ®~%wéã–¤›jÅ@œ®À‰pƒv¬¥¼Ã–·Ï¿ÔåçŸ�þ¹«]ʾÚ6­ ${S¤#\S @-êk­2ò_«÷*7èzè0žT�ïPÈÀ�EðßzÉ2?ѾÒâ.Ì€‹Õï|õ$© ç!úXeH£Ùg¬Pø¢¡â§)ã"‰_&?èîáùºïËñ³åH€l~F³#Ù7xýÂà+³VXÜÊ¿ÿ¢þÍ¢7 �Z‰ê’é%S#afT?orQ¤1  ùjõ°­ju/‹5EÆ7�£H-e¡ª&;ØK…‰ ˜ê˜p¯­ã zdäI®õ–¾RÜ´ŒC!ÞÖlèd`wM�%„x�áÔ‡ˆWy1̵sÛeC´ä'/ÜèàX9²^@´6ÌÛ÷—g'äl„W³êY¶F2#¹Bg ƒ:ƒÖ_È'gƘT“øóâœ"Rd¨í*6;Ò?_”Óþ]êk–jÞ°îU ÷VŸ#'3ô|š²ç�q‹AjZŸæÍ(ûäž�³b 0Ó¦m¬½_´ȹ?B)û,}@$•ךža/@ñ,&ËkU°ôN]U]ù9GQKÓ/ü©ü̘ǫi÷ùˆK„ta£íwjš;‹;�KHÂyÍ|àY¢XÍk;gâÖýhù©_ „>2ñäH|ƒgÏ-¯” L6%gÚO&2«frD3ÎÃM{2Y)£Æü"Ã8­2-bÀq±Üx¤ÚR&_\kQÂðoÈ;n”ˆ“�Hë±uÚÛŽèy®Õ�Ô„ËëkÈ·YSnÝ׃ã$GwçÊ‹þ®žYq¦'E:òëŽ× i³éc)«ÀRµYÙ¯þpk´/Æ‚žj�„´Î$-Bø¸PÖp ×uÑ‚Àæ!uínk Lÿþ4>ÊޓΑ´âñQÉ(w? ùŸh¯VàçËÒŸ ‘±45æ>üe k¢ÞPGú¸º#â¼ò\šÂ*¼ƒÎ‡•Vh}âm*Õ ýY‹cI4u°�¬Å?±/€àÅImþZÉ¿ÿŸF“\OõMñÀëèñ½½9üT½‡þíÎ䳈 ¸Ž´G4.i&ºgkMßòÝV»¦Ï,�ߎ&C·XÂ0GãÚG2­-¨Éß“":v4}q$…ÿþlËT¯8ˆöªŸË—p¿]¢G«”ÇjàJ&Uœhv{>»HŸ‹`¿Ï:tyº/Šä‡‚^:ÁÑB+æ›CJ–Â>þ}®ð9„ç™#Bdm.æv%ßß¶¡•�þ>=û£Š‹=^ãAÈòL¸Æ–sg}šªá³¡(†+Ø!Ú„{½8¼îzÍ�ÇS2VÕvݦƒª;öšÞXéÔ~Aߘä ýåÃþ&5 %µØÔ f®÷– Lª|°§ˆyŒgŸ°‹HhˆqÏè�m_°(Pµ®˜­�)8Á^óA¥ˆ¥,«>3®ð½58^tJÀ°¢±iù¤ãxKÃÎöÆOÌïÃmæë³ýÝNXµ0D ‚©Îül\ ò)•,Å*´¢†Á/È‹†Öb}¯'5M49¶Í—“Ôs|"üö3ðm CøéÖ‘j°å‹Â7¯þÿ¸7ªP6¼|/€×Ôí†pð¿£Ò›Â¼ÿTïøÜ:(#È‘m” +ç*¯­ÀéÆòÉŒwªág)ó.áù`ibÛÀ^´å®­Ü€ÔÕkBo sÙÉÛ¤Å=÷ ¥ÙŸ±ðâ7gÆ�=cGá™&&d®ãìbÓM.�{С+›�¿ìÜ/-Å·1Nªî¦�¤ØËÄ—è^Üój€Þžù‹™„ ¼Ø+=W¬—øo\Šÿ/ˆžØ=�lO® ÿËþ XNð¾9o÷ Ç/ @FóvõêÔ]M×ý‰I£:mBœè[*çèùÊîà!óv�L?•Ãó’u‘�&gÉÐùmÔg`ËÊ„N!ÕÀ±/„Ë Ba ¸ìí°ÃãJ¾óÝ1xÀÐâ-§ïËÆY0ðÚêq/.¾�æ}G„¾0ý�Ç–.l¿�­W•È îºÌ’-�6ÛŒA~¸C}ø