In phpBB 3.0.x, I could rotate through the images and accommodate their different sizes (generally from 100 to 300 pixels) by simply not specifying the image size, and it would resize automatically.
In
/styles/prosilver/imageset/imageset.cfg
, I would just do this:
Code: Select all
img_site_logo = site_logo.jpg
/styles/prosilver/theme/colours.css
from:
Code: Select all
.site_logo {
background-image: url("./images/site_logo.gif");
}
Code: Select all
.site_logo {
background-image: url("./images/site_logo.jpg");
}
Right now, in
/styles/prosilver/theme/common.css
, I have put in something that is roughly the size of the larger rotating logos:
Code: Select all
.site_logo {
display: inline-block;
width: 250px;
height: 175px;a*/
}
(don't judge us)
I can read the size of the image using the following php code:
Code: Select all
<?php
$zzsize = getimagesize("/home/stellarp/www/phpBB3/styles/prosilver/theme/images/site_logo.jpg");
$zzw = $zzsize[0];
$zzh = $zzsize[1];
?>
/styles/prosilver/theme/common.css
, which would automatically resize when the logos change.