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']
RIFFWEBPVP8X ��ALPHŠ�ãl›"G¥_¥R©Ô,™Ý*Ó€™)b†°#†�ùŽÑb5'°6b 1b&3ÛÕmüw7›ˆ˜ò·UÖ3:yã�4$ÂEѪÐï#$wî¶Š Q¡ƒ#L_@éû#d7ºÏ•ÿýݽîsÈ7GoÚ‚å#”rØÂé¨l,!}@üV¦57°:j `…{hu2Ðð²#´û„NTà5$¨® ¯CCÿñaÿ…ýVÙZV…{hu[©Ÿh5XÉûX}MÔ��“XÝŽ°à2õ3N{-Q†…'n§�)h¨#Æ·ŽÑÛBÓÅ5„TùÏñùÜ”eP¢cŽ˜äÂul^4øL¡ÂcÒ>bòûVn@EÔ ¨¡|©…³wîì!¸³ñ|©"= ¢ ˆ50#ÂLNMÏÌ/«A°¢03=Õ§" ˆ]`†ŒQ¾ÔÔtS}‰qÒ`@ìåcªÄdU\„K0 ç`Âá‘(J�C0 ä(çGÎ(�‹<ÉGVP8 h p=�*‚‚>1‰C¢!!™ÝÐ ±g±7ü€Ûêëÿ”¾×·ì|ÿ$1?è¾3þÝýK÷[û§¿ïõÞÄþà=À?S?Çþ^{Ç@ö�æùßö�õ×=àÿ®þº{‘ýsöþcý¬ö“Øösÿÿ­7ìÿÁçíWìß¹Çöoù_Ÿú ¿†þÿqü€ìﯺš>µý§òCä—܆¼¿ þKþ òOògèYíö“è?åÿ(üâÿ€ôCêï°ñ_æßÞ?§~ÝÿQùo¿›Ì}€?”7ÿý»÷gü?Ƈú?æ.}ÇþqýïþWøo€äŸÑ?ÔÿsýÝÿÿÿê—ØŸìï±Ïì7ÿò¦Ò •„µµ®+ŠŽJºa˜Óœ¶�ƒ‡l=¬»Æ¬!Ѐ!hy¯5Å?’‘<à ³#ø=ú$´D,L„MDbB…asøÔá‹‚àuÎO> äï¯+ÇÅRgz/<‡�çˆîœµ^ OF:)‰s°á9Âuˆ -³ÙRΓÅÊ›mk¯%ôïÄÒô)=Œ,)`Ï_:äŒY*n‘\£`Øê÷àAjÂyK0xf4û]˜J†¥ Œo#GåÿdÔƒ.5•ÍIƒ½Ë'Ä©HþÐ@Xã[¿¦îÀŒW¢ˆd›OùšDšáw×½m”Â5ÊÜ-w=r-ø3št ñÀ‰Ç'Y—ÖøFéÃåM;ÒUôð�¬0Óøuì ³¹ÖgádnqiñÍ;i…ÿò„Êãfªï× ÎÕ­_+R¥µ^�'ù†a“CÕ5å®ñžFÊJà+oߟNÿúõœ§t#ÿûaÙÄëµ¶ˆ÷\Ü^/X¹nøôpE:¼xÙØWˆó€ðZa¡¢Eó’ÿÿûø�qÿ �cP?¾ÿÙÚŸå‹4¨O7ø�rÏ·–�õïãx0Æ‚" ¡RÓ+e•ßÞqß[x+d—û¯¾\ š›K­!ù ŸcÈx�SÀÎöÏn5ÄÔSø V^ìGÁ¡­’ù<[H©Á*s�ÕýKXW/_ƒÓÍœ ·�Þ»Rý>5}rê£Ï+%ŸZ¦••ë…‰5>;è7çtV›1zЬ,WG—Ž#Òž6��Tê'ØwÉ:KŒoPcø#}0éÝPfªoIo”Š ?žüQ¥÷Á�NWil¿ ½„à.v$j}ºõÎöJ<éí£ÝeÎ*·’âˆXÚKÑ¥4¯ðùb—È…w<úÿ¸û|¾,�Y=âù¿Ì©]º·Õ°,M‡×§…zØ[Ç„¢-1âìÿkÁÜø¶£TÔjâ?Eó̸Km5dT«Ÿ4ÈÉÆç¾¢h”�e½~-‚š­{$å£U÷NŒjÉûG�1ï-;<Dzƒ�™ñ¹ÚfÌî„UUGÉ)ÒI@±ðbÖÀ°ç“ê(R¿ Z™ÕtïìpYÞ™B- )‘Jq¬ÞÄ'ǶRÎ}Ö,�§œƒøG²Ó( {³Ìa)aœ½øgÑ)ÁOæ¼LïÝ X­Ñ¯·(„îÉþçïwï„z穽-Œ¬ÀÌ`3Ž«±¦ßvØ.ú4ŸÒù ›$¿=�Ia¬×=¢•9Ѧïѱ”»¹^°§`CÞhªÐº÷Ú³åÁÕGrOêM'¶ ‚Š„ª“`zmiˆ=xÆåÓvÒ Цž8¯ ¥­Ö�eeÛå‘%RÆŒ‚àñ˸Îmü{ØŽ©XŸ&ff\}6¡ë%ç)ë€ç¼å4ìè1Ìå¸Gêç‡DHE~¶v�7IÕd-V,{ÎU£^W!v#3g,¹­ …œì¡‹ícÞ_çH«)v ß!¼­ƒGî·Ï šS�ÏÀ¨ üñ_¬ŠVg†­ ³¶ŒÎ.«]Àœ|,01={šõçx„ÏØÙu@«\òSâù¥Ô2(\P¯Ê̯” ÌŠö|a¿nøÑ¿?}¨àø¹Š+ä%aÑ÷~hû‡ô·Ã¸_\»llAÇ¢ lE¥�þ3­=Ò–÷9Å€3ä ix­Ž 8� Pú7ì\í¨öðdSÞ‚ÓFt™ùH•ÓR…àåÚoš'8¸æ�uÊxTHq2Æ“RÃFäÕ G‚vÿjÂ�eæí#ÇA°Ã(Oñõ´£xá¹�àP4äB ý:Ûþ{.†qaBLz6`-ˆð<~À_‘ò\ãaGñËÖÙ†ÊC$¨£"§âDxT1¤Ž©°ò£€— U¨ÿÏýþÃ:ã¶C|I¤ðݸGUiÂtX= Ñ·>ÀMþæ½�£ºLf²)µ�[b`‰Û6yŒ‹2‚n9›„¹>èRKƒX‰¾ë>û:º¡“q(¶[6*¹?ê ˜mÉŒÛå�|©§g6ú€õÀë¢ñrû”Ô2Ä\�éÁ™Ÿë�b™”¬L½�«Ùsó¥ÞÀ*ÐhÇ»í%yñÎüK.\TŽ�è\PÚêÙ G‹5ÅÄ´SbŠ—ô×j ^‰ËÂ�SR'>ž¨–�ß'5C|²aËð~“ËŸÏÿ!ŒU.å‰J¹ɪ:0nKõ½"ÁX¡?Tw |frqîY¥©uÈ}!gÎáv:žoGP #�X?Wžd:Ñ¡‡ýÆúbDü:<,QÙ?€ó�è�ûªæÇ¿ý©öe7'IýŸ¹{@÷$²×$lmÅm#èCcKéC làЩ"¥P|Žø&LEªxl‰¾øåÅ7?E&'��–… Si€XZŠ#ˆ7áý|õWùV‰gb?(Þ³�wúkzv†ææ6ÈÙ¢°¼†2SGâq]®Æ.5'FôŸJÌ?©j�&ÌÛ¥£T Õ|?­Ÿ�<±˜óQµÔOû•Gù¶‘rá»ã1^™´2]ƒø9sJpM Ü—ß¾®¢²_ÿÍ ìVmˆòèàdã†Vùo/Xsp 5Çu ¦èáóÚœ7)|œù)h*¾né)9=ƒ1uÅ—”0?¡Ó;n *ß™¶&©;Á}(s¢õÖñ0’jjõJôwÀ¬±'‚®X†tÁRùã¬êÓ5ý‘^öñŸ.0r^¦}Ff•9zP4=�ˆ ßj+ë…y£6ŸïÃcA©˜ušTå'J‰4GõÆ%Gµ¾ú‹ï©æâÝ]©mµCª!‰\’-Ý´ŽAW rê à–4Ò|ì[ü�Ÿsp±x~€™ÝõÑ7ëÌò4blnTI±‘þõƒÓSé1H¾ŽËƒ®t„²2Ep¡oý þÀdHÂ%2~-@�Êò`|„ߣÔzjƒ…4*"@\ƱBOC±uÕ6µ¨{Šâ–