{"action":"created","issue":{"url":"https://api.github.com/repos/arenanet/api-cdi/issues/65","labels_url":"https://api.github.com/repos/arenanet/api-cdi/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/arenanet/api-cdi/issues/65/comments","events_url":"https://api.github.com/repos/arenanet/api-cdi/issues/65/events","html_url":"https://github.com/arenanet/api-cdi/issues/65","id":96139783,"number":65,"title":"The secrets of rendering guild emblems","user":{"login":"codemasher","id":592497,"avatar_url":"https://avatars.githubusercontent.com/u/592497?v=3","gravatar_id":"","url":"https://api.github.com/users/codemasher","html_url":"https://github.com/codemasher","followers_url":"https://api.github.com/users/codemasher/followers","following_url":"https://api.github.com/users/codemasher/following{/other_user}","gists_url":"https://api.github.com/users/codemasher/gists{/gist_id}","starred_url":"https://api.github.com/users/codemasher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codemasher/subscriptions","organizations_url":"https://api.github.com/users/codemasher/orgs","repos_url":"https://api.github.com/users/codemasher/repos","events_url":"https://api.github.com/users/codemasher/events{/privacy}","received_events_url":"https://api.github.com/users/codemasher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-20T19:27:22Z","updated_at":"2015-07-21T19:51:22Z","closed_at":null,"body":"So there's the ```v1/guild_details``` API that enables us to render guild emblems on the fly - the question still is: _how?_\r\nThe results have been mediocre at best ([chance hit](http://gw2.chillerlan.net/examples/gw2emblems.php?guild_id=75FD83CF-0C45-4834-BC4C-097F93A487AF)) because none of us knows the secrets of postprocessing these images.\r\n\r\nSo would it be possible for you to give us an example how to properly render guild emblems?\r\n(preferably in a language thats read- and/or usable for most of us (PHP! :P)\r\nThe example above has been created by [this cheap examply example code](https://github.com/codemasher/gw2api-tools/blob/master/examples/gw2emblems.php).\r\n\r\nSee also this thread: https://forum-en.guildwars2.com/forum/community/api/API-Suggestion-Guilds/page/2#post2155863"},"comment":{"url":"https://api.github.com/repos/arenanet/api-cdi/issues/comments/123460038","html_url":"https://github.com/arenanet/api-cdi/issues/65#issuecomment-123460038","issue_url":"https://api.github.com/repos/arenanet/api-cdi/issues/65","id":123460038,"user":{"login":"codemasher","id":592497,"avatar_url":"https://avatars.githubusercontent.com/u/592497?v=3","gravatar_id":"","url":"https://api.github.com/users/codemasher","html_url":"https://github.com/codemasher","followers_url":"https://api.github.com/users/codemasher/followers","following_url":"https://api.github.com/users/codemasher/following{/other_user}","gists_url":"https://api.github.com/users/codemasher/gists{/gist_id}","starred_url":"https://api.github.com/users/codemasher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codemasher/subscriptions","organizations_url":"https://api.github.com/users/codemasher/orgs","repos_url":"https://api.github.com/users/codemasher/repos","events_url":"https://api.github.com/users/codemasher/events{/privacy}","received_events_url":"https://api.github.com/users/codemasher/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T19:51:22Z","updated_at":"2015-07-21T19:51:22Z","body":">In my experience, PHP brings wrong color values in conjunction with Imagick.\r\n\r\nNo, it's about the post processing. I had the same result at first, using the GD library.\r\n\r\n\r\n>Yeah, I should dig out the foreground/background images and put 'em into /v2/files or something. \r\n\r\nThis would be great! (but i guess it'd blow up /v2/files with ~200 additional items)\r\n\r\n>IIRC the reason some of the renders are mediocre is because the official foreground/background source files are fairly low-res.\r\n\r\nAs for my example, it may also be PHP's  ```imgantialias()``` which maybe decreased the quality, but mostly the guessed post processing.\r\n\r\nBtw. I've pulled together that above example script and cleaned it a bit up to a single file /w no dependencies: https://gist.github.com/codemasher/1cf2a5b0c323b0e67aef"}}