Page MenuHomePhabricator

Add an avatar builtin file generator
ClosedPublic

Authored by chad on Feb 27 2017, 4:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 29, 9:05 AM
Unknown Object (File)
Tue, May 20, 6:20 PM
Unknown Object (File)
Mon, May 19, 11:15 AM
Unknown Object (File)
Apr 21 2025, 2:16 PM
Unknown Object (File)
Apr 19 2025, 4:53 PM
Unknown Object (File)
Apr 9 2025, 8:02 PM
Unknown Object (File)
Apr 5 2025, 7:34 PM
Unknown Object (File)
Mar 27 2025, 4:49 AM
Subscribers
Tokens
"Like" token, awarded by avivey.

Details

Summary

Ref T10319. This builds out a reasonably decent avatar generator. 256 colors x 74 images x 2 borders, 38k options. Not completely sure though how names disburse though, so likely half that number. I can add lowercase lettering to double the footprint if needed though.

Test Plan

UIExamples. Color generator here: http://tools.medialab.sciences-po.fr/iwanthue/

pasted_file (1×2 px, 636 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley added inline comments.
src/applications/files/builtin/PhabricatorFilesOnDiskBuiltinFile.php
43–57

This should use FileFinder to search the directory recursively instead of hard-coding multiple paths.

This revision is now accepted and ready to land.Feb 27 2017, 11:43 AM
  • re-work with FileFinder
This revision was automatically updated to reflect the committed changes.