Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
eli
13y ago
0 comments
Save
Share
Does gravatar even give you that information back? I assumed the browser requested the image directly from them.
0 comments
6 comments · 3 top-level
top
newest
oldest
renownedmedia
13y ago
· 2 in thread
You can specify a default image URI, and possibly look at the pixels of the returned image to see if it is the specified default.
pc86
13y ago
Look at the pixels?
kevincennis
13y ago
canvas + getImageData
1 more reply
simontabor
13y ago
· 1 in thread
We've got it so that the image 404's and we listen to the image error event to fade the G in or out.
eli
OP
13y ago
Neat, good idea.
StavrosK
13y ago
It gives you a 404 if the image doesn't exist, so you can use that. It's all in JS, anyway, so the gosquared server does't need to know any of this.
j
/
k
navigate · click thread line to collapse