related to #1657 remove is_svg from code in gallery

This commit is contained in:
Matthieu Leproux
2022-08-29 14:09:44 +02:00
parent fba93e05b9
commit 7946a33780
3 changed files with 3 additions and 8 deletions
-5
View File
@@ -163,7 +163,6 @@ function get_sync_metadata($infos)
$infos['filesize'] = floor($fs/1024);
$is_tiff = false;
$is_svg = false;
if (isset($infos['representative_ext']))
{
@@ -185,8 +184,6 @@ function get_sync_metadata($infos)
if (in_array(mime_content_type($file), array('image/svg+xml', 'image/svg')))
{
$is_svg = true;
$xml = file_get_contents($file);
$xmlget = simplexml_load_string($xml);
@@ -195,8 +192,6 @@ function get_sync_metadata($infos)
$height = (int) $xmlattributes->height;
$vb = (string) $xmlattributes->viewBox;
$infos['is_svg'] = $is_svg;
if (isset($width) and $width != "")
{
$infos['width'] = $width;