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 p 02�*‚‚>1‰B¢!!Šn| ´€jÆÿ÷Œ·öŽÕ?­þ2ô{û�¿ü¯áŸ©o¥ŸJüuýÄÿø£™Ô רÿ*0ù8òO0/I¾EþúïíÏø$OÊ?sþ©~€|þ5ý{òWúÿnšªþ]þ�ü?ã_Åßø¿Ýÿn}}~WþþæÐ?ñ�ç_é?¾ÿ�ÿÅþWÿÿÕ‡±?DÙÂú §:ä•ÏŸÏ6N͇¶i „sæø P)‘€³¬ö žÄž°¥0�Ísáyæèu`Ú„ `Ue:('uÊÁ"²^fÀ´±ßèdÞñ «nŽªW£ä�xÜ~Þ<¨)AÇ ¼^Qsm ¸[’štjÉ‘‹¡xU5Ëf_-×.bj…ÂÆ çø:Ë/^0ÃYÚ·Ò E å~’~‘Y0Ö–z,™ \Ù©—d:Ú<ôÓ©c„ɺF™-?h·#`†™a“K¢`ÈÅTÑ«Ï}B:e?àæ‚ªlöÏo 6–>`¡åí¾ÙŒ èÝ‚_•Rãªw¾þý+@»W›e«uwi£–2c–U "Þs2EÕ0zŒšùžÝ‡Ià+ðöÀœ¦ø¿|ùCD웈d¼aJ.˜¸¡u>ïv g°çÀ‘�C¬Kms³Ô`›/Z¿—vˆŠRƒPVj§�X4ú‘`ø~P¾î7ý%e´…Æ š‡èN‰¯ ]ŒÿúM¦#^ ˾Ȅ[oÑð¤ôçh”£‘è?Ü“ðÐú¸-HYÏ'QWüGyS–žMlQ)ûý½Û¾µ~+Tݘ`?Òs¼PÅÙM©aòëk*c¿Äí¸º5>A À™œb׷÷ï•á'^€lY½’`âÔz­•Ç �ì:±ƒµÕ/˜ìĵ.Œ>läGãê£ ”Á»Ö;|®Å¿#ÈðZ˜ìù£ÙêUøþµ´RñKaíÒÌI¸^+K L[(Ó•ü]­º`Âü·țH1Pˆ/ÄÖX÷'Å00 -oF¢^°:Šåãßà¡-_‰áã/ö\–4DžÐݯ¸\‡6º0 â#tòÚ9V�þ(tª'Б½p—öÄ“[ˆ5ɃœQTÈNðùâˆ?²ÁÉžÍßÎÄ„EðA2z~¡p ˜Œq¨üÆØ�kFý Q¿ÿ�¦$ùòð‘Óç!+ð*Pp¡W›™Î?ÊÓÖÂ*Ø&J(\gQó¿Ùw‚ëÊÛþˆÞ�«iGŠwö ’”]š}ç| N”õK .]€¿²ØÅù–B0O<Ê8Þ�  •‘ÇYQ_ô3„:6دÆb„}vJœ˜D~0äÚðÑ[!òEç~—™´]»Ä7�U¢îü«v›Â详¢©Xj Ù�®r³“Üsk_¤ÓÓÖê(×Ý_ýôAÏsý¼#�qHë/ÈëS¥Ó¯dô#b³zEw Ø2 ߬|Š¥ñQŒíŠÖ1˜Vvà¶0AeÆÁ)óë/y U-¿xJmá…c7Ï/ù Á/î‰ë±UÂm�#zotwG–ĹʂÓQis1‡‚•fõOä'Yž¦FÑÕ‰:_/´ûœ¨<Õ ÔƒfûÕsÿv™ ™SÆÔs™˜§§!x9­¦»::y5\ö3qí6ºÓ„\¶kç¯z›öó��Rã&oŒº’„}t «“F¾ƒ£™+wý›CH¢ßÎpk’˶J~ºØ$²s^u[þŒh–ñä°¯ßÜ¢Wä¼u^öm¨ß«”æ(¤L¯ÌÑðB+×eu¿šÇ�Eî±úïAXÌTù F´p“È,Ù‡Á¦ô½N….+Û‰[yÉ`Å®Ysí[¾öjõB§bÑ]þ�Oiè•5@²‡yÄ^®±aK–<Át×pqb�¼úä ³ŠÝ�ˆ™„jò30rû, —""juØ¢iœÂ^•|Ж0r@cýÃÑͱ„sÍKøÁvIcA¸9uSÚl“g|®€Œ¶Qu½³ÿ1ŸŒRáUÿå¾ ruqø˜5ÀC) �ÎXÚwB•8b|YÞYG†;C:¡¼‚¬?_uö9³\xa ¶K0¼© ÛBrÒËü­§6I#lå,ÿ¤_-w¼ˆ�g÷š0Þñ†-žß˜ó�ÝêJTñ†v�¬YÎ?Ç-,•wo²]þMvZŠ:“Ã=Inp^l]åCR1’ §¨±eñ&Áмë+nH\àÑ›ÿî‚;,h«‚FŽº‰>ÿ¾ùëÍ›7"ÚžOÿ·×§Ô´AVþ¸‰1#N:ùD+@`xºFT60I{¯þŒçA>ò×Núk�ÈÔbѲ>uõÜmq¶Uä�RP�½;¿d/C{÷ßÝÝi�›…v2�UuÌn¿ãɰԨ�±Ì?�œi©„¾;±2X_négRýx Æ”½~�[ U�æƒÓ—ÈŠŒû”A빉ÖÉ\\k‚'CD0Ã""‰\Yua7Üó¤1G`iàTÔaÿ\ü\bFmÁ‡ãÚØ¡gd÷6zœýU3Ëc¹”è4Ôt¡²rñ´GÕI�¦×31V“oy9 i]oH˜�BЃl÷™]Xr¦Ý]›_×–¦Å Þ0–­Ã‹Æó‘ E�m¤DAfb€žyì©$™Ð¬ìF{€Âôï^À€‘&ò�5Œp0®h9“&Ë–yNäâç˜QµÞy”‡#(]'žcM¨�4 Ak$çZñ;'”é9 #ü�"¶c†þÏß¹‡Í”èÎÑ�K1ÐI²ýÓq?‰PÖæ%�ÍTÒš&ŽæQýYxÑ–ëÉJpþ»ÙËoà