I tried to use getimagesize() on an SVG file, but it failed.
I know that SVG is “Scalable Vector Graphics”, but I find that Google Chrome’s “Review elements” can perfectly get the dimensions of an SVG picture, so I suspect that this is also possible in PHP.
If it is difficult to get the dimensions, is there any way to judge whether an SVG picture is vertical or horizontal?