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']
RIFFv WEBPVP8X ��ALPHÛ †þÿÚÆûð#„RJ)cŒQÆ(cœß8™qø8w¿±Ý‡»»»»»»qxÏÝÝïÆù•ž•“RJ !|dM»,{ö—ˆ˜üïÿœí~>µ¬KÛ�¶«¬K<ÖsQ™&ªT©Må²@¸Ü©)‰rì›æL>à„åKéý�ùŠ¢D—'gÚcX¨´ÌêlÕ>NL0´Â¯Åµ-bì�ñ²�îí�ÚS--éãû¼F4iÅšë$+Ëô1Þá®Q›]dÖ•,«n˜ñ×F‹(@÷©ýXUµ KRë�K·F^K’ j,YuÙù_TÏW:/;ÙŠìÇhÖP&à©«txZÎ9ºkh9HÇhÞÇ–Ùñ²_¡^ÙçDšXI³Ž4øÚóÖL¼ÜÐ22Tü¥™Šj†U`‹Ó/² ÇíR£5´ ¸hQ¦Ò>�„•f®¸ÿðæºÞ•ìÍ£vwÃj…€>Û<`Ù ¦ $Z—Û4aÝI¦énarÄ,y%W®a�Ò"½7‰V!š�d›C–bE|,J ¼& Û£�õÃJèí¾¼Xäo|Zj&šä:¢¿eÔM˜=PŠ2L2Ô�22øM�Ì7æüÅû(µ/MN1vÒò@ JS_SCL( OS¡uË®(rvûÆÉ:g~A:Q»vŠÎQ«a:’›Ö•dôÛÚ�Ô ö(΀ ÔjFŠŠ‘�ó¤_'©nqèn(ð“T¶%uÉ‘É=€<#DòìxF‘ê%É@GWmgô0Á>}MeâÀOÉ� @ʽ7UžÐݳø—N´%ûp“» ö°X�J²ôšÚ�_¤’ƒòåû–Cñ¿jØÁ@:Ä@²¾ë¯ÂfdUÞ/ÉèIöà!·¡5©nj˜ŸTS1ÙWßáœHî0÷·R[#–Ï�Ÿþ"ÕÂáI!ÎK ò,Æ’Ã$þá7Ñ—ÌPŽ\†#ä Ž·ÔÒì’3Ä—†�)m$Œ?'3©}ˆZÓLÒÿüùë"�«ƒ</ì!“Ç’ T!á=#X@¦Ã±È§wü ß‡K@›ŠoS«+Èc¹dÀçó}þXÔ3!Èc¸È�Э!=sÈ<ÕÈYð3”¬O–g>v4Ș�û-n‘�ˆMM×-"o–#gØl6Y–àúÃ#XEVÒݤêX@6Ð�œ�«ÔêëŽ�5²©åÙ*?Ç÷y->ïk!æ›TË !ÕþEîÁ{ú=€¨’¦Û�<ò¬¢­ÆËJ®��‘ã1”,ò©@%3[3ä"|¤®ßâžçDuµ)QeôŒ¶¶TÜ­·šãΛØ5>zÙž”îvÈV($D·€ÝÇÏ6”Õ©¾©ålŽ’ëPfO&©’üœPv%lûAR¹îAYîÌíÚ1MàÿÿC)VP8 t*�*‚‚>1‹C¢!¡û4Ø ±7p¸•ò'Êÿ õÎù‡â/ä?ÊõMùܯÝÿñÜÃå÷¨oÊ~eÿd÷åükðçä˜èŸøê� §|À"þ�þïûϽ'õ_ÔrÞ€Ò¿´zÁÿ¦öý¼öý`ô�ÿ¯ýïàWö[ÿù¿€¯å×ñõ€zvIüîÒQîîà9½³v"'z-»ê\@i/Ç—¡þsþ¯ö þ]ýŸ«ßî?²'í"äZÊ„äÅõqFŠš.K¬Þw!¨äÆ%hâˆO8uÑu¥¨,´(Õ½à"†£Êú8П~z�¾ÔJßOW÷ž­ò‘tðd'ÕâG™R?¸:¤¡Ÿg˜ìƒÛ µ.`Yz‰(�ç…O€m½j?©ÛZdÕüèéžþ¯ÐS€›úTÀçþÔBß諭$Å¡‘k*�[ÕÅàþÿÞC€Pßù¼sY™å[µ§nK(Î –ðRw‡[ 6SëÎÓÆà‹E¡e�…!} ÉQ‰AöÖïÈ~ÝØo䉟htl«ÛÃ-½;_÷„oÙ*o o·enŒáš›F«Ÿ€úM·rõ-P?_äZOZrþ¿ûab›Õ³w”EÔ¤øî"®Ñ“Ž´Ë$šÒe¨yò[¡bCÝœŸ¢†ç’o~S&äó1_°¿´Y1>½ûZÍ“ â'Òx”E{¨€âi›]øyD(HýÃÔ-è‡@eÂ�úЗ ñä:0èæcÕa»"XKIˆkû(÷6ö+‰fÈŒPJò[`4‡GÓä·Å+‹TÄÝ·€þL‚k¦Ý"ì?ñãÈBPxþ�>>Iíñ‚cQ4/æøÉ«ÒÎŽbóvºŠÿyÇ+©}=ÂyføÄ—§Ÿn‚S j‰<Ï*ÿòþìF{d—_.Z×™‘èpn\·—bµVûÔ¯CÿÀØ�öûÁœÞÜ�·ƒ´ÝR ­†û}ØIU( ¤9ä5hqVcSû&ÇhK³… ZO؈rÎfî�"x•zjí¿H®Ñ…}2/>[‚Þ%)§ýV­Ù`Â. ¬0ÿɪ¾š€r u€^¡‘d© ?ø4�ýÄ:ËaÅÇLw…É/¶沃J~ȾªDC"ß6 ÚÏÊŠCš‡=UšBDºy˜ÌnCÍ�…¶9¯dkƧ6;M¬â Í%–ËãIÉ �HÈ“éíÑî`60Ð)ÜÄZ9G_ð»½Ñ¶‹‰V¸ÏÆþßÁ‘GáƒÍÛfÊ£…®#7T舛MÎãÊQnÐxÔµŠƒÏ |ÎWëÿ'Ûˆ<dãŠ�Èt,­WGw6¸U'¼Û£í Y޲‰â·<Ÿ[‘»RÀQG|$šå¾êåKÒxé„Ð(ó€{EŒJ'~ =¦ðäêAÆR1áõypÂÏ‘‰îï©]ka¾h¸nÿÄ <îú!^ÿƒW›Ý&ÀEÿôP]hçÔ�MÕŸú3ÿgYö”s¤Uhùr [RQ3|îzëml–dúôG½>ˆ8€QT‰#Sk<–=Íp±›9&n$Ë!hÿñß°}÷ª_ZTClV˳S8'¼Yk‹#i„†6¹z$˜³·dcÉ©,Àù=`˜LáÍ“O�þ�_‡;½ÁmùzòÈ;©Éý�ÜrþÄߢ�G—Þó3%‰¥t.ÏËÆÀ,{Ãk<Ù­øÙ†¹B;�ü –ËmoóÊ,*}�b‰°ty/áŸ8ïЂâ[8Š“y’>ÐDAÝ}”çÌŒ =7uƯPf-îCID‡F‰[ˆnÕÚP.�ø?¤.í`›lX5ð]5ó°3Hk¨\ãAQ‡ÈVCÿVüh†[&ÇåX�B̘F–ÓŽJ5‘?Ëš¯æe–}<ÛÏ/i¼‘œj.á‚{AŽ’*65XUîáõ¸#G­GMÄiâcµÿ¿© ¨³²jЉâÎHk…\›I˜*i¡�EýE Ç…Bš!lè/Qƒ’}M .™ŽïY. ’‡~¹�Ú]ÇžþœûˆÆh¼¯+­/ÁŒ¥™V 4ïcìY`ØU+;f;œ�œ$Xbì&�(-¢»>oÌ”³¿Þí=ĆbroŸ¬»/нSø�Ñaþ”5©¼Ï­­w¾‰ÿZ_ÿôÓÿþŸ{ÿý3µYä÷ |%ÿîkžáKû9¸"âš#C�g±°ËÈ!e©Ë¿‚j!Í®´`YÈ9â8�ßòH�V�­—ëpìÇØ^GÖŸSyÏqí�…1�}s¤±óÿn²3âÝ%É] ¬uMŽ{‡±XkäFC k!€ùÄ-oh¤ãú€�†