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Š�«þŸ"IÅŸ¢(Šf´cijÝ%ZÜÝ%tw Ý£}‚ ÷ì@#w¿è¸ÈÝm­íäl61ä3P48³ðÏŸ¯’`-Ù~¹�äÇó­Âmûç>¦W²lÈy²�ìÇ^°’ùrݯ½|�ö~Ÿe 6÷Q¾$L@ÒGœöÛÁˆnì#}ž�ð{X½�2 ò=VûuTXÖw´ºèð’Ÿh�r=Q±�ö¤BO¦,ì¿°ÿÂA+û‰Ö¸QÖW´z�¢Þbõ³ÁÈw«—qFêV»ÕájÆSœ¾·�¶ŠÓ)© 8F¨#”p£Ç9š‹ë�PeÖ |ž·ÄJô˜#“s›GMqš‡ƒ¡Â£Åe¬?ÅäãVV‚ô)Ô¨â“q)yëÞ~Eñã­Íª”p0 ÆÀŸ“”’–YRUóï¯ÈÉHIŠ“>b˜â ɸ„¤“â¢"T…1”;Ô�&£bŒŠ’!ŸK0 V�2áð¨>U�C0 ÄFʹÀ‘3 ÄnÀ“œ8VP8 0Ð'�*‚‚>1‰C¢!¡šu´ ²�Ø ‚6öqŒ]&ýGòÇä(‡ò-Щ¿à=:À?Kz×}L=%ÿd¾ ÿb?Õ\øý<ÿ£z¥ó/Æ®¿ï{+œwìÇÚ'¿,9çöÑ’ÿîÿ”¼¼“úûŸ ¿Û»ÞyŽ…ü ÷Ó¿Áý€?’ÿ]þõù�þ—ãûŸ¹omß;ÿÊÿðü›úGùïÍ?îÿü3~Üûþª”² 0»ébk@=¯Í9×±ƒ"/!°Gdê-ÚE™�MN¢ �kßsÓ/MK3?†ºB˜Z"c¢³ypÁrM��qs_Y!M–š›ÓN² ¸¼¨Ù(JyýLå·åy‚ µ gEsç¢+ׇ1Ždß«BLð&Ï‚eI…×BœN§Óƒß†¦q>©ç}æøÏ¯þþØ ùîl¹'Ì¿áe:F Ê+ˆBþ{Ïû°�FK„D -zKP?Ì&I÷ÒQáß¶"”N C¿6Q;›¨Ûeø NL@ÊÎg±)G¡(½úöÜ¥§0 WYâuù³À/|9…|]ëºsx äDæ5ÃdJgÝœûC­Õ%�ºZæ]Ó„ k1pÛ­Åd€êmþ”bªüîs<"åOÅJÆ=žœßg7ùø¹ÒÿýÚ0÷#uüŽ«@PöÐÜ=î⤰LVdö™äÓ‹~ádÁÊ�_ËY?n�r¹c"Ëzç¬Ü¦ÛLM9}|gÀÔÙ¸ò“0Ã0i,*Z¾g™WO±ÿö[á ²jòü†Ñ–3°wvŠw„B¥zõUT2žeñ}Ò”º„îËÄÑŸë`‰›ÉõèæB¤eæK+ÿû9ÿÂCIèå$%«š‡ÿü\¯~Î>||¥’×µ±kopÿ…㨬»ˆŒ§TrIáfsäÉpºKoÚóíîÁö �µh½sÖ”mføåVz'0VÆFòu�Ô5wçÿóû”Wÿ¢È^ªdPCW ¯ŽJü+–x%•»PµpxÊ{7#äò—�‘fsyyÃ\«Ä ZëxMΜ+*™ÀéLê9¢¹|Ê/˜’Ê<–·™Ý§š]¿œ*‰íKõ ’ˆ’Øwäñÿ‚'<ì“ ¿t7´ýjçJ÷k§ÁŒ§ÖñiZ\Ö¿ 7‘@äŠcW¤ƒt ¡”*ì¶[êÕ8�3mÒm�¶gha´ÂsÃéÖ±üÎ<#Ugº'Qg=Dõa#4~«¹…~Vþàëñ»í½g@7ç¶£�™[qî>,Yõ‰�%½æY4Ëý–§Ñ°õ�ádF4¦_üÿøúƒýÄ|·Cÿ戓ÿ¿ÔEQÆP]çü–ÐùAÃ…>“>@ŠE&Bw Ÿ»íö¦V‰s²£-¾‚‰áK~Ã?“¶i퀢ty ©’ÿŽ«_|KÉb5öÞ篃¾zA\ÆOýhÉÈ?ènƒâõð 0×@Ã}Ê}YþÀ–C 5-þ3çÇ’B£}>¶\þ€‡Ñ�t _ô‰/Ä+âá$ˆÂÕ!#Hãn÷bj5Õ©ï·M�¤3Í¿ÿ*“b{±zS¨Yª¶:²¶Û9‚¿;Y_~HGa\›Ý|À×1öæqõA ”îI#ò€LV€ Ç6òW¼9ü÷_õíÞ?«//mù÷~û^ó€�âöPJ{Íê6�&SŠ¢kk RaS9ÇZ\£t † ØAŒt�"l&ÀLP†@=õjˆ5Û#h«U€Ø[EhÑw"ÿÄ riPWi¨á ËÄ<²SþWŸgjŒö•�Ò‘`¢•s#å ”+.²!ÍŽ÷Þ¢ô¤.v�2§fÿ1«9&ÕÏÀ„luÀd—bn9Û‘TBÓwÈn—�tv�¹õ˜2(9!Ûÿ¦a ÁGÁM¯oñ�LzZy§çÎÖŽE7ªæ†Úì�ðH�œT:mŠv~íŽÞ� .ÚßòU9‘ñë—ßOèÏë!ýIô&5"~ &Yªôý« ­c!N›$þ]í0®€†”ˆ'½�WWÐÓL}®­ôu0×Z?xºZ£Hs0f�{½Úø ˶ðñüy '^É'žqåûaÑœ”Äærögf��ƒŠA5-‡k�òKAmT÷™°Ñ9ýw