# העלאות SVG מוצגות קטנות מדי

**URL:** <https://meta.discourse.org/t/svg-uploads-displayed-too-small/180283>\
**Category:** UX\
**Created:** [19 בפברואר,‏ 2021,‏ 1:18am UTC](https://meta.discourse.org/t/svg-uploads-displayed-too-small/180283 "2021-02-19T01:18:45Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![jamie.wilson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamie.wilson/32/185466_2.png) [@jamie.wilson](https://meta.discourse.org/u/jamie.wilson)\
**Post date:** [25 בפברואר,‏ 2021,‏ 8:45pm UTC](https://meta.discourse.org/t/svg-uploads-displayed-too-small/180283/7 "2021-02-25T20:45:58Z")

</div>

> [@mcdanlj](#):
>
> Scorch’s point above that the 12x8 pixels is probably not random but most likely due to not handling the units in the width and height attributes of the `svg` element:

You’re exactly right. The library we’re using to grab the image sizes just takes the integer value of the `width` and `height` attributes in the SVG files, and doesn’t attempt to parse any unit types. I’ll poke around and try to work out the cleanest solution for this issue.

I’ve been experimenting with a couple of the problematic files using both [ImageMagick](https://imagemagick.org) and [librsvg](https://en.wikipedia.org/wiki/Librsvg). It seems as though ImageMagick defaults to a DPI of 96, and librsvg defaults to 90. I guess either is fine as long as we pick a sensible default and stick to it…

---

_[View the full topic](https://meta.discourse.org/t/svg-uploads-displayed-too-small/180283)._
