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 ��ALPHsðFlÛîfÛ¶­6Ã0 C C UCUíQ1DÅþQUÕã+ÇWUUUUUUUED‰ªŠªª¨¨ŠˆˆˆˆªŠ¨ˆ¨ªªªÚ?""¢*ª*""*†a?2’#{öäüþˆˆ €ÿûÿ_ˆIÔýŒt×C‹=݇1y^¯7y^¯7�N‹ÞÀó¼^¯çy^Ïv…�¥`®péXð¦ ׎ùÃLéαp˜.\Û²…kcWÄl—„c=»ö$ćիObòk+Öýê½ÚËÙÈ©´ðiRýã�˜›eÆ?‰¹iõܽx6¨ñ Õ%\a¨³âO…âŽv0"”÷X}\x¶³Ö¼”xÕs"?�# FìsšÎÀ¼ˆÇŒ«*E´¬O¶™ñ)¡Õåå-ü˜9ûäÁ:Ð+â…Iµô,F9ö°VÝd~~}ìdEp€ïݦR!¦Ó1z'¦ÇÉŸÄSNë©©ùÊËš*(e� B‰u¬ãâSRn ›(H5óï˜#)ÿÆø(Úq*ìí{EBDú„øÉˆÏ•+ ˜1#ùh¾ lª¢r’¥"a‡®ˆøOÒ¹Fu$^õ‘n)?DEäKÚ&æut,8eî€þ(‹6ÌT¬NbóBi ߓӚ¡`Ð\ym>UwöL¾¤{2‚ _ž?PQ9¡Z³o ¹íýs—ÀìRFËå*Ó”[Lq¦BuVu,˜¹§µ¸àFÝ­J—Ìo•D¯1óüw"øikéáÎÍäåO½Ý�9m\êaœ‹>Ù´Û•h¿!]Z$Ì�‘õš\é Øt1ùÊó´ø&ðèèßÊ»{‡oŠvR.-�Ȳ°†º>–Išýé)Óizö]ônV;“ùb%G9´R–eië,ˆl9“Τ£ëwËÒ…Gÿ.\ð¾BäZéî·[Y–¥ƒCM÷þ%Ô³qãÜ¸Úø#–š�<>¶švÒ§$¨�•ôaQ–eq u•ÍkÄ›£­ÑènØgóÇ6–|�ùÉÃkÿ8�T£g•ÔÏ>A–e¹òtVzßuºñ†h¤2DýßAп¹:XwE#+šÐLó®©Óš\Ÿè0øöíNìfo¬‡@Ä»ýX4ì÷EûÁÓÐA0à°hé�ñ­äcÚmuæ$¹^pcM¿Ü»·Nn.ükÖŸ=ñXÈë‹DC±äIäÐ65n]Þ?¹M_lËûŸj²ò•:­.+WoÜö Ïiòö!—½ÎÜÞÜÉ篓ñD"‘ˆ‡w\û¡ÛgQn˜ûë8”_”eñù&´µº¼´fw8Ý»‡}mqeÕ¹<Ï<‹r“Rö5Þq`¤ +Jµçìíe2 ƒ‘Dòê6S¨’ܼT9µÖ&U‡p–¥º†’¢ÜJ©V8�Ѫ–Žö†:¨WS×ßúêî>w±™hÄŒgo ó¢˜oM³}ƒ#¨W qðÏ|ô †!Ô&Ô�iph˜U@ü ‰ÂhÐ ÷#ÀtÃ:ƒ�@¯†ô&uÁóƒÃ¨ñšF¤Á¨æ Ö4·j_™4ô©Ú±?z²yW¿nŽqé€jê24Õáoîzš ¶³Ñ%®Žš<Ï…ßa ?Û€¶ú³n½» ºv÷Ù§ô6ñí°Þ„¸Ž)€æ,¬Fx°2…C=f©†H¤�y_¨pougíP£øhÁŒêÐP00Æ8Nj'Îýd;š.ÔJïî~e÷³)€±ìEºc—"OéG¤€íˆ57£ïr&¨çNOú(pâmoòe‹¾‘èi°ûd†¦8Ÿ‹…&vŠ?7Jf*Õ_Àl9 ‚†j Ö¤Gtcu=Éu¬5çÙa¡ÙÍ&\®‰\i•Rú¤Ð{}LCc„C›~(ç8@ÖÛ!h çs©¡E;»øOÅe¢nðNaâi5ѾLª6‰¨Ã#²5ß -óãøBñqo³•à;D+B„Ð_Œ£Ö<”O¸–í†p í¥ûŸñ&¶+�poàud{@îIh5Ê@kü‡µHï·j«š›@ »UØzq6 ÇBÏWV¦M0·¸†1ÇsÐ"¯6Z k[ƀޯ뻨C³Õ¥0ZñЮæJ’µÄZ†õ�Õ=-J’ßËÕPßyð…¼¡‘¹ÔFtª8±ç$Z†àU¢v¨i„Ü¥&ΠÇ+œ�¤¨°p@}h¡¿4B³G¥1Ô.«¾ÞF‡%k£”ô_î2 0úPœ'¾èÏ Aº)u²Á»j@×/Áþžê\£+•ôE„G½±üt¿Ì¢º‘²Ÿlü¨8�šaÎj«#f…K@|¬eq`Žk›4Hº×JÐzÐ)ùÛÅclŽçú†ƒ/;xûÀˆ‡�&U‹á¨oVHï‰Fƒq+!ÿÆ 5Šúæµ ^ Fö,H 8×€`}3Gñ³D<±¿‚6¦8Ô ¦Q3¬ 4ŒZCB=F³ZÓ¨Vƒƪ �UxDq¦Ùßtj ÚaÐiqZ…àÿþÿ7XVP8 ŽÐ�*‚‚>1‹D"!¡ÍT, ³·pº¤Ð?À~$ßO/OÅ^À ×w@~‡ÿÀþW¾KÖú�ìåúŸð7úËúíðú™l(‰e]�ŒsžáúI‰1&$Ę“ð4Õ' ¢Ñ¿‚/8Ö½ÑÛÓŸÏé'ôеÛþ—)à6↼Ócø[&’ö@«>íHÖhñ.%ĸ—â\K‰q.%ĸ–pþÿãŠÃË©Û5ß f_ òn¤ò=-¤F#šú„(ì{2Û¼¤µk¼[œçÚ; \gnëMdc‡¯ á|Âcÿÿ—‹gp"Û™þ|÷¿îOÂ^ÃTµgÒñÍË•’þ5>ûbí Ëܻۧêm'´"«ÅŽTòsÙ)Rñb1dx9 ¦i±$ûÈ�Ò�è�™ïî®7…âǨbaÉbèrÁo×@~a¦FиtÇ·~Sóþ+{/ýɵ/e0ñ4XCÿÔΣ‘Ç}¥°oUÒA²f�ızˆhî0S°ò‡ÒN/T¥Â42þþs&­Í¼îº}ýzf_9Â"ªïˆv“cɤ@Sø¢uÂEî Ì�ý‡â�¡—iãË}Û`0³.'ÕÁ#nz™ ƒÝ^Äk,ÿÕíH–^Z²¿°Y¡EWm:R‘�ê-°¹Ê¿"©‰sâh�]j+ãSºÃŇm%‡ý‰»M‹œSyþpx«û‘I;½3ìR §_§G,É«òÄ¡™Î¡$ÜÉ\Aü¤žæ~JIGkÞG[ÜiÁå5I‡�×—>ê‡,|È„”¨Jóæ�À¤¬ÓÎ&#dRpÎÊ‘Üïw¿‡>H