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¤ WEBPVP8 ˜ �=�*‚‚>1ˆB¢!!zm ´€j­ªVß÷šT‡ÿ<÷óïßr}†óÇÙž¤+üQú¯Ì>gxûWý_o§ók쇚¿¢^ÿ{ÿwìýûÇý߸¨ßó¼³}�ì#úéÖ§ö»Ø[ö1-Béù §¬ô¦Ê>Ý[·Ëào•}�3þ �º ù ùÄ h~9WIþ†®¸6eð `ãà×è'§·¥8ìúìfqÚ†'þvqv¨×“Yׄ+5 Ü“»ôašoóËMÄ”»ôȾ>¼Æò/õ,XòoµlÆçƒM`¨Ž pŸg�¾ÍlGea!‘ŠÕGz€"–F>†qµ�\É'Ùßô võ”®Izì}£W±)N‚ˆ±\ýY{�`ÒõeU°zéRüÍ|ÈÂ?È!i-Ƶ„Õ‹ �®5JbrÄ ÑÂPÕ;á±�_j8¨ºlÄ\,"‡x˜Z]i$Ç 5‰Ý¡«ˆÊ¶G Åèǯ™» •W&1£)«þpªó!›x�îÂ4<à)ç¤f$Î$®-·åŸy?×Õ<Û#>îidcøüGZò¾kiô¥6 ï¹iË•EŒ6ÅùWW›Œ­À„:ˆ!zkòÉC„¶ öáL²Æ‹Ú�[&o´QÉ\¶Düðþþá—Mãòóÿômmà¬ý)Iuúüb𨑯ïq9ÊÀ_«³‹—ÊÃpòÙ7—°}¸¥´#ÏbšìM`ã_�¶dVsË) wníwæ�#Ç…•5ÏO+è Ô"ÏÊ;7eôŒ«ó�.ÑáĶX-+xeu�S’¿ŠaµÇ‚�#u®b½‚ä]aÌ X¿}URSÛ›Äþý¨œÁE}/{lc@z1W¹«ø!êÖkxÇ øOi[/8Û‡X¢» S$µ Cí!îZFN¾I ͳXçI?ë,ûMéX(mèÛwºi (¹öƒ%&jγæ½y¾u—¦J\»æJ�Jþ3g,+!ï½9ðŒ»ÖƸ‘!‡TÙ¯×ß«•Hƒ«Êëø•XÁ‹kÿ}ßê0�E8ã ‹š§)‹V(}‰ê1Ó¼"mûÍN£ôÞ>Þ�é«â²“(ÍxîR›k’3ë”zÿ6ÅIfÝÀ¨¨Akõc��6©<ÿ‚‹ÿ4õOú7#H ìJÁŒî¶1�FBQe*c`�Õ£&ó_”m/ŽÓWΟR wFÂN˜Xó3ÈÆ¦¡:?" ÍNFf¿Õ~|ú«wßÿÝŸCº^Z‘eQls|2K�Ý"¡Š]ÊËêNÔo\ÝK¼j¯@üriæì¨2´8íÒcHèƒiÜ|ò8ÿ†?8D;-qñ¯ÆCßÚ…{± ‘-DÉf* cGeó GHо¿Ý»×èC¸ÀÍòÄ ì ð‡íÆyó¢A.‡yç€Ö±–äדNÂÇËÞÇT±þkÍô‹ªæ‰ÞW7feP›Ø=SŸÂ[wJsª<ÄýýJÄÆüÝw!  A\Ý|4XÖs‚c&CU9�U¹YµÂL@_¡ö ¸Ôì«DiñÛœýsÕt-:ÑŒ®¶ž€–R+ÉÁÌüÙñ/Ûä´aÚÂè ‡àÑ.IÅó‘®X�òm±¬OÚ7ñJué‚íê&Œèâ’rùS…øŒœ `�ÜÎ63Ö̵™Î²Í]^ekhçñŽ»êB±‚g«N�o©[:(còå%ñF¥‹$ødåÞS©t ²•”xÌZÚæ*»0ãìQ’caÌOÅáH‘NŸýùo#§b¨J�ˆiü¾EÄî÷ŸñIБ•J¼1[±ØœWùç<¨²ðc°±·heV!ÎCUÇ]ëC³„¤:ó¡áFý5RÙ´V—4èd†~ý¯qcƒUóÊËÀ·>ðbJ¹"_´ç¤ òðÅëø®¨çaqt¯Ç +3‰"yŠ•® Ê£ü¸ÄË)èšçÂúÕÝu=𠥄¶21þy´¢ÌˆôNi§Œq*β’{òÞô€/ò oI†*ÜçíM%¹pù`§�˜GkpãÊæˆo <¸;"o�„ùš;ÃAÉÐ XLº‡EöLÕ[î‚¡Œ®×ËE¤êèkE¨­èºRn¡îûc»tU&›œeO±‚ÚÑÈ­Â wõð¾GÒµ°x’¬*²õAý¯ÃaÃ�} FB<žÙb„õÔò¼¨¯Øt«òO˜þ_ͯ°©˜ò�tz_²br8°:WF{HwN>�9Aä#èHr¨¯+£Ÿ^® |hÀçé\¸Ë×½ñ˜ò™˜°Ku¶ ®²87=ú4n _Üh5Å *6Ÿ–pz‚sßÎqy$j-QP ¹kåÂ$#çó4Q ³q¦nÀúQÿÐ oùnuêÈ<ªwŽžý&€±Ziyµbœþ·?�•$õr% ±DÉ‚…Ôbûƒû=âùõC¸Ò{ZŽ‹Ÿ›‡:Â:—šïPæ\Ú‹ F!íŒA²$Ƈáõ·°ÅÎû Ó#W½9@*e•îÅìÍ;õ+<» j ›oP²ŒÖn凼¾’(¥×%RU¡£?¨= xö5‰”•ÎÊôcÈç!Zr�Qðò—†8ö×v~è /Xou•RmÉ ºÈjUXø‰zµ!£ñ¾XµK\V7þ]ª¸Ðf0·8 :ÏßL3¡÷õK¸YZãé½×qŠ‘K¯’c·¬†81­Zÿ~Á‡Ñc‹}(VkFÅh–ndG’ ²H‘†û¿Ï+Ųå\ÿ¢ÆsÊ •‰y@”ä%ü=9fEÏý›DD4e®eS/Qµ÷$�Ûöϼ11’[VÚ'^Z!ò}Ø|X 5^$Q7<›püª äÈ—ÑùMØ!ìˆoéî#±•IíÝ¡ãlš5*ð^fŠæïc^oÄ�«…¼4DFv”á‰íwWÅTŸèmÜX™Jàj/=$Á ÝR0L ‹x b’96Vtc}sÒ;pl#IÁ:5•FY �tÀ