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"!!È®„ ´€ Fÿ¤ý¡ð—˼}½ä‰Öeÿ4ü!úïþÛûYàì_õûàô¯ï^msçˆë'ü?aßxÎzG°GèŸú~¬ß÷yÚúŸÿgùï�?çÿÚ¿ìvIý£ö�ý¥>>Y¶ÿ÷¯CkÚð3<Üï;ýF(BwLÞa¶²~™éñkç"’¶Á£öqUØRÎ ýÿÃdiÌñžÕ$�6*óæÿwC{‘iŸ©”…?-ò�ŠT=¿îGœ1gÛ-pîúi+ányÒÝHÇ‘‘IÀ_¦Š K°Þ@]g½Ÿ¯†˜ÛlÉï••Twjç…“ïБ;ÂäkÃ$Ê “ivO>{z|S-w_¹Ne[21CÊ%‘Ðv 7úæ',AôÁW%ª«£êsÒõ=@áu]õ–EQÌNüVÜý†ê2˜y¼’3j’yMÿzTo�[� �×M ì,2TRvG¡£èöæéª(WÚ;m_�'ŽzlÚz£í^þ¹$n†PŸUŽe|´ŠªMÝEÁlpÖ,!ªQƒ2%],ãfÿ 1ÀÁf‹)÷>Iz™\¼;ø9 ±Ü.šl0ý»¨,Õ¿Mëô}±Çˆxb€yn…¦©åcàô——ã9ñYí­zXºòBˆŒÌ-›vx:iú¼ Óù&ßô^°þêw=}ƒ'ȰÐÄã0¢p°ðÅ�)óŒYð�k([.ìÿÙuî¼QSÏL·Û0eþ´¥)úfÂVX¯¸N½"cѺt,îïˆD5<œÜ¥…>FÉ øÑ®…s՛ނsz½$@ -hÅËéþŽ%ð½�‡­Dœ:á?2Œ$¯" ~â&€0uà®eæî-œý’-V?ÝÛwy—áï΃­õ×<Jüu÷ �md=>ë6AßãsíLW1'…ªê†]BâqTß1‹ª<ö,­ᙳ¡M9!¬Z†CuR(ìÊtÙ´% ÐCwéß…ëNÙG�Rý€³4å^ õqd ì i€AvRL©£ÿWÆPwâ!4��|�÷—Kò™"r&À‚9³A“FÚ%\hòî�qÌ4 µÙö•1ó•hqÕ¼ˆ‚bau!WD¬ª˜(¥v·"ÐÏ×ÜàÇ”ÌÏ:&óP\ü2m|€†¯úE«žøíSÄß�TÀ²2h”Èy9/GNQ@‚qp«ÍèúY¶ÌAAË}§ò4ªîvmAãPùï*†Ç:ŒÏÆ@LÅíÅ“™®•~*zž¦Ÿ>!÷ÇO¥æD‚Ö §ña”× ¨!Ó•Vp['ëDÉÄE~³¯IeJÉ¿ª;¤ÛÒG€ÞoQVj¸³Õýëà§È”‘ÄçOJV•\ÿ{ô·>¡;EyœDXOÅ„ê«AU|‡�ëžÆ`xxÞUDôŒ› k¥xW?—¡@I\�d ²ð3‰˜©þsšÇÆ#Mßþw°@R…¹;jèšäî~’À¸Zd‘Fž[‡‚®(Û¼{ãYÀWÖÛ ;GÛ‹g:xXÇIˆ~+DÓÒk£†1-jžGÄpR„í¶ùGºÃW7øï^ü¾rŠ—8Oâµ›mîFÞ®÷‹0Éüe‹¢—ùi‚Ù§w¾�™zÙÕáK•˜ôý‡Ó^|¢æ Hd0ö‡4qök$¿ÀîP^ Ñ(ç ªª§ÖghÕÖý�4/5„�‡ÿM+O¶9VæúØ<éïÐЮj3¸%…œ…à4(•>ëÎÛ¬Î�ßqB~¾PàúˆÅÑÓ'Ú�W©¤Ë[s ØôíÉ"OµñqÝK‰Ðz¼ô>ܹ 8D_¦5ª- F””¾·Ïx‹É¿‹ÒiÊpSmáã¹p+»<'ÝNF$ùDÁåv4Òw��ì§è$±”†yr‹¶ŸÑÿåS©Ü¥rú\©4�"Í�Þñç šÄŽ¡$soˆO|™4éç²*dEæ¼ê†}EŒìO÷:÷§¦ÕȤñhá&OêçZE= Ÿ¾ Ö‹n¾A×›ãÜYùz‰�*v£=b>q-Êž…1[Âäʥˌkcáí‘%eÒ.44ü ø“©ÐƒÇ·>ǨÄ"ÐUœ!Œ/»³·â6%laS{¾ß݃ ´¾Seó�&[œp‡ò¥æ™¾d¹¡¾ŠˆQ’znñ£Mí øõ/n[’ejÿ˜Yd)馗_'ÿ Ã@Z=@æJo¼!zªºùKg¥sAn(Øâ0�a’M&ä¿Ld™iP9íOâó ëŒ�å­´{{ß³=^w÷Ïï{c¯üYÛmâY³ý8c-Áü!K5]°qORl0¬øÊñ²[é;7š¤ÒúÛÂnάʻƒË¡*Œ4óÂI›_§]fÇMèÐŒ¤*°»¢hNìaAŠx#èC݆õ4œÕÐ>³E±ÆCX5>肋ÿ-~'fã“õÊ�ã²’âö;Õ{¿ r2ò , *xò=hCsýhÅÄ)d÷êjêJRîñ+½Þœ³qs°þàƒ~J ›,WJñjK™¼›l𷨲n NY¡5ª/¥]ÚãÉ|¶ …p-[©ØµÖ]Ì.º´Æí&ð¹ÍQy”ºÐ³/©hÎãArƒ¨zÍš-5GlÇA7›:YÙëòKhË=^;y¤u¯3¤Äàl•u ðÁÓ§p½Ó§K¯˜=³s¾,�6†¯[¸TõB]ê©ÿYQAçÀbHÀžò°LDáWG€^"D.¡:d–ŠZà)�lGÀñA;¦©ÏiÞá9ƒ‹lî†NŠ¸ê€°’[1y¼êBGjmÒöý¡Ó�q¦0 äüÇÖ˵E�Ïøñçþï†ì —@Gf _&…ÞNýIËÃ�2•Œ?3 uŸ¿€µ{ª#qmImmO‘SôF�2kàíNc&�1JŸ,¨Ÿ9–qÏS #¨Ÿëæý=¡µ([¨îZ�L÷)£ ’£ª†Ü‰§�øH)¾ï33^Vá;C´Â-7ì¼â:¾Ûࣀ¥·©r2¤ÆÁ!z–š¦;TSÿ°`éRöoóA±ù#ëÎÍ-e‹™”LclY:›ëØÑ·Mµ%g>FF¡}.Óÿ^;KÜÿ‚¨©íy9l�ÁéCvêKR¤d(C¬Û`„máØâ;3}ó¿h/q˜Óé¬#¨–èÖ£Z½êÜ@QطƇøÄ…Ó½­».Ùõ6Xà:Ž¥t_ËBçþþWŠÿ x÷ÔÓ¦/d/ë®ütc3E.%›eÕzQdâ)RÀù—¨ÞTfa¾xêÜõätßÃ_Üd`vèúO½.Oý”(¢øyï¢â¿Ä‚Ždv&"ö…ÉÕ€l‡{z(DO ”õß^ø¾ó_áĪb÷¦UÚ)íIòB!�ô&ro�„Ø·YuE®Ð÷fóâýDUïUÍàAë/.Íì¯Ã�Ml[Œ~ÍZWîHJn½ŸT,ÉŠبæ ¨ø8àΛ^ŸÇ.×v“˜6 ä dúúÀ¶ÙGÓÄ+/Ùɺ(IÿëêAí�Ô|$ùý,éì#c�[²Ùü ˆ¤ï´&Ç~6lk&ÉÁ VäÏR±æŠ ��Ñ�ŨÉh}¹�VP8�«,ÄCø®‹¦¶ÿ Á(&GñœþÀ1�¯9Ù Ì›`WFåz3�†Pr–Ö遼·ÀúøO\X4*ÂM+?ˆÐ7×ã7¤çv€ÆB•¨ç�üdÄKÚ¹ç?¿°ýQÒï¼n¤s¯Iš`íÐFǰ„ƒ��EÔ™ü†VQ�©÷ V#'ñù.qÿôOÍÿKŒ bÏ_¶íóû»à.:›ïu¢AΦ£»;r­o1;&0 ‰£ç¿ô<ûÝÊ0’˜†\x×þÊ\Še¸ÅN5†e+ªñJàènÉJmЇޑK@/J¥þBÎ0ÐçöO =hû¦Úñ+=[ÓY¶9F*‰X᤹ð ð“²Kz0