ui-avatars icon indicating copy to clipboard operation
ui-avatars copied to clipboard

Serving the API response as per (SERVER+filename.png)

Open 3D-I opened this issue 6 years ago • 7 comments

I saw this line https://github.com/LasseRafn/ui-avatars/commit/acedac86b31b0c738c9d6ae1ebf44e7f1fdd899a#diff-828e0013b8f3bc1bb22b4f57172b019dR19

It seems very clear to me the file is already stored like that, it could be incredibly outstanding to have the option the filename to be served directly (an option, so to don't break the WP's compatibility).

In PHPBB as per the core code I can use the native function if so served instead of code a ugly one, with the facility to override the gravatars in a simply manner, all what I need is the SERVER+filename.png served as it is, I will take care of all the rest.

Please :)

3D-I avatar Oct 13 '17 23:10 3D-I

I don't understand the "problem", what are we trying to do? If it's related to using it with gravatar, all you have to do is use this syntax:

urlencode('https://ui-avatars.com/{urlEncodedName}/{size}/{background}/{fontColor}/{length}/{fontSize}/{isRounded}/{isUppercase}')

as the Gravatar fallback, like so:

https://www.gravatar.com/avatar/cd6dfa715835748e631bc00a4040d987?s=64&d=https%3A%2F%2Fui-avatars.com%2Fapi%2FLasse%2BRafn/128/19443a/fff

LasseRafn avatar Oct 15 '17 00:10 LasseRafn

No, I do have a my own code for phpBB gravatars.

phpBB's avatars engine is way complex and works just around the filename. If I have the filename served phpBB spreads the Initial Avatars board-wide, else I am limited just at view-topic and a few of locations, that's pitty you know.

3D-I avatar Oct 15 '17 03:10 3D-I

Okay, I think I understand 🤔 How would an example URL look?

Like: https://ui-avatars.com/AVATAR-FILENAME.png? 👍

LasseRafn avatar Oct 16 '17 13:10 LasseRafn

g'morning, I am glad I got an enthusiastic like me. 👍 Let me think about this-- I got an idea on how to manage the issue by phpBB side, so to avoid to bother you :)

3D-I avatar Oct 16 '17 14:10 3D-I

I succesfully managed the issue by my side, thanks for the outstandig support. 🥇

3D-I avatar Oct 21 '17 19:10 3D-I

Yes! I need the same feature. Would love to see this implemented (or maybe help?)

jacobSingh avatar Jan 01 '19 13:01 jacobSingh

Okay, I think I understand 🤔 How would an example URL look?

Like: https://ui-avatars.com/AVATAR-FILENAME.png? 👍

was this ever implemented?

cesarmtz93-wit avatar Mar 12 '21 22:03 cesarmtz93-wit