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ð'�*‚‚>1‰C¢!͂؂YÍÀÿ¸~>b<Æy³ªõþì¶3ÔÐ¥ ü?ýßÙ[¿ŽýiOö»Ì¤»Q¯Œýwûçåg$<½Oþò‹ƒð~Qü÷ýß‚÷ð€}_ÿ-êsúøÌ?WO¯¨ÿ‰öþQý üŸÜgÒ¯ñŸó?Å~Q{Yùïýÿ¸GòoéŸí½e½‡þÞû ~ª‘v�r5 šSÚ‚jla€!{ÌÏO¢�ÑŠ·'P� o/"žÊÞØ•òpy”¤ðR¯»•ý˜äDn†d€¼Zí¼7Ím…“A»ÌsìÝO€tLAJtÈMÍ5ˆENµ„zófçÊf¦÷�«]ËPߦYé/¼}ٲϠ!¾râ1Æîå‹Ü¼ÿ ¯Aۼݦ77Ç;K}«¨¹©3�>Rª”þÿóËÔÎ*3èúžø|¥u-âd5ã�³�ýVoßΠkÃS}´ (KéG¿û ýþøtH\{cá(Ç¢A’½´>€­0 tã(i ™—ïo;ð/óáv’¼á1�Dc © œ¯–CßEŽ&TOUÙ‰Ü5p½_�?š‚½¡r<6šÁŠ2õŸCÌ`Õ…_ tOwçžbXg£ÛÍD•Ÿÿˆî¨Hà+ƒçÑ�tjYŒÐÖ/Á ˜úõªo"Çé:~̺¤69à”SÆ÷Á \t˜¾�ÏéHá1àë”ükO´•‰‘½ùÝ"¾à¯ª”pP–D²]qÍÃÿ7ý0þpØWge“w€pЬ§4¯¯(‹Ûw_)ÕFÈzíø@v_üD?A¡7-½¥µ8êÏó‡¼ÒÈq;Àžc;Óİѭ€ÞÉGôϺ›ÙùKýÿâ’­Uˆ=×ÿ˜l p\q‚JVttL¤m‚»Èï3hÆ©ØÍćº ŽÙtJ7EáëkQç_ýƒG¤Íúoj¸D„RíÙg¡ÉU,vìüÉý°ìžBï‰o¥�Æôr�÷æ#ÐñíBž,®Ìmõî8Sq€Üz­)‹�c~ðy`ø-ó3�Ü(¯ß”ZÏ0àN©‘¹Ö:ØÎdÓÅÃËÎg?\[âÌëkYA™­ÆË�ÛóRÝ¥mV)m†‘‡LþþÞ’,nëzÿŽ­!ÞhÕl;Äýò“Ö0g÷KÃÐù¡Iq�”@qÌZ=FÍÁ_ÿ}uÁø{ÿ‰Ë8<_Œ d�ª‡‡ânEÏŽ›Ž ;�ï›lNQUÿ̦@%0Û—Çÿ¾tcâUÊ¥JnAפJÕ$³ Ý áñ3Cñ±©x�«RÂû}r²Î;ñÍa!éTP|…€Ã®]­±zC�2ó5Bó#‚çXî ‚@X†N‘2œrn÷W §é[!ç¥\Ân‡Âÿè®oþ2ù’QàÀ‘Ö?"•9†£¥rÃKt@}]J­�â§åŒ›’|ª„õ ¦œØ'û˜³íÕ_�Ožgûgû˜4~NæBlýÉóÙ¸0[�õݨ]F*°VÙ~àMÙ_cØu¦§]9oºTÿ"ðÉ™¨óAÓ ™ˆÊUQ_sfgXúêÅŒGÛ} Õ W´!GáDáÚz¡¾ *TxªÖST*T¯çü#*êu;Ào¤-n’ÿ_Ø&q¥}ôðÖÐ;Ÿ‹úePSñ§»’êú[g�o&·®ùz„�‰9/³?*÷\GÏÁx·ÌCJ³�©¿õc–x°åãâ«Ly‡.ø´ì2ô‹gµÞ›.Ûgü.nª¨¶×ÙU(ç£ýžçÃO&U }BWn†óPiôŽá ç "›ùbæõ~sùºADIì~MçÊï±Y‚ŽyAÖáy¶o¬Í¿½n�Ø…ÝóÒR “vK=´ùáêµµý7; @d;Á1dœâ¦Ï,?¸åO¶Ù´’\8µ ¡ñR¼ß¨Ä”Ç›!A‚ ÄÑ&ÂÉ¢t9÷xlPT+÷P½6pwwì箊³a÷ÆÍAø6L«3óÖéš•{H=sÔ€¢ôS·à swŠTÆyŽŒÄß!š,†uÕn~zsõ®³'«9E”ûÏÞF¶"Ñ@Á\÷x¹{”ðÈH·›ÂXyZ¥ ÀÍ7ýjÝ×T¢òÈ)åø¤ ™$!ñ§¬¡{§yk2¹YÃîºé2žÜ6š±*[ºåo\«0 Ãan™É§*'oÆÕï¥Ùº�×­Ê/–VL¿c(;âªUFÎ,�®h_gW*•†•v OpVôØÍÒaФ›?ìœèÊÌiHïõ¤œ}VZ½åA³Lv2~:l£(F¬ÖŽ+)‘«Kõ¸_7Ô鸦Cf,zdjÿþ÷Ë÷$6heÐ/eÍÀ‹ô1a -·Y¯MÀCCJÀy"FÒm$þžûÆV˜0ÝÃ!¡¹b�7ò;·7€‡ƒ¤a¬ôRlE}”ù‹ŸN°›%ï&µ6æ}ç«ÈŽí8ÕFUsÁm¿±bô,Å.GP*ÌøÃ}nä§çVÓÛ\bBcr‚hmšZWh}¶óIË–+Ü5»µd·ƒÃ_ÜÜÚJýL`‘ÖQYiã8ü¡ж7ÙÌYj1´Ú­¡9áŸ|"».;Äí�Ôðý@'¸¯¯ì‹�;ŒÚôqXÔ“À#’» ÃKDäàükê¿©§.�SÈîAQ<� eüP$íNÙ+怔dÎGªx¤åÎf €‡K@°Ó`ýzªÖ“²-Ž [ös#, Ç �z ¶ ~ïÑ\ßÌŸ×ÌÂÔÒ¦ÅÎP4¬”é<PÂf_£8íRÛW+z ëâÇò¸¶ŸI¢ß­ªì‹t ÊÐ8®“µÙ°Éi°h¡!·ö>,œ>X