Automated image generation

Post any bugs, problems or feature requests here.
Brend
Veolian Commonwealth Brend
Mercury
Mercury
Elmer
Elmer

Automated image generation

Post Veolian Commonwealth » Sun Jan 08, 2012 10:57 pm
User avatar
Veolian Commonwealth
Faction
 
I have implement some methods that are part of extending the wiki and the forum. This extension works by using a special image URL.

The server understands the following URLs:
Code: Select all
http://fwurg.xs4all.nl/images/special/logo/{faction pageid}/{width}x{height}.png
http://fwurg.xs4all.nl/images/special/character/{character pageid}/{width}x{height}.png
http://fwurg.xs4all.nl/images/special/representative/{character pageid}/{width}x{height}.png



Faction Logos
The FWURG server knows how to display your faction logo. This is usable on itself, but will also be used to display faction logo's with special wiki and forum plugins later on.

Image Image Image


Character portraits
The FWURG server knows how to resize character portraits. This is not extremely useful by itself, but is offered because it had to be built anyway. It also handles non-square sizes.

The Image_img entry on the wiki must be absolute (i.e., it must start with something like :ic:) and the image name must be written exactly as the media manager says (i.e., it is case sensitive).

Image Image Image Image


Representative portraits
The best one: the FWURG server knows how to add a faction logo to a character portrait. This allows you to use an image of your senator (as you uploaded it to the wiki) with an overlaid faction logo (that you have added on the wiki).

Take care, the server only tries the first faction it sees an a character's Affiliations list, so make sure they actual HAVE a faction. Internally this special image uses the character portrait and the faction logo images, so any of their conditions (such as naming of Image_img) are also requried for this special.

Image Image Image
Post Veolian Commonwealth » Sun Jan 08, 2012 11:00 pm
User avatar
Veolian Commonwealth
Faction
 
It appears the forum does not allow you to use these special images. (It goes on about the image being 0 by 0 pixels, which is clearly not the case.)

I will look into enabling these images as forum avatars soon. This would allow people to upload only a single character portrait, add a logo to their faction, and have the forum use the representative image.

EDIT: Apparently phpBB3 has an 'Enable Remote Avatars' option. I will inform admin of this immediately.
Post Mercury » Sun Jan 08, 2012 11:58 pm
User avatar
Mercury
Storyteller
 
The remote avatars option is now enabled - I had it turned off because I figured all images would be hosted on this server anyway, but apparently phpBB feels that a different directory on the same server is "remote"? ^_^'
Post Veolian Commonwealth » Mon Jan 09, 2012 2:24 am
User avatar
Veolian Commonwealth
Faction
 
I have switched over all my IC accounts. This makes sure I don't have to upload anything twice again ^_^
Post Brend » Sun Feb 26, 2012 7:46 pm
User avatar
Brend
 
A new method has been implemented.

Code: Select all
http://fwurg.xs4all.nl/images/special/characterlogo/{character pageid}/{width}x{height}.png


Affiliation logo
The FWURG server tries to render the first affiliation logo of a character. If the character has no affiliation, the logo is empty.

Image Image Image


EDIT: apparently 'affiliation' triggers a lot of adblockers. I have renamed the method 'characterlogo'.
Post Brend » Wed May 30, 2012 2:07 pm
User avatar
Brend
 
I've added placeholder images for when no logo or character image could be retrieved.

This makes it so the representative image works even if no affiliations are set, and all logo's are rendered, even if there is no Logo property (it will display the placeholder: a uniform grey.)

Example of representative with un-logo'ed faction:
Image

Example of faction without logo:
Image
Post Elmer » Wed May 30, 2012 8:14 pm
Elmer
 
Awesome, this looks really useful :D
Player of the Teprogrenaian Consensus inner world
You need a picture? Pm me ;)

Return to Technical

cron