Vector
in package
Support for reading image size from SVG
Table of Contents
Methods
- getSizes() : array<string|int, int>|null
- Get SVG sizes, returns FALSE on error, NULL for no size references
- readViewBox() : array<string|int, int>
- Parse image size from viewbox attribute
Methods
getSizes()
Get SVG sizes, returns FALSE on error, NULL for no size references
public
static getSizes(string $string) : array<string|int, int>|null
Parameters
- $string : string
Return values
array<string|int, int>|nullreadViewBox()
Parse image size from viewbox attribute
private
static readViewBox(string $val) : array<string|int, int>
Parameters
- $val : string