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 ��ALPH4 †lÛ£Vz>†A‚ˆˆ„ "D‚È齟pzï½÷:ˆˆœÞ{/Û{onß• ²%œ^$H˜í!„‚ˆˆÈ0 ÃûcF“U'Û—ˆ˜üÓ èƒÁ`0öç g­óÄ2rñw–ÓÞÚ6¢‡*1í­eövªÌ6o [G•šöÔ,¡vw­b÷*‡¤ó#©ÁüHršµ×›I.ó#©Áü¨Ým~”ö˜¥½æGmó£6¯ùQÚc~Ôî®%ª„$—ù‘Ô`~$5˜Inó£O8óûì6ñ °ÿð6àlÀÿ�*ÖZMÖœ­¦}¨‘žlõôÚj·G©y j&·¢[«­{j©}V$E1�†D1�†EQŒF#¢(F"Q#‘HHÃÑhHCÑhXÅ9vü‡$c&'L»ùÙg§ð•Âû¹š³L"ÃG£*¤IÉ9k [£ìÛÇOÆ ¤4U†¿œ?vwwuuuõú«ä<©—­`{sª¥¾'O&“‰¤§:ÆÉZîW²Ž¾µ šãtGè¡Æ—Á„>pB9‰jjÌÓ2ôÕJå¼èÒqS¾èÉÄg4\ìÌ}6èÐË^#ßÍÎü7ÍýÀMx5ÕzÀ `Þ.aÎgo7, ñ‹©#6Œ{7ýá¶]Éô›c¸2V)E�Ž›5oÒ˜1“æ¹à—ˆòõ ø«*ÉERŸç€ݤå5Y¥~%çĤ )M�º“%ØY%Ÿ’ÔB3ëŒÊ½÷¬ÉÜÅÞ¿RrM¾-U,4£î�šjíQöp¥ö(9—NPHUU•Âu�è×ÎA­ÔáÄ.M9ëª? k{`ï¤'#œ3ºÈ¨¾Ckñ9fÉʃž®gŸöÙ—×a‰zÇ+ÔÍÉöÚÓ:'Ù­,I^Þú™VØdæ(-Ø@æºó,_j�,ûtü£TZj/Rx‘– °uQÄö+�æDègau¹ S�vÐ�6¸ÃEzŸ3Pz3™Læ*ÿc¯6ÑÄh–Ô–˜¥µò@][β‰¢<`áPÚ‘¡}:ðŒ·ÔI4ëyŠC™�B!Mó½O¯C�Fù•¬ã º:"–Ñ:¸að�Ëåv»mîÂ7LgS’x¿èÐ%?€1êUÂÙV÷Di{~‘å>O’C§Ê9÷»ô²Aˆî ‘³�U¥AßÐYƒ¯Œ¾¡¬\øn� †õ= ú‹Â0sïlº¤â0N=_öéœÖ1©_–Þ´ qJðHt_ÐëîŒ:M7� öëÔÊ`FÏ’|>È�c}qæŸ:¯öI©D‰Ó¥X㺼ä*jibÇüIÊ B ¯†¸ªÖÌâô¨°Þ¡› ÈË8°“D#üJÎ9J–gqà½h1èN!.OÀnÒ*ÄòI¥À5dd�÷…@¬°®ì�I}‹=R©0àÎ%Ï¿¯Ð› �,uܾþ+eý`o’òáÙ*Á^&ùÍãoªtÄ §Ô BnŸgЋôˆõß6j ÔMËvxʰ/TÒÇ›€(‘z�’""úqËM…ˆâ�4¢IÉ9!\W‰HŽrFß”À´N"¢„ˆJø º{² Gˆ4Ê4£¯®5‘È*/J:ÖEwyaȚÑi ÷š‚ ã›ü÷¶èŽz2¿»„q¸ü¸<KÀÞ&pí:´¡UÈ ÛÃpȲfíͪ‡¬¨ÿ„¾‚yïR(—.P¯Ïĸi÷rJ&ᇩ[&¬ÆðVVP8 °$�*‚‚>1‰C¢!!ømÄ ²ˆ à4Ä ?5¤ñÅÀáÿÇ{Û�æöôÏÞ[ü¡Ÿ –?ìÂ_îì´>b|dŽPN®[ï×x…í™ò�ð‹�ßBOú¼¥}EìúÝé‡ëkзö䯉{†}LC5ó,,~òë½¾áÎõòb_‰`¯:ãïOÙ;4žb©ý]ޤõËåèGYá›>r"³±ç¢zÄGª&^»}@‚t­,¹TºÙ¸Ó8×'%¿ ” —ú‹³qá…ñKzxµ[=Pðô6Ó¾¨6ç¤Î¯æ…ÊVhL ãó„`o޽‹Ð®5É|™�õİ~ƒËàà/tõwSh•qž6½Ò¶ÛFÆ}yoË©z B2[ïïZjÎmÑOãª]¾…°AðϺjɧI"4ÅÍèô©·Ð½LÛÖSX¹FMm›U)ÐhïâÝbŒU³Ñ6O·þÙåÄ�Fù’ {²eŒ3n°a ”W-Á¬Ô¿uæJ†ÚNyu|²ÿ]^iœw-ú/x¤ÊÆø·í‰’·5ü±boOTÙG°Á£Å¸1”%?m\ÞƒK¿RUaê) �è)²ÎÞïjM-²Ó°#¿¶«|$NÖÖ£>+5k‰²¬ù`2õ¸1Y"ÀÿåÆÿÔÒ—÷=ò'”4”PÿÕcð¯ó0ío1�ù¯½Õ¥åö¦èeö=s€»2u@ ›¯2jFãƒöb¯W² âƒB{ T¤ûŽŽ=ð÷D']qµ³$¤ÂÕôŽNZW8Í|?Î\ À/ÐÁ¥¾Â4oÇþ¸}4‰‘(êKr‰.O‡°qÐ+0ämÚx¶¾‰‰›µ�šÒª-À�Êïûÿèàýz5ôÒOð¡çõ^òjÙÚáëq¯Žn´G¿Ìή:Ùü‰3µì|ñ§ísè}¤EÑX¹šˆ[Ü·ûÚï èÌ f¨¾Ej÷Eå4ŠÿÑsб`¼ÿ­u¯æù’I´ü�º²l§uvâì-é꺭£cNß–•˯íŒSf£¥MGPŸáZÞ<˜Ek�¼Kµ”¹¿€¾Wea§êo^KýÇÐz¹Ý§ãµ€¨èÛ@é5•Ê¥àܪÄZ!·< ¸K\÷“Né¶Ü�õîƒÑáí~p•ÐÀ²*eÍ÷7ž!Îðmwô.Ø0 8 D¥‚ þ•-ÎÞxÞÿáÑ‚êÕ³bV¨­´¼!/Þ·¥uÌànœW¾›´éÀ#Š|†A×ÿà JOË¢Á>ÆüçÇ_õÚ˜õ ]\Áiíðn¾^�¥‹YS3 ÿ…TÎÝÚa=ä�tÏ–ÙþH]J2†ñ0ôâ´tMüÌ;§îÍòÐ3‚ÐæÇ¦ÝyÞì+w×»üһﹼŸ”£T‚LãP‹U£W·@Ûô3ô«3åP�ìK�ùaÁ�ÜßRwæ\KãÓ}FÕ\áúÚ"‹ÍËygÒë™$ωo¯þV&s4B‘Çs©rFGµÉÈ®· Ay5À¶må:�¿u7phÐÕ*ÙȾÖ-uºnÑÑÆ�f÷y±GËG¬‹½È�Î`á›7¸]Œce !�zt?˜Ù¾Ýâxª\ý·æõõÓöFØvZZÃÕá„YªÞ«ñF�r~º>“zÒío„gN åES ±ø¢¼×säTéÈß±ýŽ$¨#ÿü ç1Q˜·Ž1ÌZ§ÁøúÄ©¸úaàgô N¢¥H?¸#ˆFßÃRÀ¹{ÏÐG ²¤0¯i-übn3í~JÈÁrR¦d^,L59kqß«˜ô|f¢À–nÿˆ€‰ÌðmŒBÜL‚)7$ÊSuù›Ç}f�èé”|d]R=”šŽ×á~н´Mc®‘¦�Õ1©ÿîŠX”hHØX±¢?ÂX;(*—ÔÃBû­[¯ùøÃÃò`ƒüØ+F«$-øS¨ùÖ¹¢ÝÖÏb¾§åµ¹Õ�Ø�„~R¹ï~Ͼ‰­o¢”òJDKeMD©HŽ-GDSœ™Ê‘}¨š€ØÿÌòš F7™H­�ê‹·�õÏÙn© gûÊT{•Æ ÷·‹©Ì