Big changes afoot
March 14, 2008 | Posted by Demitrious Kelly
Howdy everyone! It’s been an exciting few months for us since we’ve taken on the role of helping Gravatar grow. We’ve been doing a lot of work to get those gears turning, and set things up for some serious forward motion.
The first thing we did, after stabilizing the service, was set out to rewrite Gravatar in PHP. Now before we launch into any holy wars I’d like to point out that our decision on this matter had nothing to do with Ruby, or Rails — in fact we have a great respect for both! The reason, the only reason, we switched is that PHP is our core competency at Automattic. As a PHP application we will be able to apply the sum total of our collective abilities to bear on any problems that Gravatar might face. The guys I work with are genuinely some of the most technically gifted people I know!
Of the things that you might notice there are a couple which will be most prominent. First off the speed of the user interface has increased dramatically especially when it comes to applying your uploaded imaged to your email addresses, a process which used to take minutes. We’ve fixed the biggest issue with the cropper (it would throw an error if you tried to use an image that was already 80×80 pixels or smaller.)
Now for some things that you probably have not noticed.
We have increased the size limit for avatars to 512 pixels (thats a big avatar!) With existing gravatars the image will be pixelated at 512, but new gravatars created from from higher resolution images will be very clear. For backwards compatibility the default size for serving images with no specific requested size will be the 80 pixel version.
You can now abbreviate the avatar.php options as follows: size=80 can be s=80, rating=PG can be r=PG, default=foo can now be d=foo. The rating is also case insensitive (r=PG is the same as r=pg). Oh and gravatar_id=foo can be g=foo, not that you’ll need it because we’ve implemented a new cleaner URL API. Our new API is actually really simple, and not a huge departure from the original URL structure.
http://www.gravatar.com/avatar/767fc9c115a1b989744c755db47feb60
All of the aforementioned get parameters still work, such as ?s=80&r=g&default=http%3A%2F%2Fwww.mysite.com%2Fimage.jpg Also, for convenience and compatibility with certain software (for example some forum software won’t allow you to use a url as an avatar if it doesn’t have an image extension), you can append .jpg to the end of the MD5 of the email
http://www.gravatar.com/avatar/767fc9c115a1b989744c755db47feb60.jpg?s=128&r=g
We’ve also added support for gravatar images over SSL (please use the hostname secure.gravatar.com for this)!
https://secure.gravatar.com/avatar/767fc9c115a1b989744c755db47feb60
We have lots more stuff planned to make Gravatar.com a great service for everyone, so stay tuned!
Cool. Sounds like it is getting better for everyone using gravatar.
Regarding:
Until that, the only way to use PNG images with transparencies as Gravatar was to upload them already in the final size, 80×80. That way, you could use PNG images with perfect borders. Now, they are being converted to JPG and they look awful and the transparent background of the image has been replaced with a black color.
Please allow us to use transparent PNG files as Gravatar without going through the JPG compression.
That you for the great job you are doing in Gravatar!![:-)](http://web.archive.org./web/20160501095127im_/https://s1.wp.com/wp-content/mu-plugins/wpcom-smileys/simple-smile.svg)
[…] The rewrite of Gravatar from Ruby to PHP is done. The backend should be identical, the serving of Gravatars should be even faster, and as a bonus we now support SSL Gravatars. […]
Super Coco: Gravatars are meant to be images, the fact that animations and PNGs were allowed was a bit of an accident. (Neither scales well.) Sorry about that.
erm, citing from http://en.wikipedia.org/wiki/Portable_Network_Graphics:
Portable Network Graphics (PNG) is a bitmapped image format that employs lossless data compression. PNG was created to improve upon and replace the GIF format, as an image-file format not requiring a patent license.
they _are_ images, folks! and an open format in the mean time! and scaling them using GD works just fine and it is possible to do it without killing the alpha channel (the most important reason why one might want a PNG avatar is transparency), see here: http://alexle.net/archives/131
Nice. But those are kinda big. I mean unless people are using vector graphics, I don’t see a need for images that large. They won’t be clear at all when they’re sized down.
Okay, we’ll try that.
Nice work!
sounds great. looking forward to the speed improvements
Nice. I’m wondering if the larger size will cause some more interesting designs for comments to come about.
Automattic is just amazing!
I know this has to be an incrediblly “dumb” question to all you geeks and ner-to-be geeks, but what is a gravatar? What is it good for? How is one used? Why would one be used? What is the benefit to my site or its visitors?
Cool, but still waiting for a portuguese translation…
Very nice, and thanks. Now I will have to spiff up the image, but it’s late. Fun for tomorrow.
[…] Big changes afoot « Gravatar Blog より、Gravater がいろいろ改良されているようです: […]
It would be nice if the image cropping tool expanded to 512×512 to encourage these larger image sizes. Your current cropping had me adjust a 1000px photo within an 80px square.
Is not a size too big?
greets😀
The API documentation could do with an update as well
it still details the old API.
[…] has been completely rewritten in php bringing more speed and bigger avatars. Questo articolo è stato scritto da Alessandro e […]
I doubt that people will be using the 512×512 images with comments as that is clearly too large an image. However, this would be a useful option with something like a profile page. With all the social media sites out there, if some were to integrate Gravatar, then people wouldn’t need to upload the same profile images over and over again. Instead, we’d see a standard size on our posts, and a different size on our profile.
Correct me if I’m wrong, but this seems to be the most logical use of such a large image![:)](http://web.archive.org./web/20160501095127im_/https://s1.wp.com/wp-content/mu-plugins/wpcom-smileys/simple-smile.svg)
This is probably a dumb question but I don’t really see anywhere on this blog where it talks about integrating Gravatars with wordpress.org installations. Is there a plugin I’m missing somewhere? I’d really like to implement Gravatars on my WordPress blog but I’m just not seeing how. Thanks.
If you look at the growth of bandwidth and do some simple projections, a 512×512 image is not too heavy. It could be used as a mouseover a thumbnail to show the full size image.
I like the fact that you are developing for extensibility.
I was very excited for the new larger size, thinking I can make my alpha-mask PNG avatar look even better. Only to be very disappointed in find out the removal of transparent PNG files. It worked until this upgrade. All the avatars of the authors in my blog are alpha-masked PNG images. Now they are all blackened, ugly JPEGs.
Alpha-mask PNG brings some quality to blogs that JPEG cant match. It looks good on any background color. It provides neat effect like shadow and 3D-look. Please bring it back.
It’s just a graphic file, why restrict creativity by limiting it to just plain pictures?
Nice
I have just added my first avatar
I can understand about the transparent PNGs, but if the trade off was to lose alpha masked PNGs in oder to lose multiframed files I’d definately take it.
Also, the suggestion that all alpha masked images look good because they match the background colour is certainly a leap. Not to mention the notion that alpha masked pngs add more quality to a blog, surely the content of the blog itself bring quality rather than the gravatars?
Ok fair enough about animations but for the love of something bring back the png, if there’s a filesize limit then I don’t see how it doesnt scale?
Alpha-masked PNGs also don’t work in IE6 without special scripts, they look terrible.
[…] Matt anunciaba cambios en Gravatar referentes a la nueva forma de llamar a las imagenes desde sitios externos. La ruta que hasta ahora no usaba URL Rewrite ahora tendrá un aspecto […]
[…] Gravatar har forøvrig gjort endringer i koden og oppsettet sitt den siste tiden, og du kan blant annet ha gravatarer i størrelsen 512×512px. […]
There are certainly limits on PNG file. IE6 is a big problem but it’s phasing out. And it’s only in IE6 the alpha masked PNG gravatars look bad. Now they look bad everywhere. Also, PNG doesn’t do multiframe images. If multiframe is a problem, it’s GIF that should get the axe. And I guess it did already.![:)](http://web.archive.org./web/20160501095127im_/https://s1.wp.com/wp-content/mu-plugins/wpcom-smileys/simple-smile.svg)
Yes, it’s still the content and design of a blog that count as quality. But why limit the option people can use to achieve it? A lot of people have no decent idea of using colors. Do we remove color support from CSS?
I can understand if there’s technical issue on supporting it. But it’s not. We had it before. It was working. So is this Automattic’s imposing of idea of proper image use on bloggers? Is “avatars should never have transparent background” Automattic’s stance on blog design? I don’t think it’s the case but it sounds like so.
[…] surfing around the internets today I came across a blog post from Gravatar and it really hit home with me. Basically Gravatar rewrote its entire site from Ruby […]
[…] Big changes afoot « Gravatar Blog gravatar ujra hasznalhato lesz, s sokat fejlodott az utobbi idoben. (tags: gravatar ruby php) […]
+1 PNG Vote
Please, insert a link to Gravatar.com in the blog. =]
I love PHP, I love Gravatar.
Overall definitely a nice update, but I have to agree that dropping the superior PNG and downgrading to JPEG was a step back. Well, see what m0n5t3r said.
I never saw any Gravatars with animations… curious what was exploited there exactly.
Nice improvements, but PNG support needs to be added back (if it has not happened already). Forget the scaling if the image is the correct size, and don’t convert to JPG. PNG is small and fast and lightweight and supported by every major browser. GIF is dead, and JPG can be blocky. Sometimes, you need PNG. Let it work correctly.
@Shawn: There is currently a plug-in for WP 2.3 that will display gravatars for you, but if you wait a few more days and upgrade to WP 2.5, they should be built in automattically (;)) as long as your theme supports them. The 2.3 plugin is here: http://wordpress.org/extend/plugins/wp-gravatar/ . Documentation on how to make sure your theme will display Gravatars in 2.5: http://weblogtoolscollection.com/archives/2008/03/03/gravatars-and-wordpress-25/
@Charles: See http://gravatar.com/ . Basically when you sign up for Gravatar, you upload a picture (avatar) that will be associated with an email address. When you create an account on a new blog or leave a comment using that email address, if the blog has Gravatars enabled, it will contact the Gravatar web server and display your picture (see all the pictures next to these comments?). The cool thing about Gravatar is that 1 picture will follow you all over the web. Gravatars can even be built into other applications, such as Thunderbird: https://addons.mozilla.org/en-US/thunderbird/addon/726
I hope that wasn’t too many links. I don’t want to get marked as spam![:)](http://web.archive.org./web/20160501095127im_/https://s1.wp.com/wp-content/mu-plugins/wpcom-smileys/simple-smile.svg)
awesome! i think gravatar should be used by every blog!
很强大
I also agree that dropping PNG in favour of JPEG was a mistake. The jpeg artifacts are particularly notable on my usual gravatar, and the substituting black for alpha transparency is unflattering.
I concede that PNG may not be supported in IE6, but IE6 market share is dropping substantially, and with IE8 on the way—I don’t agree that this sound reasoning for dropping this previously available feature. Since gravatar is used across multiple websites, and with no way to predict the background, PNG seems like a natural choice over JPEG for gravatar.
What about security/authentication?
Do you have any plans for preventing people from arbitrarily using my or any other user’s Gravatar by just typing the respective user’s email in blog comment forms?
I don’t use alpha-channel PNGs as Gravatars myself at the moment, but it does sound like something useful, so I’d like to see it added back. No animated GIFs though, please! If IE6 compatibility is such a concern, why not just go with Matt’s favorite route and serve a “Browse Happy” icon and link instead of the Gravatar to IE6 users?😉 (Do it for IE7 users too, until IE8 is out and much more standards-compliant…)
(Sorry Matt, can’t help but razz you a bit after reading recent wp-hackers posts and such…my true opinion is much more neutral.)
Overall, this is good news.
it is indeed.. good stuff
[…] блог. Спирам да ги използвам, докато не се вразумят и не позволят употребата на png файлове отново. Грубата им постъпка да конвертират всички png […]
Nice, I like the update to the URL structure, much cleaner.
Whats the chance that in the future we might see something like, or similar to this:
http://www.gravatar.com/avatar/{insert md5 string thingy here}/{size}/{rating}
Might clean things up even further.
I also think that transparency is a mandatory feature. Using jpg-s is a step backwards. Please put png-s and gif-s back.
Also, why do people have so much against multiframe images? If people want that as their avatars why not? Why limit people’s choices on their own avatars? Maybe Automattic can add a new option on Gravatar to not show animations if specified (but leave default on)?
Hmmm, accident? What do you mean? You want to say that GIFs and PNGs are *not* images?😀
What’s the problem with PNG, GIF, JPG? These are three standard for the Web of today image formats, and everyone can choose to his taste… One has alpha-transparency and losless compression, the other has animation option and index transparecny, the third is great for photos and bitmaps in general…
Also, as someone above duly noticed, PNG is much newer format and has some options which JPG lacks… why going back? Ask the users of the Gravatar service — if they need or want the PNG format, then give it back to them (or so I would do;-)!
As for me, I won’t need 512 pixels-wide gravatar, but I’d like to have the option to use the PNG:)
It used to be possible to specify an alternate image if there was no Gravatar associated with an email, but now Gravatar will return the default blue gravatar image no matter what. Is this a bug or have you dropped support for alternate images?
I ask because the change breaks my Ravatars plugin.
we need to use transparent avatars , it is really important. I will stop using gravatar until this bug is fixed.
@GrokCode We did not intentionally break any API parameters. I have replied to you, privately, via email. If the API’s broken I want to fix it!
PNG to the people! Thank you.
(And by the way, using IE6 as an argument for not supporting PNG was lame.)
Obviously most of the users want their PNGs back. Me too, at most for alpha transparency.
If features of the service are removed, the common user usually understands this if there are technical or security issues with the previous way the service worked. But you have to tell us! Just removing features and hoping nobody will complain about it, isn’t the kindest way.
One issue with animated Gravatars might be the rating. I could create an animated Gravatar showing an initial image that will be rated G. After a few seconds (or minutes) it fades into something completly different, now showing a shocker X rated pic. The manual rating process may miss the X rated pic fading.
Uhm, no.
If you don’t want others to know (and type) your address, don’t give it to anyone, simple as that. How do you expect anyone to disallow people from typing certain things? If that were possible, there’d be no such thing as spam e-mail. It’s technically possible to build a website, blog, etc., that only allows visitors to enter e-mail addresses once they have authenticated, but that’s a whole different “layer”. Gravatar only supplies images. (The image URL itself doesn’t contain the e-mail address; it is hidden using MD5, so Gravatar already did everything they could.)
Crop screen didn’t work for me when I originally opened my account. Still doesn’t work. And the fact that the developers (was that a developer?) don’t know what a PNG is doesn’t really fill me with hope either.
1/10.
To avoid someone forging your gravatar address, use a plussed address with a secret plussed part for your gravatar identity. This does require that the MTA responsible for that address support plussed addressing. Sendmail does, so ask your email provider if they run sendmail. Or send yourself an email at youremail+plussedtest@example.com (adding +plussedtest to your regular address) and see if it goes through or gets bounced.
+1 vote PNG
Please give back PNG and Alpha.
png is the best compression (without loss) for pixelated icons with few colors😦
[…] whichever language is better then the other, but a matter of experience and culture, as stated in Gravatar’s blog: The first thing we did, after stabilizing the service, was set out to rewrite Gravatar in PHP. Now […]
[…] Za přechodem z Ruby na PHP ale nestojí ani tak výhody či nevýhody jednotlivých technologií, jako prostý fakt, že kolem WordPressu (a tedy Automattic) je opravdu silná PHP komunita. Dříve než se pustíme do jakýchkoli svatých válek, rád bych poukázal na to, že naše rozhodnutí v této záležitosti nemá nic společného s Ruby nebo Rails – ve skutečnosti máme pro obojí velký respekt! Důvod, jediný důvod proč jsme přešli je, že PHP je klíčová kompetence Automattic. —apokalyptik […]
I agree with Hugo. You really pulled the IE6 card? I have an idea, maybe the W3C should get rid of every CSS property that doesn’t work in IE6 without “special scripts”?
This is so lame.
Yes, please bring back png and transparency support.
oh yeah
How about OpenID support? I mean why gravatar is recognised only by email?
Many blogs use OpenID instead of (or additionaly to) email authentification for comments.
When the user choose OpenID to sign his comment, blog can’t recoginize its gravatar cause there is no any connection beetween them.
It would be great if gravatar will support OpenID recognition. (http://openid.net/what/)
I am looking for information linking my OpenID to my gravatar? has any progress been made?
We don’t currently have OpenID verification available, but it’s on our list of things to support.
[…] Big changes afoot « Gravatar Blog – Gravatar er nu lavet i PHP – ikke Ruby/Rails […]
I suppose that’s useful if you want multiple Gravatars simultaneously without supplying multiple addresses. However, the image URL will just contain a different, equally unreadable MD5, so that doesn’t make it any more secure. If someone manages to crack the MD5 I’m sure (s)he can figure out how to remove the plussed part from the address too… although if his/her goal was to use the Gravatar, that’s actually an unwanted step. If it’s just the image file (s)he’s interested in, it’s easy enough to just (use the code to get the largest version of the image and) save the file somewhere. I still don’t really see why someone would consider this whole thing a shortcoming of the system to begin with…
My Gravatars look awful now as they are transparent png files. PLEASE reconsider allowing the use of transparent pngs. I fully agree with prior comments which state that reverting to a non-transparent jpg with black background is a horrible step backwards. I have photoshop. I can save in any format. If I had wanted an image with a black background, I would have created my Gravatar that way in the first place. Transparency produces the best results regardless of what background color a site may be using.
I see more use in handcrafted, alpha channeled PNG avatars than in 512px avatars (which are neato, nonetheless)
Thank you, guys. My gravatar looks awesome now with that black background! (meaning, bring back alpha-channel PNGs support, it wasn’t an accident, it was a nice feature to have).
You’ve mentioned that instead of ‘default=’ that we can use ‘d=’, but I can only get ‘default=’ to work, ‘d=’ returns the blue ‘Gravatar’ default.
One more vote in favour of PNG support. If you had problems with people uploading multi-megabyte animated GIFs (I know there are people like that because a guy on a forum was complaining that he couldn’t do that), then act against _that_, not by removing support for the only perfectly legit standard patent-free image format supporting transparency!
(Hit submit too soon, sorry).
I mean, if the problem is animated GIFs, then just reject animated GIFs, with a message explaining why.
If the problem is the inability to resize GIFs and PNGs, just reject them if they are not in the proper size, asking the users to resize them before submission, and skip the cropper if the images are already properly sized.
you also appear to have broken the sign-up thing; I already have a wordpress.org user name (m0n5t3r), don’t need another, thank you! now can I please manage my avatars? (I got no response from the mail I sent to the support@ address a while ago, btw.)
[…] I know recent changes to Gravtar functionality (actually, a complete re-write from Ruby to PHP) has broken my Wavatars […]
Cool.
So if I upload my avatar and crop it down in order to fix the sample box, it will still use the larger resolution when called for?
I’m sorry but this new version is not good :
– no alpha canal for png image
– resize system does’nt work perfectly
…
I love Gravatar.![:)](http://web.archive.org./web/20160501095127im_/https://s1.wp.com/wp-content/mu-plugins/wpcom-smileys/simple-smile.svg)
It’d be really awesome if there was a way users could manage their gravatars off-site, as-in, inside another web-page/application. It would by-far increase the use of Gravatars throughout the net.
I’d love it if I could get it to work!
Please add URL gravatar. e.g.
http://www.gravatar.com/avatar/382497baa5163c17ca770b479ab05004.jpg?s=40&u=9276990b1e8ae56a6e3bc068983a9815
where “u” (“url”) = md5(OpenID URL)
it is very useful.
In relation to a couple of the earlier comments… being able to tie an OpenID identity to an account would be a *big* plus. You’re helping fix the distributed identity problem, like OpenID, so it would be a natural next step. Then maybe MyOpenID.com (the provider I use) could support you back. That would be 100% win.
Thanks for the good work.
It would be great for this to work with OpenID
I agree with the OpenID support. I was surprised that it wasn’t using it already when I found out about this.
I like Gravatars and the latest development. Thanks for this service.
To give back a small piece, I released a Smarty TAG, which converts an email into a Gravatar URL. Supports the new URL structure. Here is the article: http://www.kevinpapst.de/blog/gravatar-smarty-tag.html (sorry, german… but you’ll find the download at the bottom, included docu is in english).
Too bad Gravatar is only in English…
First of all thank you. Gravatar is a great service and should be more widely used, I think. So I just implemented it into one of my projects (modpage.sf.net)
PNG
Why not let the website-owner decide, what kind of imagefiles are to display? If your service returns a png, the CMS may recognize that and show the dafault-image, instead. I think, like the users choice, what kind of image to choose for his gravatar, this should be the choice of the website-author, what kind of imagesfiles to are be shown.
Another Idea for that problem:
With something like &png=noalpha (or &file=noalpha or something) your service could implement an fall-back and show an secoundary image.
I hope, you already came to this ideas.😉
But however: Very sad, we have to worry about such issues, though.
Open ID
Never heard of before, but – like gravatar – the very path the web has to go, think.
+1 vote PNG
+1 vote OpenID
I would (also) very much like to see OpenID and transparent PNG support. Plus logging in with any of the associated email addresses. Thanks!![:-)](http://web.archive.org./web/20160501095127im_/https://s1.wp.com/wp-content/mu-plugins/wpcom-smileys/simple-smile.svg)
It would be great if 3rd party developers could have some way of directly uploading images.
For example, a developer could add a “make this my gravatar” button to their site/application. When a user clicks it, the site/app could either post the image or the image link to gravatar. Gravatar would then ask the user to login, at which point the image would appear in the users account.
(also, chalk me up for a transparent PNG request)
and Gravatar doesn’t event work in Lynx. Stop supporting older browsers!
+1 for the png support (the reasons why its dropped are lame)
It would be nice if there was a way for 3rd party sites/software to upload gravatars to the site. For example, a site could have a “Make this my gravatar” link as could local photo managements software. 3rd party sites/software could simply forward you to the site with an image post at which point gravatar.com could ask you to log in.
Noel
ba bump on the openid support.
Gravatar should have a widget which you can add to your blog which allows people to sign up and upload an image without leaving your blog.
+1 to PNG support, please run voting.
I agree on supporting PNG, but you should probably white list PNG chunks when uploaded. Keep sRGB, gAMA et al, throw away anything else.
So. Any word on restoring proper PNG support?
Sweet![:)](http://web.archive.org./web/20160501095127im_/https://s1.wp.com/wp-content/mu-plugins/wpcom-smileys/simple-smile.svg)
Во как
Cool.
But is this feature life yet? I’ve uploaded a 512×512 GIF (also tried PNG) and I get the crop interface everytime, to cut my image to the 80×80 box.
[…] Automattic took over Gravatar.com, one thing users have repeatedly asked for is to be able to have transparent Gravatars. Now that feature has returned. Posted in Asides, […]
[…] 15/3/08: Leo en el blog de Gravatar que el que las imágenes de 80×80 no se redimensionaran era un bug, no una característica. He […]
[…] (the company behind WordPress, the software that powers افكار و احلام). Among those changes was a buried, but rather unpopular, one: Gravatar had dropped support for images in PNG format and, […]
[…] now support resolutions up to 512×512 pixels. The higher resolution your gravatar image is, the better it […]
[…] השרות בגראווטרים גדולים (גדולים מאד) של 512 פיקסלים. עד לשינוי, לפני מספר חודשים, הגראווטרים נתמכו בגודל של 80 פיקסלים […]
[…] now support resolutions up to 512×512 pixels. The higher resolution your gravatar image is, the better it […]
[…] now support resolutions up to 512×512 pixels. The higher resolution your gravatar image is, the better it […]
One more vote for adding support for OpenID. This would be huge!
Yey, Gravatar is even better now![:)](http://web.archive.org./web/20160501095127im_/https://s1.wp.com/wp-content/mu-plugins/wpcom-smileys/simple-smile.svg)
How can you specify the file format? If we always wan’t to get png:s from the url… And never a .jpg or so.
Just add the format onto the end of the URL, as described here: http://en.gravatar.com/site/implement/url