Avatars are here! Here's how to set them using steemit.com -or- the CLI

in #steemit8 years ago (edited)

You may have noticed some people using avatars today. I believe @rossenpavlov was the first to post about it here but I wanted to post CLI instructions and figured there could be more grandma-proof visual aid for steemit.com instructions as well, simple as it may be.

I suggest you use a square image as it looks like images are getting stretched or pinched in the resizing, making them look goofy.

On steemit.com

You can set your avatar using steemit.com by visiting any of your personal account pages (https://steemit.com/@youraccount), accessible via the circle icon in the upper right, and clicking the Settings tab, all the way on the right past the Wallet tab:

settings

Host your image on a free image hoster such as steemimg.com or imgur.com, copy and paste the image URL into the field and hit the update button. You will be prompted to enter your active or owner keys, or your master password.

In the future this page will have more options including different language support!

Command line interface

If you're like me and are cautious about using your active authority key on the web, here's how you set an avatar using the cli_wallet. The avatar is stored in an account's JSON metadata, and can be set using the update_account_meta command. I want my metadata to look like this: {"profile":{"profile_image":"https://i.imgur.com/Onc31p4.png"}} but the internal quotation marks get in the way of the command syntax, so they need to be escaped using the \ character like so:

update_account_meta pfunk "{\"profile\":{\"profile_image\":\"https://i.imgur.com/Onc31p4.png\"}}" true

Fill in your own account name and image URL for the avatar. The quotation marks surrounding the JSON should not be escaped. Be sure that you include any existing JSON metadata that your account is presently using so it's not removed.

Sort:  

Is steemimg.com still in beta or something? Seems I couldn't upload anything. I also got an error when trying to upload a avatar there. I sent them a message with all the error details.

Oh well, I just made an imgur account instead.

Should do the trick. Thanks for the hosting ideas.

Perfect timing! I just got SteemIMG back online so everyone feel free to host your avatars there, just posted the info here. As you can see I already have my avatar up ;)

Whoops! thanks! I rushed it seems haha, fixed my link as well.

Well that failed miserably for me, any tips or hints about what I may have done wrong? I put this URL (http://steemimg.com/image/WhzQT) into the profile picture URL box exactly as shown above and get what you see next to this post. I then tried putting into said box and nothing changed.
When I put that url on it's own line you see what I get, am I missing a step somewhere here or on steemimg.com?

Is it not public? Protected in some other way? or just not fully uploaded ready for public viewing?
Sorry, still basically a steem noob, haven't had much time to work with it since signing up.

Interesting. Well you would use the direct link :
http:// steemimg.com/images/2016/11/10/SkekzyzAvatar01a195d.jpg
but for some reason steemit isn't picking it up, All files are public and if you navigate to the image url it shows up just fine. I am looking into this now

As you see it is a .jpg and quite old, as in 12+ years, but it's the same one I use everywhere else unless it needs a smaller image size kb or pixels, which I made downsized ones long ago too.
The first difference I notice is that my URL with the short code is missing a ".jpg" where pfunk's has a ".png".
Does steemit have any restrictions on image size or type for the avatar?
Could something have gone wrong when I put the short code URL in first?

to fix for now add "www." to the URL , sorry looks as though some DNS settings may be off

looks like that worked

thanks hope the bug reporting helped

Thanks for the mention!
I should also add that you can use transparent gifs, just make sure they look good on the blue background.

Thanks for the post...done mine, just disappointed that the picture doesn't seem to be clear...thinking of trying another picture just to test.

I suggest a square-cropped picture for this reason. The avatars get resized to 48x48 pixels so any small details will be lost.

Thanks will try it.

Something going wrong...

I'd try rehosting the image and then updating the avatar URL again. I see it as working with a direct link http://steemimg.com/images/2016/11/10/avatarc0f1b.png but maybe Steemit's image rehoster didn't pick it up and the placeholder is cached.

I think too that it is cached. And i can't clear it...

Try a new image.

I tried many times, many hosting, many resolutions. I broke Steemit again :)

There seems to be an issue with steemimg's response headers (content-type is returned as text/html)

Aha, just got one up after reading a post by @ausbitbank!
This is a welcome change and I, for one, am happy we are focussing on the social aspect of things!

Thanks, I didn't find that one in my search. https://steemit.com/steemit/@ausbitbank/woot-we-have-profile-pictures-and-a-new-settings-screen-100-sp

I mostly wanted to make a post for the cli_wallet instructions but didn't see that post and didn't see any grandma-proof instructions with the visual aid at the time.

I guess it caught all of us unawares, but a welcome addition anyway!

I cropped a photo to be about 300x300 px and it came out pretty well. I have no idea what JSON metadata is or how to use it. LOL

"JSON metadata" is a technical thing, it is not important for most users, but sometimes really helpful for people which would like to know more and how things works.

In general, you have your steemit profile page here: https://steemit.com/@merej99
If you will change in this address steemit for steemd, then you can see how your profile looks from technical perspective:

https://steemd.com/@merej99

like here:

This is for looking only, right?. atm reading into CLI Wallet but I get the feeling I need to know much more about code languages. I'm pretty much illiterate with code.. suggestions? I'm really up for some schooling :)

You don't really need to get into it unless you want to. If you're not logging in to Steemit using your posting key only, using your password to update your avatar image isn't too much different. If you're interested in learning more about the Steem CLI though, I made a guide to get you started: https://steemit.com/steemhelp/@pfunk/a-learner-s-guide-to-using-steem-s-cliwallet-part-1

I see, thanks for your reply. Will look into your post!

Is there any guidelines on size to save on proc time and download?

Does precircularizing the image help out anything?

The avatars are automatically resized to 48x48. For pixel art avatars you may wish to use a 48x48 source image, otherwise the resize should be fine. The Steemit image rehoster is constantly displaying resized images in the form of preview thumbnails on most posts.

The original, default avatar shown below is 128x128 pixels with a transparent background. If you use it as a template and stay within the circle there is no circular cropping, just scaling. I used a square 128x128 canvas with a picture with a transparant background that fit in the circle.

Excellent post thank you very much for the information

Oh yeah! Avatars.

Thanks for the heads up! :D

YEAHHHHH!!!! Also steemimg is not working. I can upload just fine but the image link seems to be broken for some reason...

Avatars will "colour" our steemit life again :)

Thanks for the update @pfunk, much appreciated

This is a good start. They should expand the functionality of avatars a little bit but this is good.

GitHub hosting also works

cool! Thanks for this! Looks much better with avatars :)

I have long wanted to put an avatar, but did not know how to put! Your blog helped me a lot! Thank you!

I just uploaded mine. I was thinking if there were articles about this, but figured it would be in the settings somewhere. Finally!

Woohoo! thanks for sharing, I managed to get mine set up :)