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”�Älÿ!I¿t*�ÊØ6Ö¶u²m{�¶mÛ:Ù¶5¶mtjÕ©T~·Ù®ý~ëM"bà”nÝ�“QRV�pg÷øF&vì:lÿ aÍ+®M 01´6MC[*�zJL¸lWÐæZLOìf[Pß[uÈ«óuWæÉ´�þŒ">ð"LZ©¡˜iµÈ’÷£°mˆ2ŸF�•6$™¶¢Ð%�TÅÂ('zê}FÑ/�c—€â�§f°À‡–0‹p7-»Ñ�ŸÃ( °�R² j ¢ÃM1 ®§c06A"ã‚q¾6¢Â­È88�Šfš�nP1 œ&‹ÖåìÛfIñK:®!ÁÍÄš‡$Ê­ˆ¦ÙBÕRiZ$T�¦ín{XñlN#‰9DTc†ÊÜ!bÉX™=Ĩvü¡u·Ìâ37þ0«XÖ‚?, ᣜøÃk8õ Ä�?<ý`­Å^úPƒøÃµ? J8üàðÀ;‰¿<™?‹_�øS X,üåÙñ÷Aâï8ð7’?%Œ¿$3k�=-Œ¿;ÀžµLìU{s€½{Y c-•…‚ §[e­@ßy ”5�Í'­ÔE…�þmßÑÿ��Ôƒv@c=ãdu*;¥l‰Èìk5f²:X<-fc„Hí-RÊ� {gwpr;ˆ4ˆ®%R7ªì,Qez&N�½Dœƒt5Q…iC—]‚()]0^”é@¸]ž9N”AOMm2Ð~Z„qúyõͽªÚý�ªô±ô[éQÑ x yg»˜ZÀ¥¼¤Ê6Êf`4ääçïûz6 ˜õX›R³Œí~Àq­©‡E%$D=9>»ügVP8 ÚP$�*‚‚>1‰C"!!ˆµ„  ‡ _~€g€-Ú�·vÁqÎïùGí?q~Ûø3™Øüuú¯¶o�ßà=”y„~”˜þÑøÙÜÛÌGëìw¼w¢Ï@_ê_Ù=fÿÃûz~Êú]~É|~ÐþÐ|þ®Ì»# Û»àXç‰}3x°ôWÏçÔžÁ¿É¦ï¥œÂ^¢´8í¤óªîÅ=#åcÂñWb¿%qd=³Ì…±ªnvs�2›Ý õð‰Ò¶c¾Ü� 9tW,ß†Ž 6š-ϦuèÆ‘Â¹Hõju‰nèp'!—‡¸ˆ8÷ï�p‹Ü ˜âÚ¢ebÙ‹ìŠßÏ2_æZ ûÒ‘©¼R�!ò{ i„úÑ"Ýž†’V�ìMÍ´››iþò.͹€?ÿü2}¶е˜›&?à hµžisÐÏYøÈ#â}Ù}ë2ªä<ú/âu‡M|ck®,”qä–‘k<ÀemÇšP™Ú�üFÿÿèsܦ¬ ”Û/УŒIȇQXo8ïÆ}ù·‰fÛ®éï�„Kã0¾+ýõG“T¾cñõé/d¹ÕÐ;–ì±�%O§£½n yµõÒvN£\4}òvljh‹sâú„:[évà‰ßÞÐ ñ#µN´ ”ÔÚ˜‹;[·H'4SŸ�kÆÓ÷ÿ.7ã²(guðOel»Hÿñ"¥wgt1sIÉ<묳hÖYN–¼CrðÄjšÛuy_ß³YlÅ[Ïçv ªÄâuŒ¯ìQAØX4Ë®ÿN:J4GšÚ8€æ ü+ —WûR‹GRšøt.â­Êì.B^ˆžÂû‡¨§°X÷$’tïg B§n•mœú¾}�,½9ÿÔ9MhR„‰æ°3K ëj�D¥Âÿ¨ ÝãûˆøEš>‘a%ÒÚkÚØ©¿Ô»}H§ñǤŒÍ[ÃFŒïM¤ïòû³!LËIÀÈú/f‡aK‹øxÀ¢JÞ5¸¡3®€eÿÿö" þt^ë°*Y¨Âý+asûÿ"½“ßcô� á‚ÈO¿â÷ÿ�ûmPÊ…ˆNü„ŸX"²Å„¸²ªýù-ü€ŠóÿŸ™j= y_cÞá¶ÁF—d–1¶=Ûi¿QØiþÓ—m㨞 'h$ÎhaŒ ð3d¾NzϽ8þT%íð̽U *&H ³Äsµ˜£åvN·ð¿_™\pÚ{¼è•ä„4q‰`êh 8R>:ùèEÕ6:Ýn·c©å�ÞÇx•nÑVð�šÓÔ' ÎêomM„­;¢ós5‚<¾ _�!_{ˆuzÐ÷=‡9éÝ¡Ñs4Áy…Ųì¡PI¢’^$Õ1‰w~¦Rãô…C|§×ö§3º¡BNèÑGý$}ùëÃòûS¿BôÓ´µÛýÀ­ü:³ ÉÛÅcÛV0ÔJ½�æ–Ê3/ÌÞÛ1ïŽ]阩ÓЩáE³Ý1&|ñµýd;0 ¨� ¡Ô¥ $–äT<°sÂ9’<Áì«A =I°ÑS©ˆXîüÊ«g!Ô[¬€Å N|:E?“VƒU¼`ƒmU#îJðŠcèxŽb迾L¾È«)�÷̺ü‡™Ÿæàߢ¿ø(UxÂÚÑ^lÁØ=Øí£ÏÄ{èZå<Ï­YI6­Ìrò™œ€þS}§Ž¿¼bù˜z0¯�\™E2›g¢¹CÊžG[žG"0ü\¹›ü¨ãïÄÞ÷ðŒÌEqS?PºÁ—�Ì–èCl(mbÕ’ïR/­àDVž( U‡ÃQ²y¶–½q�y5¸�Üêv‚Í4À"³nðrC››Š¾opÛ»ðèO_oN’hóåY¡™ fÛ~vÉ�BÏ%ÏIÛˆuͤŽ×ß½íùÃí½Oܱ¿†–ÿÿ É�†è�@µPA9ïÄâš›wM¦lS€q¨ÿR“æj~)ž®¤¤Ðµ ¶`ÂþÕÒ)«ò(c¹°ø.ª/€2óN�L¼ÿ/ÖE–ý¨ É'Pì?žºÅ+¡•òU³\