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/jpegoptim" 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 (39) "Command "/usr/bin/jpegoptim" 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 "B�*‚‚>1‰C¢!¡kM€ ´€ CúmòQï­ þ\ò3ÖÞfýjýß®î<-ù)¨G´8 mW ¿|¿çx�ëà�`Ö?÷>±Ëñðüúß`ŸÒ~­_ÝíÿkèÛê?Ùÿ�×/ù¾µþÐiý™e•§�£ÃßæÐñÖR×§‘Ó”!pš™U9þ}{NûTEAUq è —7ã4uZ&g¾3Øi�¯¹.¨lµrÓú³i½Ã§uŒVß§•¤bBÅ€hc4¶B­²ÕÞsvé„‘Ô‘ØÉ#(O…Ä/‰ ë"‰…é£ÔÇXUyN²Œûaw¸lC pöÒ±#è½Xß‘f:ܳVO‰p#Î�¼C¸²z<®d„Ö'‰âOh¼‰^ô< §H0mÒ(eÆf±:cn¶o™Ñìy·6 铳7­Qð.tÖ¸æf•^�®gLg9h*Кƒ£¥Iø¾§CÙ†ZÕ=Z–R“9súL{ØFß? ¬îÂî]5$ìb±ÚÐ"±þÚ)Ò¢^¦_oŠÊë#ÅTWAïµe}Çjj8¾þÆ{^ð®&¦hˆ�WvÚò”á>¦8Pé vœø¨#öêC »îÔ}IÚ‚°öjPÉò->Ùyð^j#œõº³ò¬ˆ¡l¥lìŒÝÑ8Lû@x ›³ïƒ¿ç‡]Æ×Q$îUjåÚ”m[éñÚrž´LºòŽ®œ±CÄÜL#�*�?sÑ®‘dúe;0–sænáb�j³Ù÷iÇÈXetœ´Þl>t¿ˆH6 ¨œá]t¨Ô³¯jšÇ¤¨±˜¯áÛdÉ[‡ÓsOÇ>wÇ«Â=ÙX˜ØbûgÇ0Š{‹Qæ'¾°þ¼!ïTZ>Y–2%²„á[m1©©³é™+õv^úØ[ƒÎL”‹‘ð·æŠü_©{1m³-à*Æy³qÀŸÊÙÜ<{¥�áŒì©ƒ®8¹°÷Cý @Rçyz.'rÓÒüŶϱîx$ ®Öè§×Y8¯|¢»K6qh©ÉûB.I¼Ž4 Ó»‡çàtÁýˆ”å ±ÀØäS¸k¢‰Ù¸¨ âÞlßO2l^îÓfx•”ŽÏþ\ÆÿBבM6Z¤JÀ>*†G;+7²‡…g INõœùÇ¢í£¿Ef•¸ Û–Ro‹!{VJ=Ú�Áº„[Òÿ<—`§Û35š/ÊXéEÞžü�ubiïå+×ê’˜~ëëñ�Eä�`j"Ç×€šG0ä=ÜX|ð±²? IWœ_.Sïç`C]›…Gÿnsnq’£íÓW‹zf¿òk¦çÿ÷Gÿ{Ò‘"OŠ›D“´ˆ›åµQ‹VŠMÛžfÉÂð™÷Þ1Ûã�BÿêƒÞ$w²�‰Lq)×=Éîÿ¿H¢ú© (ßMvÄ%B&{l0R¨ÄkÆno€â‘\Ë{jÑ ÎÁ¨ak³SVÿ÷%D)ö]#Ó%ÊÙŒküGÿ•ÈÂÑq¹œ‹Žxƒ¸‡ ..�ƒÝ¿ ‡Ž¾¶ZSW�_Õ.¸|�Ì·�o®“j÷M6W¼u3p•å‹‘uˆ$h3HMlß²+þ¯<¤w|Íì~•âÏ>ûÒ‰Kô‹�…ÛûK(ÇÉVløwÜaC¤ÀˆñnW~×&ÂÝ]ñÏ7�àÿo°¸.ù�Øn¡°Ot¸ˆjŸ¾<Ò>Tp~íÝt¤ôëV÷¼gˆ.œ‘#»ØË÷2èÒr"¯Õ¾‚Û€âÛöF¬J¾e÷Dß]ISt†XXf5�¶4y8b÷ìÀp!ÄÊØs0_±ü¬èðxÚ1€å1, ꕦÉÜbãSœÕ¼`Œ<ªO·È¿£Œf¯ ûRÅ,T…Í•Ñ!Ñ*Zq•=¯9`K˜3‹Ü+‘CÀºñ=gOOÒ “õÁ¦+ó-›Š¬hYíU ½6co&¶¥/ö`YZ&Ö‹Ôd‚8¹y0)iÕ‹Ó¶ÏUÔ$Ä™Uc[Ã�Ý›ùÿ;1µœ:Lî—_¥'p Ü`ê}>RÑ:3Y¡š¨6ï;8¯'€í‘ÿy•ê-üÝöyOMñÝuå[±Ï˜2ït7. ¥õp;DA©nÊ£ÕüÐc±'¼ˆY��[2‰9½@Ôkû`ÒNpØ„ÕkM=­†g4®¯¬Q”;ùÁýYËZähG"ˆÙÚâ ‚¥&ø$S˜óTèbüòý4ŸÚ ÆÓ.Mwšo6oW€ÎHÆšýòÊ?þJqŒ¢ÃÃ�ãÙûì$È"=J ¨ÝøvÞo²�ž•qÁê@Ms·¯±øÿlKäi6Òº—¤vKb"rúY亭ÏaÛÁЧƒ¥ú·ãk*/2ùaÈ eDÕ!`"¡Iì�>4ã7:¸<ÄlXÁúwA�š‡À*;Ãæ¥? Ñsi6�ÒÌNÌ Ê nò¤:;/Ç�+mñ‚¶{1pàA¾Å8”…t;ÈÕ ŸçÛb”­‚�Àÿ·ŽRw‘àr…ÒúR@ЀÛÙÓvíoÑ8¼ú®ØxKðdòw¹�§W‚�ªË«‰\<Ôø~uœº×iš¹s¨ªŸ¦¸34W'^ÃkÞçÕ|ÒªÜëf±D.Ö‘^ Cf 6m+L£ÉÚ¨QÀëÀúÃmCƵ@�ºb·ÙY •éX=Ç+Ï5I&1`Ž ²‰µóC7cŽ,0HB\xpOK% Á®˜ˆV)ˆI»SËšÀB‘:>”–†‹æ£¼zr¿ýOpTí¯ˆûGßñ1y† `Eºì¸óK)c0Ò’»{K›`_pÐcW«Rb?£×0»CKž. vîËþs-ó?ØË´Œûv%"Yy:k® ¼Å¾°#ø‘Šš…â¯iü§@}ð„/MÚÿþv>û÷×gÄÆ.ñ¥�Eðì"ì¡H&~‡xf%Ýü‰4‘_""±œÐ…j$žccE8À;!Þýg 6­K#(&Se»PSW®HÐj‚©¦Ib)¶�'6�� eä4—ýé¶üærKüšå54½ßV×¹óúÔk—@Ï]Mcþ—íð¬õ(³ÕF¢åÙÀz†¥LÇ î_É�xèöžŸsÏx]H