Normalize class icon artwork so all 8 look visually the same size
Fixing the container frame (previous commit) wasn't enough - the source PNGs have different content-to-canvas ratios and aspect ratios, so object-fit: contain still rendered each icon at a different effective size within an identically-sized box. Cropped each icon to its actual non-transparent bounding box, then centered it on a uniform 64x64 canvas at a consistent max content size (46px). class_icon_url() now points at these normalized copies; originals are untouched. Applies everywhere the function is used (signup picker and raid member lists), verified via screenshot. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
BIN
assets/images/Classes/normalized/Assassin_ICO.png
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
assets/images/Classes/normalized/Chanter_ICO.png
Normal file
|
After Width: | Height: | Size: 4 KiB |
BIN
assets/images/Classes/normalized/Cleric_ICO.png
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
BIN
assets/images/Classes/normalized/Gladiator_ICO.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
assets/images/Classes/normalized/Ranger_ICO.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
assets/images/Classes/normalized/Sorcerer_ICO.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
assets/images/Classes/normalized/Spiritmaster_ICO.png
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
assets/images/Classes/normalized/Templar_ICO.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
|
|
@ -164,5 +164,5 @@ function class_icon_url(string $className): ?string
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return '/assets/images/Classes/' . $map[$key];
|
return '/assets/images/Classes/normalized/' . $map[$key];
|
||||||
}
|
}
|
||||||
|
|
|
||||||