feat: switch avatar imager to epicnabbo.nl with figure conversion

- Update imager to use epicnabbo.nl by default with effect=14 and img_format=apng
- Add figure string converter (old Habbo format -> epicnabbo.nl short format)
- Update avatarImageUrl to auto-convert figure strings
- Update online-users-widget to use new avatarImageUrl
- Add tests for imager and figure conversion
This commit is contained in:
openhands committed 2026-08-09 19:38:04 +02:00
1 parent 703c29bc83
commit fc7e6ca248
10 files changed
+270 -114

No files matched your search

+2 -1
View File
@@ -1,6 +1,7 @@
"use client";
import Image from "next/image";
import { avatarImageUrl } from "@/lib/format";
export interface OnlineUser {
id: number;
@@ -55,7 +56,7 @@ export function OnlineUsersWidget({
>
<div className="relative flex-none w-[50px] h-[62px]">
<Image
src={`https://www.habbo.com/habbo-imaging/avatarimage?width=50&height=62&direction=2&headonly=1&crop=face&action=wav&gender=m&look=${encodeURIComponent(user.look)}`}
src={avatarImageUrl(user.look, { size: "s", headOnly: true })}
alt={user.username}
fill
className="rounded object-cover border border-[var(--admin-border)]"