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 WEBPVP8 H 7�*‚‚>1ŠC¢!¡š<ä ¦ïøØÒDz5ÿMünÖîê¿‘_µ_ ví?·ûç//î0ÿIýWñ§Þ÷ë7¹ÌÞÀ§_å>Ö¾ÿ`=×ù€þyý þ�øßvçŸá¿À{‡ÿêüÏú¬Ïúo`ë~ Ë±ú® ý¡ø'ý˜ÿÓþ³à;öþǰ p_Ù|/ñ›â/h¿r9h¼ïÚÂ~Kþ`|wß�½Ú½@½)ý¿ò¿òÓÚOpÐügú'ø?êÿ¹žnºzIõ;Ñ?óßó>ª~ªøÚÐùöoøÿÛ¿>–¿…ÿ�þñïÛæ_Ü¿âÿ˜øþQýSý×öŸÞ>￸¾Æÿ¯_üÊ�cr™âÙLñ9×-8OAu£W0ÃHØ[±3ä�F¨d�3?�H¢tU¸Y ht—–id¹�Â÷$*�i8&Wu•¿â=)]KyßI¦(TáiÁbYÞTm°¸£Ø²ô–«w$“¬Ï$pJ* )p�wJL· Ë9YÄ¢1÷ ¹™L‹Ž‹rúÕúZÇoHµ'56óš’ÙXSp©&še3Ų™âÙLñl¦x¶Q`þöZ³fHn>Î QC§¾P I0âBX&Ëíô›š®RstN£fº‚Ø ¼™‚NWýÙË}Z†c}—ãá÷ܼÍàG~ãí’Ê¢dEP–ÈÌ,V `~¹ÔúMâ<œYúyÿþƒ‘ú5Ô„Þݘ¹¬¾õKÛëÚ»D&­CeŒ«\FÞ{”Q`™ÈIDéʼnN6}RøxúKw6-aŸwfàK…ôÅ7óëm0P;W�ç\< {Ï'`]¯€îm·šïg-=õ$µç܉’|�t¾¡‰v�`—K×h,ñ¾O�21‚îì®_.¿õô�ŠZ”)E1~v=ƒ7<˜(}ï-ÊL4¦¾sVpˆ?Ï¥ßw½A.Û(îì”ý'g٪׵Ü|ÇqÆ™ÐzM�ˆdÿCÆáÉÀÕÿ\<«7 çôpä`mç�9\ædѬèÇ_$Íi° 2—XК\zK¯Å¢À9q�!ÀèMÒ„pÃÓùx«ë™ê»^ ìÜé�|�ikY?˜é›FP!a�k*=ú�ÔZv²¾²»”•2lÕëRHÀ+>j³?Nj E/–ó«I€(Ýz¤ñ£R1TÖ `çðåïU5Ž* æËý.ÇKBh ¾uç,yØÎ-8x߇±X™þ&Mo �}¨…%qc’N? �k`5Ï3^´S�j 5A¾0Åø‹nOž�Á„ZÒŽóR>ö‡ø¿2—ƒCœ5›”¥.¯…TÚÅÕ%¹ ì;‘èU$©Cóo@ÿï6™\J²_W” ðÔ¢=â:7äÿË» öj|Þ³¦¸¹èÝQ”¸«òU°ßÆø@.-´:d=ÿ)÷™¹ÿIM¾Ç Òs€v]‚Çätûü†‘ùÅl‚w òƒ7ªÿR÷мCª%û¦ÕÈVÃt¦ÓØ!>žF9 Òa²¿h+þ¥ù=Èž7\”šK\âv•mŠ:?µ1”´âE�¸ÙüåýÍÿ„¸»{‹²¤è~èwÓߣ39~툶.u8W?ˆIŽ=uÄŠ†ó÷A×$&˹ÉßÌSØ‚v³kK *ª½`&Ä쉬“"gC…bÌu¸¢”—cßìzhõŽY‘>v㈧ÛYrÎ;Ú‰ã0Ãäà°Ÿa~ú�Œ5_ ôµ¿g½R+£Çµ ñU¹|µÓAͪÝ߯uÍŸÈÖåûÏ/誫lVË‘?�/¡L"ùuVNþ­‘OM›ÓÈæÛ¿þ‚QÚVÞ*ÅvÜLBO%ׇêÜá18WŒÙ>â¸�ùÐ�©Îs¡¤åH�@u×\ñûZoPk)‡JþŸ"• Ÿ‰ï…}�w*9ÕuaãòU%ù‰†Xл²Ka $5Eq¢è53Ã�GZ�…ú‰~â*ÆHÍ(°œûlrNPGi²ß:¦·xr7�íÀNH)ýe<�íØr)dD�„yËŠ³àÙ†ÿ < °V �âÆ%AÍj_^4‹ñ`T/œ—Ç,ðþ#Iq¼U¯+éBËgsZ2ÍOfù”‰œƒÝué®lÈ_,|[)íö¯y¢ÿ•ã£m)aà1¹K1x©1Ú}ûFå–Q)Ú•GæaÌfKdn��ùRK>Qåúš—4Ìß×É¿ðx¥öÞæ+d@‡k�FíùPÒ ^¬ð¯õ~�“Ù£Ì(®¡?gÕå)G„ib}#M\ãÆqK´iSåþF]µVÒûN½\+ý¨Jå�5ÛÉ×àè¹È7ÇiøHDöáåkMø=vÕe-c>µ;Ê)hßÿˆômw´ÅÚgõ‡íÅë`Y°á‰¸ò¿ŽÃðupë""¸¹ºx®ÃûV;‰ý((~6pDÏpé]SÿêpН†d—]©í&_y Eâ KÞÚÞ™ï:Lï ¹+E\Z  €nG Z(lÿŒ¬Ê¼MS:2BŸÏTÙúZ´sDæçg¸åYPµ_{ CRç`6:WGŸ·Ï¦³-CŸ†�æjè\�¸Ó(<ƒ�~§~+í�ã+’±ûõA‡•ÌìH\$66µ38ŒP*Á” ¼Ê(@>´Ó¾†jÃˆŠ˜å®&�·ñd™óþ5ળ�Ímc³~å ãœŽ@y…Hìic †¯¡ýMç¯øÉÕ ¿ ¼kêõOå=¼:»Ù·yŸàøªœ"è~T¾î—Tj «Çï{¦¥˜ _¥ï=°‡}M@‡‰u0K�Tb† f4:sy´G¯M�@