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']
RIFF† WEBPVP8X ��ALPH‘�ëZ›"9¥_¥R©Ôhµ†¡5<ËŒ¥�˜!dò03?�åȱCË1;fˆ˜™™—š ÿÊÙDÄ�e&Ä:Wî9ðÏß³¾?C�‚ΓΡøóë¥êˆ~lÕ u´>�Cöý °#ßΡû}†ïþŸ«¬žCù·eßqú9Î!}œ‚¸îcõ2d–øˆÕ\ 5&¿£5ÌÀ€wþDk„›tã5Á©�ÀL,†ÞTÁÿ‚ՉטYÓW´Íï±ú.]&ê5¬†\Ôȳ«#ª ×R¯qúÚêSŒ˜؈ÓÑ€&` ¡®�~£ÛE3¡éWð¹/…#æ ¥JNcs½)Q9ÊÕX.µã9&¯etŸ Ä¨â‹er5kÏ>}ûÁ·ÏÏ�™œîS˜`Š/–**Ê•ÔIÙò�—²¡¬¨¨(£û\ ˆU`ŠÒ3¹$‹2‰ˆ¦0 Ö�r—Šé‰DêߟHÄB>�`@ì0áòhšCMu F�8@8rF�8 x’ÿŽVP8 Î 02�*‚‚>1‰C¢!¡mTx ²€j¼°n+—ôÍ›ýW¨ÿ0²?§>ìÞ„?Çz€~»zƦöý£öòáýÀø<þÿÿg÷ÚKÔÿþÈ={åxÖŸR'Ç~;õ—íÿ“¿×ÿp½˜þD\ ¿»ø²Â$—‹ „ *ËÓ m׿¶è£G# .È¡ï\òuˆµP¨6ºúàŒG�Q ïÌC%’ä¥nºj|»ÿ\¹U»$Ì…lD¶Ý êÜEDÇ=^êÁ‚tØËDRd'üZ°'DL¦èþÿóËÔÛ$]YÈÔc­ÐBÝKªÕoÿõQ?8-ëùìÎ!¼wéG*¥ãÍS?"j�Ôü!ç{$®Àâ'ÐÁ€ vâ:Jå)­?gÇáÅÂãƒ"~¸Mï¦PúAŸLQFþYÕQÔsWÑ_ḗ½ŸYNeÉ—% 0AX…ý’cÂ{U)2 clÿèÛ›ó¹Ä,÷S+­`2{%Éq"—X %©âÉôªƒôµ¹­ÄÓÛ*çø¯ÿåiüöì36}ƒûㆡ”ÑÑAp[ÙÆÍùÀºÑËAiâšM¶þB�þwþ"}ÄÁÖí*3΋ââSÅÏ»VœOúœõ• sX›‰¦0Òw< Aw¨¤�ÛbÔ~-ˆ¾£˜]¢Èà—ÅgÕâM5ƒ,ŒÌûá4ºÑN™³2SkPFÒ�¡Á 3iöFãEë(›†Óßà¯êˆ“ïÚgEÿhœ®ÈNœøí�Ž% _ÃþX«ªÉÚÜÅ‹d*—¦&yª)¡ÚÓj–g5óɤ³ƒ-HDP;‹ÎoNÈÀÁ‚¿ž¨‘]ExŽÀ7K»°¦»OâK¡Bö $<´ã×ý ²îÕIRÅ™’%Œ@þ+û ™pãï›ýÈG¥ãN”¹Ì~†?ùÙ ó2>HJ`«Gvy‘–|]õ(ú"l ­*ÝsÕbû!�uëùÆêûº/Ž*ëÓ_�ª˜Þ€\•J`–êUÐæ5Ö{¨Ï õÍl †ªeSæ"“¼m Yt�ÑéÛàø™/€ùêM¾{¦ôt—¼mjòö¯ÝòwnÄW„Ä 3�mëg•H@£,ª£¥®J‹WåKk&4ÖGÛE°¡—D»ùìòÌp#/ß¹õ:­C‡7‹”²{H¢ÚlQc}Ö±õœ¾�¸ùÑ3è²þ-°Ûâ×�ùù†_/nÿ3ßiW}÷•öÅ¡5ŤB•-ó’Ã+Fvu#cÞì�BC¯~WC¸Jl1aV& Ê�\Ò-ÕôÐ@L"÷_d¾ãïœÂ´ÇCpùÜí¤ðîT§N­i‚‹ª ~ÝÔ ¶®á§uŠØïý"Ö•½¾}™¼ sÀ*Žb1î‹ÖURø^C«Öh‹tE=Ù·LÛÉ3̰ˆç�Î h+ü‘áæR�zŸ¯¢2æ’-žç™ôk¶Åo‚ÊÜf¡,QQÜŒ­A–/ÿ#v‘Xb›!ÞØºû:š ë1¼ÑB  ;x$‰Ë‚ ¤èA�»]*Xx=ç“™¨J8ðäsø.6Kß‚ID5RX»¥#í^™º°ŽX*÷°cü°ƒÜ´—ç÷µÞÐÇÞÉæ ò%ucíbMñçécË·¿í>*÷éDòÝ•3'e/U°÷ÂOºÇ«=õ¥<°¡ì�W"¨•P$Ȧ:qIL`ùµ«§æS)ðóãÌZE¢€ÿ]r:ß|\¶´â@ozVw«ŸZuLrL–`çæ}®ó `ühþ¨.Úp¤¶Å÷¥@Bƒ“lÉò4¸o‡%ÙáûfP†ª€¦ù6ˆë*9ó²-Ï“o­Nr”ÿpè í×q¨EËt× É·ÿð²§€ãk3ïË$DxÞ#¿ð}”@Ò©8•—ŸÜ¼”rA¡Ì˜]iÙ�8Û¿’o-³Á’g±ûéöß/%pÌYûùˡ¡˜zÒ³JñG&6˜CêgúY†¬Ë6H¨oÅŸ°�M7ÏF ÄŒþ,œdZ^²�—š`d…ó+zþVK�ð ! Ÿ�"ÙŠ“eªgã[QQæ‹Â� Ño6­­¾æ“õ»DM«È&�–ñà^í´>üá{J>‰5®"åÐ3Ť§¤éÛÃûØn‰µ�Ž6~ÒÎ÷óÇS@X±ªíÇZZÿZ�v<"éS,ü˜ùêhÜd“¬<ßH„úh¬VUBÄî.¬Ç@ ûy#*CÙ°¿ÎA�Xe1|ìKW.«usù�ãŃˆ�¾›ý]‹µOòµna ‚ï‡ïQúg„,ŸZØÞõGöOÄÒ:¥6Úk~Tøô]‘ÆL+Ú Ø<HüžîM(Ãì­¸·H�ä~Õä ›Â tͱù6R?|ífåñZOµõÅn¿+Á§úºû_hyä¦v3a¾ŸèÅqýWôïëVk¡oGqÒ�®RP…Û‡#ï²E�d£7A@«LJéÖÔ¸CR¬v F÷¢³¨p‡†Ø¾B­  Þkå4†Æ1…ðòüXê<ãÈÖ½ l}îwB¨Œ¿2Ä—Z;X�‰7�ðÑ{™@ê\DûB÷DQtr/³\„çܸú…û# ¬ƒ"ÿ)Ùߎ¶¯ÑçÛˆa:à