Increase thumbnail size by 50%
This commit is contained in:
parent
1ef310a2b7
commit
43af1b078e
|
@ -4,7 +4,7 @@ body {
|
||||||
color: #ddddd1;
|
color: #ddddd1;
|
||||||
font-family: 'Comic Sans MS';
|
font-family: 'Comic Sans MS';
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 10pt;
|
font-size: 15pt;
|
||||||
}
|
}
|
||||||
|
|
||||||
a, a:link, a:visited, a:active {
|
a, a:link, a:visited, a:active {
|
||||||
|
@ -12,6 +12,11 @@ a, a:link, a:visited, a:active {
|
||||||
color: #22dd22;
|
color: #22dd22;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#sortorder {
|
||||||
|
cursor: pointer;
|
||||||
|
color: #22dd22;
|
||||||
|
}
|
||||||
|
|
||||||
.link {
|
.link {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: #22dd22;
|
color: #22dd22;
|
||||||
|
@ -50,8 +55,8 @@ a, a:link, a:visited, a:active {
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: 220px;
|
width: 330px;
|
||||||
height: 330px;
|
height: 495px;
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
border: 2px solid #ddddd1;
|
border: 2px solid #ddddd1;
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
|
|
|
@ -100,12 +100,12 @@ function makeThumb($item = "") {
|
||||||
$input->setImageFormat("jpg");
|
$input->setImageFormat("jpg");
|
||||||
$width = $input->getImageWidth();
|
$width = $input->getImageWidth();
|
||||||
$height = $input->getImageHeight();
|
$height = $input->getImageHeight();
|
||||||
$scale = 200 / $width;
|
$scale = 300 / $width;
|
||||||
$newx = 200;
|
$newx = 300;
|
||||||
$newy = intval($height * $scale);
|
$newy = intval($height * $scale);
|
||||||
if ( $newy > 300 ) {
|
if ( $newy > 450 ) {
|
||||||
$newy = 300;
|
$newy = 450;
|
||||||
$scale = $height / 300;
|
$scale = $height / 450;
|
||||||
$newx = intval($width / $scale);
|
$newx = intval($width / $scale);
|
||||||
}
|
}
|
||||||
$thumb = substr($outfile, 0, -4) . ".jpg";
|
$thumb = substr($outfile, 0, -4) . ".jpg";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user