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 ðÐ'�*‚‚>1‰C¢!¡Ê­¨ ´›€ÿôIB8œ¯¡o&°@ØïM¿c?Ü/HëÄo­~0u™øs× â¿iþáù)Èÿ¥¯ÈÏUÙ¿,<•{Xªï‹Ê¿ÃþZy§ÿè?Ë¿ªæ¿â¿—þÛüý›À߼€?“"ÿù}þâËý?ð_ß="|ÛÿÜùóóÿ�ÿßþ[=zþÑ{~³áÐr5 šSÚ‚ÀŒa€!{ÌüO¢’Õ®pû]¹´Pé¯Ín¯³u%®†� 4>‰‹¿â‘Iéõ*Í¢ÎÕ†CËA^a]à3’ÖÛؾÅE•J´€$Šhªä§ Sz+»½S<\ˆ g)ôIN¤…GÂÏDê0R•/GL.Ÿ8Ä^]I7oÎÇÂn[îùoÈ2xêÓÚ5< eÿøŽìMÊr¥¾öZjòµ0Ö£n‡§)òs8x,Ƀg)}Ð7‡¼I‹×­´E‰À®àH{—“ÿ.ÔYÍN�Ç5°ÉµªSUS}Ë\Úlé-£†ç½Ä°1ì1µÙhïÎP½óf…"ªÀ 5ÈÉ¢Ñf¡®ô vˆÙŸ 0ä�<×ÒW¯çÄêÀá2×e¥ê½Ó8j£Wœ¹HÂÇá]˜�m7*k ÐYß™œ«Üvçd1]v’NÝ{ý-‰ìFvzúp(ì�©i™µ³¬J#g]/ñÜhížÓÚ¥ò5¥?W;v–È÷�îzS§ö«Ûã µˆ±=]çþàìµ"ÓÚZÂÛ|TÖ­òѲÉW¨òoà-aSjµ ¤Åo ¶|/–‹f®©íÔžìYƒñï9S¥4 ³7r�)ø%Ž PJyûônÊ)Ú,’�æ¿%vTSw¾C~µ´5].ÆMßç AUü*ÕÙëH`…í{öÎ­Êø¢sóÏÝî¡•æà¿ì$=:¦rŸÈ²(0 —=Iž¼ sXþÚÀâåî#¹NX¢�Úˆh­ü)QNo –Óhg©°Ñ¼­÷á�‰MöoÜ`ÃîÉé•ü/ç4 ê$�íË,ÎßÒ!LæÇ„‚”Ë�&û›ZÎþÌQÛO MÅZ~�3þ¶ˆ ïYNz�TíäŽB΃2ýœZ€`kÐÊèSÌŸÉm?Kž}�ÈĨ ”ZâŽ>úé�ìë*«N…J’Þ#ØÁñìv-Èmޱ�3ÿ�ŒF/‚�tÿã¿ö æø0ã4![ò�P ¼1k³™›À¹¤×Jð�Ñ6³Ô—“”ǃÒpp›šìéÆÁáªç_”¼z}rûæ0FcfB |Ü=3%ƒ³�V)lC×"9¢9”ÕþÀíÓèÿ‚^•ðx¤#x¨M2³Ïs"ñ™}Z©?È1s:táˆ/ãf=5`SrÉûÀ¡iŸ�¿÷l­‹¼ØÁ¤6jÚ[†•(J÷$É‹Áç3kôyk8¿Íq(cáo`uoOä?dN@z7gSUh.0ÖiÖ@/A°Všðûx…æ‘&"™±�v×ê4jNÿ&ÜozkW¡ÙÒV2„›þçÆjµñâl³š”ùOú4�Ä �œ‘~L3¾åFàBUÓ ýÄäg�@�ç/-Ë:fEe:OÉòUÀ¿ÛFò+Øg|Ÿ¤…v†Ôø;fÓx|Ê$žªìP{VV ³çÏËìP?€Øú\-ZºyŠ%¯<¿ü0¸ÇXð6LæQ¡w¬»Œ½…§ÎÐÃü‹½×ò®,^$<Ì뻦À@rýŠvKè2v¿É> ‹áÊôleÚéCdûõQÉ¥Øú—ˆ±&ÞOsÞ|…£RylGÊzr78ÒEUP@ÒÏd2‡Z^]ÿÜ<+lrSùP†¾wÚÆuHbSÍüa­!Ÿ“Kö~’K?²©_Ç>WcºŽâ@å¹aO[êŠòJH¥,µËrãtSP1=èI¥‰Þ.&¬·³Šk̪ÂnÎè³üöD-¹çʉ}·Ê4]ÿB›˜¶~ÒÏ<ûlk,45R§qÿÊ+ægþTú§kñÀ1ž'OÿäÑ©òöNøºÿòì+œ$3êLE ï#.Äù"¿‹‰?D†o(CqùyÚ×á%Ñàrnb„âÕý-(’`˜<µŠ8 ‚[½�“¶€yÎÇNm2‡ç:²°F‘Ý—ŠÙà=ø…¹)×k4~][{üÊc±Ã&úÍ&R‹|11á¶µóI£ÀOß¼gù‘+“×!ðzŽb÷WÈÞ=pv‡Õô>?×å@Ô)ÚŒDý2qö>Ìϧ øæ¥¾DŸódO9óçŽ7#B>ßv¬œÌa„»)E½™ïòýLwµ†Õ©¨�?xú�¦Bœâvߺ “8jL¿Ì†ÚŒj$?Ü%SuWž”�À_²jyœ뽊W<ø