Automated image generation
Open in chat • 7 posts (analysis)
• Page 1 of 1
-

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:
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.

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).

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.

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.

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).

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.

-

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.
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.
-

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"? ^_^'
-

Veolian Commonwealth - Faction
I have switched over all my IC accounts. This makes sure I don't have to upload anything twice again ^_^
A new method has been implemented.
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.

EDIT: apparently 'affiliation' triggers a lot of adblockers. I have renamed the method 'characterlogo'.
- 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.

EDIT: apparently 'affiliation' triggers a lot of adblockers. I have renamed the method 'characterlogo'.
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:

Example of faction without logo:

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:

Example of faction without logo:

Awesome, this looks really useful 
7 posts (analysis)
• Page 1 of 1

