Skip to content

8.0.2

Latest

Choose a tag to compare

@qisthidev qisthidev released this 07 Nov 17:32
321bd18

What's Changed

Fixed

  • toSvg() escapes the initials and the colour and font-family attribute values. Initials that contain &, < or quotes now produce valid SVG; for example A& is written as A&amp; (#214).
  • HD storage: max_storage_mb = 0 means no quota, as config/config-hd.php documents. Before, cleanup treated it as a zero-byte quota and deleted stored avatars; getStorageStatistics() now reports 0.0 usage instead of dividing by zero (#214).
  • HD getCachedUrl() reuses its stored file. The lookup and the write now use the same path ({hash}_{size}.{format}), so each call no longer writes a new file (#214).
  • The URL cache key (HD) and the base64 cache key include every option that changes the image: colours, shape, font, border, and for HD the storage disk and directory. Avatars that differ only in those options no longer share a cache entry (#214).
  • HDAvatar::createSpriteSheet() no longer fails on the missing Storage import (#214).

Maintenance

  • Security policy (#212); read-only GITHUB_TOKEN in CI (#213); Dependabot 14-day cooldown (#211).

No API changes. composer update laravolt/avatar.

Full Changelog: 8.0.1...8.0.2