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']
RIFFt WEBPVP8X ��ALPH� †üÿâ8úòg!„–ê²õv ËR£¤Þ.aɹÕÝÝݽçîîîîî¶œ»TC¨�…²„†Ï‹ùÏlvîöåÝEÄèÿÿ‡ßv—ÜÖÛ’¾gS´mJÿåy’ÙྮmQìÀï�T_x©õâ³ÖmhÁ˜5kÖ$BS[ôРx ñVKO„  MuÁÒ¨%¶d« ž A>Tº"l#€BpgÝ'Nœh×+!É„G2Æ…§x-Ç€Æ0Dü�Ô’HkdBrȶ^Ýc‡r¾ß¬ŠëÿBÁœþ3¶í˜7$îiÞ°U 5¬6(90ÓPó;Ý6¨kÅzþIàL�Ú“@¾*È�o\·p]µí=#™Sß(¹®ëž¸¢Ê§þ±¢ náž¾R8Óc®rËû®ITæ>‚{yï²EüTY>0êùþùzOdo ßò倳%Enx(Z™ÏZ@F‹lq}ayÂ/ñ;ÐüÉ{?”á5cùȘ§úSLrn è:Œ‘œ»î‰¨²W´ P­�®çé3Ë ¿S�Bʧö®RF>J—(=0áÔ ?L�Nw�ò#³&]öÅž:Œ“¹à.G®ú"PqƒäÜ䑾Òž÷"~Ë€dMÈö‰‘v<ÒS’"ïOÈiŽ ”$gÆ,iŸ'öÀ]U<1ë–;|/JK’“½nSµ¤½wÝuˬ˜üÇå‹êâ²ûùO~ˆÔîü ˜ó À-ýýkJ¥??Ú›ödý"§^pß][2ç¹ÄàH2Èw@àG­Ù.•JÕHrjºG-±®)ßÞ‰ šSÄ·©^j´™qy¬.p$y ð•‚~…ïg±V0Û~ž’’ÏËMõ’F|SÆÿÀ” ñF³�#Ý-Í*ã-–°\|è3?žr*7ÉÅöÀwQU#p¹9�&ÜðYà&e,‰cÀ¾U}ÛUo±,r± MžîØV¹w°umö¸5ƒÞÈÚý àÓ|`2ÀO Iê äÀò¨ ßµ‹íŠ ûÀrŸR%YÍiÉ}&l«ò(à=3 ¸FÞ3-Ñð]�'¾©·ô°EJ�CU•Zàq”*út-+ó«-’ßÖ7™ÔܦÀk:ø,*©~�KhÀ±-CÎú�|�Þ6Iºà‰J9·•Üæm&ˆÎ>á<¹Dþ·¸å² 4×ù´; |³{Ûe€qÅ›ðº.À[æ`•¤Ä“*$¥²Ý¥@Š�:ýTëé�Õ ˜=‚i�4 xAZãb?ᾘÔî=�õÏÓõœ�ú7ùšJÙU¼Ýî}÷“FIià)ÉLùÅSx ®¿D%E—üb)<ÒSzXáÑ"Jù¦)!IïÞ½{Z¬"R¤ç˜«&õt$)2hÈ�IŠ š·(›�é][ÛUV'5eÕ’lR’ªúöﳘ¾ÉˆQH–äj+óOßÞi“J-($Ú zJ)�±äœ6Hxžr”øp—¨-vÖýt覘¤š‡rßÌ0m’dŒìFÿûÿßžVP8 ¾p!�*‚‚>1ŠD"!¡úl� ²·p¸ìá?º~þ3|‚Q¥ýÝÉ—å7ô›C¿Ð?û@y€ýœý+öfý3ìýDëôþý§ÔËû_û�ò_Ÿ±®?¿©ÿúó€;ÿ àωPW\~óåJe!¸ÌÿOàÑÿó½Ió†ôg°'òOë½Wq=ƒÿ^3>|* øTð¨/ä7¢LˆÒCkø® ×µ×Qãû¿BóF`—w”êyO�fqÕ'¨ª½[�iSüŽÍ-ææºç·aXtŸËb„†‚¾²=f8*�Ól"r¨•læE �ssÍN1瀪VTë¶Mï‡ózg υAŸ ƒ>{PþÿÈ¿þšø(�¹l`eö™9m!Hþô7õøâ™&#ž[�‚»F_ÿ�†ç;îá­(÷1ƒÆÃ7pgÖêûÞ&jH„Yõ‰ùÂÖZ´`P*ï ŠÊ+V±êu,Ï`×c†)¡ïg´U›»õQ¼îúzüŸêÈòÃc}ÞT]�FdTw˜FúZ&¼òÊUSLõy¤ýŒAcvx‡cñé÷ŽW¤6žØ2̦À»¨À:ˆê§¹ƒê — ‡OC‹©á~Ɖ\)9¨Ž1ÇV3RRgõÛšiéC!Øiw§qN÷›2ÊEC,ЇD?»¼¿5ºWÁH£&Æ„~&²ôA+¶˜/"åŽ#ç«IÀ~�׋ÏÜœÍlü?Æ|B\‘ÔQüô(ã¬çnœhê#˜åÜ*P¿J5�¿mÖs —ÇàMq�O�Ð|ݤנ’HÛÍ,õç‹ëÔ0R>n”ÞVµ†,wyÂ`®Ð“ÙaQb¹¯þ{”èýøÒ-jí{ÉP+ÚlÀ°²ï”átœðO§6ÿl%èÓhäÞÅ>ÏÓ©—``fÂÚ ·…š?EÚÞ%Ki¯ãWÜHƒÿyÛÞ™Ò—Œ:‹ûœÑ~MØ1ÂÚâ#]Xê‹C>‚ÜO‡û/!ûÃ+!QPsqÞ«äÆçX)XÉÊÿÿüïµ±!-¥ŠkXªÞFÙ`¶â‚ŠJà¨Ò3X<¿êÌÿ ºÕ0Àx>TÏ/½>ªï·*øXöX™@ŒêÕçµnø­~MʇoÙ¿Kù õÊlT}€KZf¾Ø>­ŽØË|Rß«,0—Í?my:d`RD·\l£bªq渌