aboutsummaryrefslogtreecommitdiffstats
path: root/tools/create_listing_file.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2011-04-08 09:09:13 +0000
committermistic100 <mistic@piwigo.org>2011-04-08 09:09:13 +0000
commit797ddead2ae5f678eee182993023f524f8536d9f (patch)
tree1a21201fd6898948b066d96930ea72a8ecac72a3 /tools/create_listing_file.php
parent6e3a69f232d1910f0f780f37c476b25964990f76 (diff)
bug:1791 display hd dimensions instead of websize dimensions
git-svn-id: http://piwigo.org/svn/trunk@10157 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--tools/create_listing_file.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/create_listing_file.php b/tools/create_listing_file.php
index 6cb509178..cb11d139e 100644
--- a/tools/create_listing_file.php
+++ b/tools/create_listing_file.php
@@ -738,6 +738,12 @@ function pwg_scan_file($file_full, &$line)
$high_file = $file_dir.'/'.$conf['high'].'/'.$file_base;
$element['high_filesize'] = floor(filesize($high_file) / 1024);
+
+ if ($high_size = @getimagesize($high_file))
+ {
+ $element['high_width'] = $high_size[0];
+ $element['high_height'] = $high_size[1];
+ }
}
// get EXIF meta datas