Skip to content

Normalise undersized race icons to the set's 44x44 (#3) - #7

Merged
avandenberghe merged 1 commit into
mainfrom
issue-3-icon-dimensions
Sep 24, 2026
Merged

avandenberghe merged 1 commit into
mainfrom
issue-3-icon-dimensions

Conversation

@avandenberghe

Copy link
Copy Markdown
Collaborator

Refs #3 — the size half. Kept open for the missing swtor_unknown.png.

Togruta and Nautolan (male and female) shipped at 20x20 against every other race icon's 44x44. The roster renders these files at their natural size with no width/height attributes, so those rows misaligned.

Approach

Each of the four is centred on a transparent 44x44 canvas, not upscaled. The issue asks for them "recreated at 44x44 in the same style", which resampling can't honestly deliver — a 20x20 source blown up to 44x44 is visibly soft next to native 44px art. Padding keeps the original pixels crisp and is fully reversible; the tradeoff is that the artwork still reads smaller than its neighbours. Real 44x44 art is still the better fix, which is why this is Refs, not Closes.

Tests

swtor_icon_dimensions_test guards both race_images/ and class_images/ at 44x44, so another odd-sized icon can't slip in unnoticed.

Still open on #3

class_images/swtor_unknown.png (referenced by class_id 0) doesn't exist. There's no official source to pull it from, unlike the GW2 spec icons — it needs authoring. With avathar/bbguild#389 merged, class_id 0 now renders no image rather than a broken one.

🤖 Generated with Claude Code

Togruta and Nautolan (male and female) shipped at 20x20 against every
other race icon's 44x44, so those rows misaligned — the roster renders
these files at their natural size, with no width/height attributes.

Each is centred on a transparent 44x44 canvas rather than upscaled: the
original pixels stay crisp and the change is reversible, at the cost of
the artwork still reading smaller than its neighbours. Replacing them
with real 44x44 art remains the better fix.

test_race_images_are_all_44x44 / _class_images_ guard both sets against
another odd-sized icon slipping in.

swtor_unknown.png (class_id 0) is still missing, so #3 stays open.

Refs #3

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@avandenberghe
avandenberghe merged commit 0edd205 into main Sep 24, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant