Increase thumbnail size by 50%

This commit is contained in:
Junior 2025-05-07 15:14:04 -04:00
parent 1ef310a2b7
commit 43af1b078e
2 changed files with 13 additions and 8 deletions

View File

@ -4,7 +4,7 @@ body {
color: #ddddd1;
font-family: 'Comic Sans MS';
font-weight: bold;
font-size: 10pt;
font-size: 15pt;
}
a, a:link, a:visited, a:active {
@ -12,6 +12,11 @@ a, a:link, a:visited, a:active {
color: #22dd22;
}
#sortorder {
cursor: pointer;
color: #22dd22;
}
.link {
cursor: pointer;
color: #22dd22;
@ -50,8 +55,8 @@ a, a:link, a:visited, a:active {
.item {
cursor: pointer;
width: 220px;
height: 330px;
width: 330px;
height: 495px;
margin: 5px;
border: 2px solid #ddddd1;
padding: 2px;

View File

@ -100,12 +100,12 @@ function makeThumb($item = "") {
$input->setImageFormat("jpg");
$width = $input->getImageWidth();
$height = $input->getImageHeight();
$scale = 200 / $width;
$newx = 200;
$scale = 300 / $width;
$newx = 300;
$newy = intval($height * $scale);
if ( $newy > 300 ) {
$newy = 300;
$scale = $height / 300;
if ( $newy > 450 ) {
$newy = 450;
$scale = $height / 450;
$newx = intval($width / $scale);
}
$thumb = substr($outfile, 0, -4) . ".jpg";