Built a site for rendering emblems...
“An error occurred in the application and your page could not be served. Please try again in a few moments.” Over quota or something?
“An error occurred in the application and your page could not be served. Please try again in a few moments.”
Over quota or something?
yeah, got more traffic than I expected, and it probably wasn’t ready for public consumption
Hmm, the colors are way too dark/bright/wrong: http://guilds.gw2w2w.com/guilds/Veterans-Of-Lions-Arch/256.svg compared to: http://gw2.chillerlan.net/examples/gw2emblems.php?guild_id=75FD83CF-0C45-4834-BC4C-097F93A487AF&size=256
Have you seen this: https://forum-en.gw2archive.eu/forum/community/api/API-Suggestion-Guilds/2155863 (plus postings before and after)
(edited by smiley.1438)
Hmm, the colors are way too dark/bright/wrong: http://guilds.gw2w2w.com/guilds/Veterans-Of-Lions-Arch/256.svg compared to: http://gw2.chillerlan.net/examples/gw2emblems.php?guild_id=75FD83CF-0C45-4834-BC4C-097F93A487AF&size=256
Have you seen this: https://forum-en.gw2archive.eu/forum/community/api/API-Suggestion-Guilds/2155863 (plus postings before and after)
I’ll have to see what I can do about the colors, the emblem rendering is based on https://github.com/mtodor/gw2emblem, and he uses a hardcoded color list. I’ll see if I get better results pulling from the api directly
You’ll need also to recalculate the color base depending on the background color, see here:
https://github.com/codemasher/gw2api-tools/blob/master/inc/color.inc.php#L117
The script calculates the color base for every pixel. Since SVG paths/elements can only have gradients or uni colors, you can possibly shrink that down and pick only 2 or 3 colors as base and do the calculation on these.
this is my emblem script: https://github.com/codemasher/gw2api-tools/blob/master/examples/gw2emblems.php
(edited by smiley.1438)