SVG images don't have a "size" in terms of width value and height value in pixels unit, because they are vector graphics. So I don't think there is a way for Sitecore to recognize it.
When an SVG image is uploaded in Sitecore, the Width and Height fields are left blank:
The Size field is populated like for any other image type:
When an image in Sitecore doesn't have a value in the Width and Height fields, its
<img> HTML element will be rendered without the
height attributes. For example, if you include this image in a RTE field, the image element will be rendered as:
<img alt="" src="-/media/823B9A2DA31B4CF58AB3A037A3D5FC8D.ashx" />
<img alt="" src="-/media/823B9A2DA31B4CF58AB3A037A3D5FC8D.ashx?h=700&w=700" style="height: 700px; width: 700px;" width="700" height="700" />
NOTE: The Sitecore image resizing using query strings parameters (like
w) in the media asset url might not work for SVG images.