Add portrait rotation code, current images, and the template used for Glamdrol.

This commit is contained in:
Ignacio R. Morelle 2009-08-10 14:58:34 +00:00
parent 2cdcf373f4
commit 690bed88c6
16 changed files with 39 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -0,0 +1,17 @@
New files for the wesnoth.org frontpage portrait rotation
should be made based on the template file in this directory.
I personally recommend using the JPEG format with some
appropriate parameters (and a good exporter program) so that
the images are neither too large in file size, nor look
ugly/blurry/with compression artifacts.
All image files should use the *.jpg extension; otherwise
you'll need to change selector.php.
The selector.php code may be used in place of an actual
image file in CSS, HTML, whatever; the client just tries to
fetch it and the server runs the PHP, delivering one of the
*.jpg files in the directory.
-- Ignacio

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View file

@ -0,0 +1,22 @@
<?php
/*
* Random image selector by Ignacio R. Morelle <shadowm2006@gmail.com>
* This file is in public domain.
*/
$d_entries = glob(dirname(__FILE__)."/*.jpg");
$index = rand(0,sizeof($d_entries)-1);
$d_entry = $d_entries[$index];
if(file_exists($d_entry)) {
header('Content-type: image/jpeg');
header('Pragma: no-cache');
ob_clean();
flush();
readfile($d_entry);
}
exit;
?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB