gw2-class-icons
v0.3.0
Published
Guild Wars 2 class icons as npm assets with path helpers.
Maintainers
Readme
gw2-class-icons
This repository provides optimized and enhanced Guild Wars 2 (GW2) wiki class icons tailored for use in applications and Discord servers. It collects high-resolution reinterpretations, losslessly optimized assets, and ready-to-use sizes so developers and community maintainers can quickly add crisp class icons to apps, bots, and emoji collections.
Purpose
- Provide a single source of truth for GW2 class icons optimized for different targets (apps, web, Discord).
- Maintain high-quality assets while reducing file size and ensuring transparent backgrounds and consistent naming.
Contents
wiki/high-res/: brand-new, high-resolution reinterpretations of the existing GW2 wiki icons.wiki/optimized/: losslessly optimized and resized versions intended for production use, generated via an enhanced script.wiki/raw/: the actual GW2 wiki icons in their original form.
Usage
- These icons are provided as-is for free usage within the bounds of the original rights holders.
- Not intended for monetary use or redistribution.
npm package
npm install gw2-class-iconsconst { getIconPath, hasIcon, iconNames, iconSizes } = require("gw2-class-icons");
const guardian40 = getIconPath("Guardian", "40px");
// => "wiki/40px/Guardian.png"
const guardianAbsolute = getIconPath("Guardian", "40px", { absolute: true });
// => "/.../node_modules/gw2-class-icons/wiki/40px/Guardian.png"
const exists = hasIcon("Guardian", "svg");
// => trueYou can also reference files directly from the package:
gw2-class-icons/wiki/20px/Guardian.pnggw2-class-icons/wiki/40px/Guardian.pnggw2-class-icons/wiki/150px/Guardian.pnggw2-class-icons/wiki/high-res/Guardian.pnggw2-class-icons/wiki/raw/Guardian.pnggw2-class-icons/wiki/svg/Guardian.svg
Optimization notes
- Images are optimized to preserve visual fidelity while minimizing bytes. Formats include PNG (lossless) and optionally WebP for modern apps.
- Keep transparency intact for overlay use in UIs and messaging apps.
Contributing
- Add new or improved icons to
wiki/raw/orwiki/high-res/and open a PR with a short description of the source and intended output sizes. - If you have a bulk optimization script or CI step, include it in the PR so others can reproduce results.
Credits & License
- Icons originate from the GW2 wiki; respect the original wiki licensing and attribution requirements.
- This repository is intended to redistribute optimized builds for convenience — include attribution where required and follow the wiki's license terms.
- Legal disclosure: © ArenaNet LLC. All rights reserved. NCSOFT, ArenaNet, Guild Wars, Guild Wars 2, GW2, Heart of Thorns, Path of Fire, End of Dragons, Secrets of the Obscure, Janthir Wilds, Visions of Eternity, and all associated logos, designs, and composite marks are trademarks or registered trademarks of NCSOFT Corporation. All other trademarks are the property of their respective owners.
Class Icon Table
| class | Raw (20px) | Optimized (40px) | Enhanced (150px+) |
| --- | --- | --- | --- |
| Amalgam |
| | |
| Antiquary |
| | |
| Berserker |
| | |
| Bladesworn |
| | |
| Catalyst |
| | |
| Chronomancer |
| | |
| Conduit |
| | |
| Daredevil |
| | |
| Deadeye |
| | |
| Dragonhunter |
| | |
| Druid |
| | |
| Elementalist |
| | |
| Engineer |
| | |
| Evoker |
| | |
| Firebrand |
| | |
| Galeshot |
| | |
| Guardian |
| | |
| Harbinger |
| | |
| Herald |
| | |
| Holosmith |
| | |
| Luminary |
| | |
| Mechanist |
| | |
| Mesmer |
| | |
| Mirage |
| | |
| Necromancer |
| | |
| Paragon |
| | |
| Ranger |
| | |
| Reaper |
| | |
| Renegade |
| | |
| Revenant |
| | |
| Ritualist |
| | |
| Scourge |
| | |
| Scrapper |
| | |
| Soulbeast |
| | |
| Specter |
| | |
| Spellbreaker |
| | |
| Tempest |
| | |
| Thief |
| | |
| Troubadour |
| | |
| Untamed |
| | |
| Vindicator |
| | |
| Virtuoso |
| | |
| Warrior |
| | |
| Weaver |
| | |
| Willbender |
| | |
