TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Programmatically create user avatars with Imgix face detection

39 点作者 zacman85将近 10 年前

6 条评论

slashink将近 10 年前
Constantly impressed of what the imgix people are releasing. Everything from crazy rack builds to these slick API improvements.
MarkMc将近 10 年前
Reading the headline I thought the program would produce stylised pics like this:<p><a href="http:&#x2F;&#x2F;www.newyorker.com&#x2F;contributors&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.newyorker.com&#x2F;contributors&#x2F;</a><p>Question: is it possible to have a computer draw such images?
comex将近 10 年前
Hmm... I don&#x27;t use imgix, but what if a site using it wants to give the user the option to correct the crop? Since even a good algorithm won&#x27;t do the right thing 100% of the time, it would seem sensible to give the user one of those &#x27;zoom to crop&#x27; widgets with the starting position detected by the algorithm, but the described services sounds like it only gives you a static cropped image as output - it neither provides a widget itself nor supplies the parameters required to make one. (Or maybe it does and it&#x27;s just somewhere else in the documentation?)
评论 #9748526 未加载
chromakode将近 10 年前
This is a really cool service!<p>One nitpick, though: in the live demo of the circular cropped face, it appears that the face is slightly off center, whereas in the first promo image of the article [1] it appears more zoomed out and perfectly centered. I tweaked the url parameters a bit to try to mimic the promo [2], but the weighting of the image feels a little off -- towards the top right. If the auto face detection doesn&#x27;t produce perceptually centered images consistently, that is an important caveat, and the promo should reflect that.<p>[1] <a href="https:&#x2F;&#x2F;assets.imgix.net&#x2F;blog&#x2F;avatar.jpg" rel="nofollow">https:&#x2F;&#x2F;assets.imgix.net&#x2F;blog&#x2F;avatar.jpg</a><p>[2] <a href="https:&#x2F;&#x2F;assets.imgix.net&#x2F;blog&#x2F;woman-hat.jpg?w=200&amp;h=200&amp;fit=facearea&amp;faceindex=1&amp;facepad=2.3&amp;mask=ellipse&amp;dpr=1.38" rel="nofollow">https:&#x2F;&#x2F;assets.imgix.net&#x2F;blog&#x2F;woman-hat.jpg?w=200&amp;h=200&amp;fit=...</a>
评论 #9750278 未加载
jand将近 10 年前
I am a little bit unsure about this service. Although i find it technically highly appealing, the resulting privacy concerns are not to be ignored (personal opinion, tell me otherwise).<p>Can somebody clarify how you validate the claimed &#x27;Article 29 of Directive 95&#x2F;46&#x2F;EC&#x27;-compliance? It seems to me that this service somehow relies heavily on the well-behaviour of the clients.
评论 #9748425 未加载
评论 #9748412 未加载
kevin将近 10 年前
This is awesome! I think faceindex and facepad are my new favorite parameters. Is there a reason you decided to make faceindex not zero-based?<p>Also, will there be other options for &quot;fit&quot;? Like waldoarea?
评论 #9748109 未加载
评论 #9748304 未加载