mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-02 11:32:52 +02:00
bug:2683
create get_size_css git-svn-id: http://piwigo.org/svn/branches/2.4@16507 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user