Character Pictures
-
A few things…
First, I added a call for the “inset” style image that Blizzard uses. I prefer those to the smaller avatar.
https://www.ministryofdefense.net/raiding/raid-team/
(I have other customizations as well, but that’s the big one)
For anyone wanting to use the “inset” pictures:
Open wowpiimageprocessing.php
On line 58, add:$inset_image_uri = 'https://render-'.$region.'.worldofwarcraft.com/character/'.$image_uri_arr[0].'/'.$image_uri_arr[1].'/'.$image_uri_arr[2].'-inset.jpg';
On line 76, add:
$inset_image_get = file_get_contents($inset_image_uri); if($inset_image_get!==false) { file_put_contents($wowpi_upload_dir.'character_inset_'.$image[0].'.jpg',$inset_image_get); }
Open wowpi_views.php
On line 121, change “avatar” to “inset”, or replace the whole line with…echo '<a href="'.$upload_dir['baseurl'].'/wowpi/character_profile_'.$thumbnail.'.jpg'.'"><img src="'.$upload_dir['baseurl'].'/wowpi/character_inset_'.$thumbnail.'.jpg'.'" class="character_image" /></a>';
Second, images get outdated as soon as someone changes their transmog. I don’t know how to force-update the image…I have the character update set to every 2 hours in settings, but a full 12 hours later, characters are still out of date. Which leads to…
Third, rather than downloading the image onto our site (which is going to get bloated over time) I’d like to just link to the images that Blizzard has directly. I think it will be much faster loading as well (though obviously if Blizzard changes the link style again it will require updating, but I’m willing to deal with that should it happen).
I’m not really a PHP wizard, so I haven’t attempted to construct that myself. If anyone would like to tackle that, I’m keeping an eye open for updates. Alternatively I may tackle it and later update this page with results. Essentially I’d be linking to
https://render-[REGION].worldofwarcraft.com/character/[PERSONALIZED CHARACTER INFO]
- The topic ‘Character Pictures’ is closed to new replies.