Page MenuHomePhabricator

Add an avatar builtin file generator
ClosedPublic

Authored by chad on Feb 27 2017, 4:40 AM.
Tags
None
Referenced Files
F18844832: D17418.id41904.diff
Wed, Oct 29, 7:47 AM
F18843154: D17418.id41905.diff
Tue, Oct 28, 9:05 PM
F18843153: D17418.id41904.diff
Tue, Oct 28, 9:05 PM
F18843152: D17418.id41887.diff
Tue, Oct 28, 9:05 PM
F18843151: D17418.id.diff
Tue, Oct 28, 9:05 PM
F18842092: D17418.diff
Tue, Oct 28, 1:14 PM
F18835434: D17418.id41905.diff
Sun, Oct 26, 3:52 PM
F18832043: D17418.diff
Sat, Oct 25, 7:03 PM
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.