summaryrefslogtreecommitdiffstats
path: root/lib/private/Avatar.php
Commit message (Collapse)AuthorAgeFilesLines
* Removed old route, fix tests and fix var typeJohn Molakvoæ (skjnldsv)2018-06-131-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Avatar imagick bumpJohn Molakvoæ (skjnldsv)2018-06-131-15/+38
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Embedded fontJohn Molakvoæ (skjnldsv)2018-06-131-2/+11
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Unify colour algorithm outputJohn Molakvoæ (skjnldsv)2018-06-131-5/+11
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Controller tests fixesJohn Molakvoæ (skjnldsv)2018-06-131-2/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Use base image sizeJohn Molakvoæ (skjnldsv)2018-06-131-15/+13
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Return Svg avatarsJohn Molakvoæ (skjnldsv)2018-06-131-25/+60
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix avatar generator centeringJohn Molakvoæ (skjnldsv)2018-06-131-5/+31
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix autoloaderMorris Jobke2018-04-121-9/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* fixup! Updated php generatorJohn Molakvoæ (skjnldsv)2018-04-061-8/+9
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Updated php generatorJohn Molakvoæ (skjnldsv)2018-04-061-116/+80
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Use mb_* string methods to extract first character for generated avatarsMorris Jobke2018-02-211-1/+1
| | | | | | | | This fixes #8451 where the first character is a non-ASCII character. The `$string[0]` notation only extracted one byte and thus resulting in an invalid code. The `mb_strtoupper` method also allows to convert characters independently from the current locale on the server. See also http://php.net/manual/en/function.mb-strtoupper.php Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Avatar generation use ttf (for ancient compatibility)Roeland Jago Douma2018-02-191-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use index based string access for substr with length of 1Morris Jobke2018-01-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Make sure we always know for sure if an avatar is generated or notJulius Härtl2018-01-241-0/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Improve OC_Image code to not guess the type of input, but actually request ↵Morris Jobke2018-01-181-1/+18
| | | | | | | | the specific methods to be called Followup to #7836 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Hide delete button if the avatar is a generated oneJulius Härtl2017-12-191-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove generated avatar on displayname changeRoeland Jago Douma2017-12-191-0/+14
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Better center the letter and use semibold font typeMorris Jobke2017-12-081-1/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Since we update the avatar in the sync service remove the generated fileRoeland Jago Douma2017-11-291-0/+7
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Sinc we use AppData the regex is not needed anymoreRoeland Jago Douma2017-11-291-4/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move avatar code to Avatar ClassRoeland Jago Douma2017-11-291-10/+187
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersMorris Jobke2017-11-061-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Pass new value to triggerChangeRoeland Jago Douma2017-08-311-3/+4
| | | | | | | it is not used. but pass in the empty string (on delete) and the new file (on create) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add message to NotSquareException thrown from AvatarOlivier Mehani2016-10-241-1/+1
| | | | | | | | | | | | | | | | | | | | This prevents cryptic messages such as the following, from `user_ldap`: Could not set avatar for uid=user,ou=People,dc=example,dc=net, because: Signed-off-by: Olivier Mehani <shtrom@ssji.net> Add message to NotPermittedException thrown from Files\Nodes\Folder Ditto. Don't use translation macros here as this seems to be pretty low-level errors that generally get caught and prettified, and I don't want to unduly clog down the lower layers. Signed-off-by: Olivier Mehani <shtrom@ssji.net> fixup! Add message to NotPermittedException thrown from Files\Nodes\Folder
* avatar to appdataRoeland Jago Douma2016-10-051-8/+8
| | | | | | * Fix AvatarTest Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Initial AppDataRoeland Jago Douma2016-10-051-3/+4
| | | | | | | | | | | | * Introduce simpleFS * Introduce IAppData * Introduce AppData Factory to get your AppData folder * Update FileDisplayResponse * AppData implements a ISimpleRoot but lazy. So only if an apps starts to access data will stuff get initialized Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Cache avatars properlyRoeland Jago Douma2016-08-301-1/+13
| | | | | * Set proper caching headers for avatars (15 minutes) * For our own avatar use some extra logic to invalidate when we update
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-2/+3
|
* Update license headersLukas Reschke2016-05-261-2/+2
|
* Moved some files in \OC to PSR-4Roeland Jago Douma2016-04-291-0/+198
* \OC\ActivityManager * \OC\AllConfig * \OC\AppConfig * \OC\AppHelper * \OC\Avatar * \OC\AvatarManager * \OC\CapabilitiesManager * \OC\Config * \OC\ContactsManager * \OC\DatabaseException * \OC\DatabaseSetupException