diff --git a/src/PHPePub/Core/EPub.php b/src/PHPePub/Core/EPub.php index 71994e4..5f43e90 100644 --- a/src/PHPePub/Core/EPub.php +++ b/src/PHPePub/Core/EPub.php @@ -619,11 +619,12 @@ function getImage($source) { // SVG image. $xml = simplexml_load_string($image); $attr = $xml->attributes(); - $width = $attr->width; - $height = $attr->height; $mime = "image/svg+xml"; $ext = "svg"; + /* + $width = $attr->width; + $height = $attr->height; $ratio = $this->getImageScale($width, $height); if ($ratio < 1) { @@ -631,6 +632,7 @@ function getImage($source) { $attr->height = $height * $ratio; } $image = $xml->asXML(); + */ } else { $imageFile = imagecreatefromstring($image); if ($imageFile !== false) {