Req #71517 [Opn]: Implement SVG support for getimagesize() and friends

From: Date: Fri, 07 Oct 2016 18:09:30 +0000
Subject: Req #71517 [Opn]: Implement SVG support for getimagesize() and friends
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204535@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71517&edit=1 ID: 71517 Updated by: cmb@php.net Reported by: captlid at yahoo dot com Summary: Implement SVG support for getimagesize() and friends Status: Open Type: Feature/Change Request Package: GetImageSize related Operating System: windows 8.1 pro and linux PHP Version: Irrelevant Block user comment: N Private report: N New Comment: SVG is not yet supported by getimagetype(), so this qualifies as feature request. Previous Comments: ------------------------------------------------------------------------ [2016-02-03 17:35:37] captlid at yahoo dot com Description: ------------ --- From manual page: http://www.php.net/function.getimagesize --- The width and height for svg files is not outputting. Tested on windows 8.1, 7, xp professional versions, which ever linux godaddy runs on, php versions 5.4.1.4, apache server 2 All software is 64 bit. Test script: --------------- <? $size = getimagesize("black150.svg"); echo $size[0]. ' ' .$size[1]; ?> <img src="black150.svg" width="<?=$size[0]?>" height="<?=$size[1]?>"> The svg file for reference <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="500" height="150"> <rect width="500" height="150" style="fill:black;stroke-width:0px;stroke:blue;" /> <text text-anchor="middle" y="5" fill="white" style="font-size:18pt;font-weight:bolder !important; font-family:times new roman"> Sample text, just for demonstration purposes </text> </svg> Expected result: ---------------- the width and height of the image output: 150 500 Actual result: -------------- nothing shows. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71517&edit=1

« previous php.bugs (#204535) next »