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Š�«þŸ"IÅŸ¢(Šf´cijÝ%ZÜÝ%tw Ý£}‚ ÷ì@#w¿è¸ÈÝm­íäl61ä3P48³ðÏŸ¯’`-Ù~¹�äÇó­Âmûç>¦W²lÈy²�ìÇ^°’ùrݯ½|�ö~Ÿe 6÷Q¾$L@ÒGœöÛÁˆnì#}ž�ð{X½�2 ò=VûuTXÖw´ºèð’Ÿh�r=Q±�ö¤BO¦,ì¿°ÿÂA+û‰Ö¸QÖW´z�¢Þbõ³ÁÈw«—qFêV»ÕájÆSœ¾·�¶ŠÓ)© 8F¨#”p£Ç9š‹ë�PeÖ |ž·ÄJô˜#“s›GMqš‡ƒ¡Â£Åe¬?ÅäãVV‚ô)Ô¨â“q)yëÞ~Eñã­Íª”p0 ÆÀŸ“”’–YRUóï¯ÈÉHIŠ“>b˜â ɸ„¤“â¢"T…1”;Ô�&£bŒŠ’!ŸK0 V�2áð¨>U�C0 ÄFʹÀ‘3 ÄnÀ“œ8VP8 N 1�*‚‚>1‰C¢! |Fº‚XÍÀPÓ{ãAOJKÁÕÜ›þî—ççøïR>`¨Ÿ¦=b¼À%þåéû3îÐú¯ôK`�Úa¯ÖÏMOöÿÝþ¿plýȾf u\ü…ýªî/ñ®ß¸¨D~¸ýò÷SþânÒ};z�zwû7ä¯å7€üoøïøßëÿºŸÚ½'^ü€÷K½/ò�ŸÒþÿã+@oãßÓØ}À|uÿ…þòïÛ_Ð?ó?Ê|ÿ$þ‹þËûÿî§øïÿÿVžÂ= ÿX /<õy‚,tânÒ…Ý$ìuäšÜèɵWWíx5”¯®ð¤ü gHþÓ+RÜÓà÷ ñùøÑÿÅE*)¢J‘0]Ùœ‘ à¹Ý a÷y‡¢"�uR¯€#—Ü»´⨚¤‚r~Jø |¹fFÛ¹Ôc«°ØyH굕dè�,ÑâÛ¤ü ¶UÝm…´V‘Â_o8žÈºÒ(;“I„#ú|Ä ½Ê£Dþó,�d”®•Ù€ ûŽèMÄ Ÿ‡“ÿ21¶"¢=÷Caщ(̬lþÜ~œ�Œó�AœøÌ¿µÿ F¤*i>Ã8õj¢_k䇳5¬Sü†4…¼s¹,éS÷Ü´DR�f˜XÈë|!—CK]©q‹_ Únœ.ót§ \M½“ذx†èdKÅŒÚÿÛ¹ý©—Ã^³ñŠŠ¢úçëö¤Q çáHü¯ÿð颹®>z~0ÞJg{R‹øŸö¢Z]“­¤Èae:µÇ"##uV¨ý÷}Ï>Ófaaº$¬Ž'Y+êìe�dqÍj¡cLãUŒêþð*)`›G(¤„sW½º^>ñ•·œ§‹ñÛD�hݾ›ýuz²¡ö�ç÷ƒ[öÿç×iÛÕsU"kM‹Ì7£]çáàÔçP–ëcà€2ò,Ë|ú]×~™c·íÄ ‰v²ED~�‘¯¥)¢°›\^ðè6Ü“{fM\tê†kÜK;ÊRvÿt¯®}²„í› ¤À¥^D‚�?œ$åb>Äñ.‚Å­õÿå�iX\^"ü³ó¼ñ?};%C‡Ý]‚Ó˜¤²C_óiÄ5ܬX[�´�D¼ýSÕ/p¯qyÉùæD¾Ff=‚› R‚L{yPMNÜ‹ÿå8oFžM¢üv}͵RÌEÎðöÙU¬ÔŠ9³�¬êÆTÈÛŽhЧh颉ºe“cz[�‹‹÷¸)ÃgÑ Îýó(òb>KÈC@/¨Å)> 4Læ>MIçÅn®¤¸ûæùû#¢¼ù¹;o‹ó…‹˜r6œ„ÜÝLz1¾®SIÙ™–:Š[¹ÜõøÈ@k•—o›�f—zß�Ä’_cC>'ÿuøíW˜ ñ| ï lñ1¨Ë7™³¸ûzö'¾'8Á(^@Ó†Y\¬[Î!y©ânÝ0n2Xp„4I¾Ùíseˆ®{Š�l’ñô»ôMŽÂ�j¤ßþmÓ%ZB¢a~ôö@W§dLȯוíºäYä kK‚âÀDslˆÑ Dj÷#÷¾Jmšš‰©\îz‹ªøÜr6®÷¬W\½Ûøh/ó�Q™?໨hä‹>L³eüÐÎû¶ÂVí!Ž`ù®7ø®£MÙÀlô4è°CûPcܹÝÙqoY×^;3Ÿ&æ\�¦Æ˜ù,¢ZË PJ‹g[dÓf‡(!Ò—™¡«8EA|Ü Æ3\@„û®âÁFØÇŽS, :Ù–êS5µMÞ'5&‚jdû�\�þÍR ôãÜ•gÝ}ü|3$ÓcÇ=_vfnŸÇãœ)´­2�áÙµÚí%6Ö‰— ·‰Waýš.Pý4¼¢ïäÖk!ChÕk£Ëña@�°ƒÆÐ‚l–Ù âd5XZj.tÄ|ú—ºR—Š’yŸ N¬p¼–á+s«n‡[Ì1ÖjX&]ׂ|šÙQé‚#5oósxîÝ3Äן þëNc÷±{hˆßžël´ËGü ¦ÈÉ ;]Ç­@Kïaôýðž¸gªmõ£X¬3¢�lxRòÝ%×Û†y8¨÷ü_%È|oÿõAî5+ºÞÒ°jÑ¿~æ…ÅDÌña–÷ž,oE*@À_ÆxYÒœ:7Å2¹_þ €6«�«wþ±Žæ'È<>ªùR&H©¹‘›½éÛf>oô@Œ;DžvÓ`V~¼…͘Íñ¿Àä²–�‘¿Çí¸tÈoAZš³˜ÚÒqöüŒ9Ml+}_ óK€S—½ÍîG$å{�üZMl³¤¨€ýPâui l™XÒáßœŒ3`Ã5àtTýªŸ ‡>@øvùI82+æSžV¢ŒV®÷›˜þÞׂÚT@?ãâÅño×ÝÞÚŽÆòE9 ™fƒÜRâaЈø¼ì}ë<Ýš8d—LÓH†´ÿaC²4_4HNœRÇUN¸«YJ<k—rSõÅ&Ï™ßUUÎrÄñN\{ßEãlN^îñÿ½”„óq÷@µeœ÷_8…o²^_$K6t"÷ÅCKŸÌ¼Šq¢H¨½VŸp<l^ÝÒŒ§§‹BüÙ<.ð®§o^²ÝɃèD°¯¢™®Áõ eÂnŠIN^ÙŠ’,÷ÃHÑ�ÔŠ­ëf;\NM!ƒþâkJ™²ì·*âe 75ïŸ Ö:´¨±†øü{h†~v–~ ‹|ÝžXyˆQš”ÁÓ6èK—ŒñcsçhKVY:!/ÎLQ÷*ÕIg±=I£ß%ÉìZ+…!Žö°Ï©�¯µìÀiH°>ÈÆ õF,T=šëé(¹ÚR!&ïÁè¢Æ©å¬ë" j)ßú¸Ï©ü?5ÿEzèXƒpÎOí¸¼ J'Òï˜æ¯ÃõöŸÄAÓS'æF§ïýº?æ(Ôë4 çDVÔc®ÁußBzÖFm5êbszLwê”áé* ëÝ“J0–ƒ�Mе1BiÁ-À¿²¾_^]…2P®:óî5m�çµ}LŠNíáçm4¿›{±[D\„wÇ–”MÝ·@Hþ1'›¶Ž�B¼(FÖB6“pÛLóðpèÇöšµõàr„,£¨ÿ¢Ç¤ÍNAœyÿ)-ºÊ