diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/derivative.inc.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/derivative.inc.php b/include/derivative.inc.php index a3b944e72..d19b5a1b8 100644 --- a/include/derivative.inc.php +++ b/include/derivative.inc.php @@ -314,6 +314,15 @@ final class DerivativeImage return $this->params->compute_final_size($this->src_image->get_size()); } + function get_size_css() + { + $size = $this->get_size(); + if ($size) + { + return 'width:'.$size[0].'px; height:'.$size[1].'px'; + } + } + function get_size_htm() { $size = $this->get_size(); |