aboutsummaryrefslogtreecommitdiffstats
path: root/admin/element_set_ranks.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/element_set_ranks.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/admin/element_set_ranks.php b/admin/element_set_ranks.php
index 4c16b3cba..6c7a759ad 100644
--- a/admin/element_set_ranks.php
+++ b/admin/element_set_ranks.php
@@ -223,8 +223,14 @@ while ($row = pwg_db_fetch_assoc($result))
'tn_src' => $src,
'rank' => $current_rank * 10,
);
- $clipping[]= min($thumbnail_size[0]*0.75,$thumbnail_size[1]*0.75);
-
+ if ($thumbnail_size[0]<=128 and $thumbnail_size[1]<=128)
+ {
+ $clipping[]= min($thumbnail_size[0],$thumbnail_size[1]);
+ }
+ else
+ {
+ $clipping[]= min($thumbnail_size[0]*0.75,$thumbnail_size[1]*0.75);
+ }
$current_rank++;
}
$clipping=array_sum($clipping)/count($clipping);