Repository navigation
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 exampleA&is written asA&(#214).- HD storage:
max_storage_mb = 0means no quota, asconfig/config-hd.phpdocuments. Before, cleanup treated it as a zero-byte quota and deleted stored avatars;getStorageStatistics()now reports0.0usage 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 missingStorageimport (#214).
Maintenance
No API changes. composer update laravolt/avatar.
Full Changelog: 8.0.1...8.0.2