Archived
1
0
Fork 0
This repository has been archived on 2018-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
sjqg/funktionen/thumbnail.php

15 lines
389 B
PHP
Raw Normal View History

<?
$thumbsizes = array();
$thumbwidthsum = 2;
$thumbheight = 67;
foreach ($allfiles as $filename) {
$directory = dirname($filename);
$basename = basename($filename);
$thumbfile = $directory .
DIRECTORY_SEPARATOR . $basename;
if ($thumbsize = getimagesize($thumbfile)) {
$thumbsizes[$thumbfile] = $thumbsize;
$thumbwidthsum = $thumbwidthsum + $thumbsize[0] + 3;
}
}
?>