Skip to content

Can't see my own SVG uploaded files #939

@JoseGonzalez84

Description

@JoseGonzalez84

Describe the bug
I am uploading some icons in SVG format quite simple and yet it appears empty

To Reproduce
SVG that I am trying to upload:

<?xml version="1.0"?>
<svg width="512" height="512" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
 <g class="layer">
  <title>Layer 1</title>
  <path d="m482,73.14l0,45.72c0,40.28 -100.33,73.14 -224,73.14s-224,-32.86 -224,-73.14l0,-45.72c0,-40.28 100.33,-73.14 224,-73.14s224,32.86 224,73.14zm0,102.86l0,102.86c0,40.28 -100.33,73.14 -224,73.14s-224,-32.86 -224,-73.14l0,-102.86c48.13,33.14 136.21,48.57 224,48.57s175.87,-15.43 224,-48.57zm0,160l0,102.86c0,40.28 -100.33,73.14 -224,73.14s-224,-32.86 -224,-73.14l0,-102.86c48.13,33.14 136.21,48.57 224,48.57s175.87,-15.43 224,-48.57z" id="svg_1"/>
  <ellipse cx="-223.5" cy="220" fill="none" id="svg_2" rx="229" ry="168" transform="matrix(1 0 0 1 0 0)"/>
  <ellipse cx="354.5" cy="343" fill="#0000ff" id="svg_3" rx="100" ry="100"/>
  <text fill="#ffffff" font-family="Monospace" font-size="48" font-weight="bold" id="svg_4" stroke-width="0" text-anchor="middle" transform="matrix(4.79403 0 0 4.79403 -985.603 -1459.33)" x="279.74" xml:space="preserve" y="390.68">1</text>
 </g>
</svg>

Here can see it's uploaded

Image

And then...

Image

Expected behavior
I use others SVG files (with monochromatic style and more simple, like the next) and the behavior as the same. I guess that any SVG file properly formed might be shown without problem.

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
    <path d="m459.99,82.26c-5.82,-13.39 -15.86,-24.91 -28.61,-34.85c-19.18,-14.9 -44.76,-26.52 -74.67,-34.69c-29.92,-8.15 -64.21,-12.72 -100.71,-12.72c-55.62,0.04 -106.07,10.55 -143.85,28.37c-18.89,8.96 -34.69,19.76 -46.31,32.72c-5.79,6.48 -10.52,13.54 -13.83,21.17c-3.3,7.64 -5.15,15.87 -5.14,24.29l0,298.89c-0.01,8.42 1.84,16.67 5.14,24.29c5.82,13.39 15.87,24.92 28.61,34.86c19.18,14.9 44.76,26.53 74.67,34.7c29.92,8.14 64.21,12.7 100.71,12.71c55.63,-0.05 106.07,-10.55 143.85,-28.38c18.89,-8.96 34.69,-19.75 46.31,-32.71c5.79,-6.48 10.52,-13.54 13.83,-21.18c3.3,-7.62 5.15,-15.87 5.14,-24.29l0,-298.89c0.01,-8.42 -1.83,-16.65 -5.14,-24.29zm-23.71,323.18c-0.01,4.29 -0.89,8.48 -2.77,12.84c-3.26,7.6 -9.84,15.77 -19.86,23.55c-14.96,11.7 -37.37,22.26 -64.52,29.62c-27.16,7.39 -59.06,11.71 -93.13,11.7c-51.91,0.05 -98.82,-10.08 -131.5,-25.6c-16.36,-7.72 -29.07,-16.78 -37.15,-25.86c-4.06,-4.54 -6.98,-9.06 -8.86,-13.41c-1.88,-4.36 -2.76,-8.55 -2.77,-12.84l0,-49.36c16.68,15.25 40.11,27.43 68.13,36.43c32.3,10.32 70.79,16.25 112.15,16.26c55.16,-0.03 105.16,-10.49 142.31,-28.03c14.93,-7.08 27.69,-15.37 37.97,-24.8l0,49.5zm0,-84.24c-2.05,4.4 -4.98,8.81 -8.94,13.27c-12.78,14.39 -35.92,27.95 -65.77,37.44c-29.84,9.55 -66.29,15.23 -105.57,15.22c-52.37,0.03 -99.73,-10.14 -133.05,-25.95c-16.67,-7.87 -29.76,-17.14 -38.29,-26.71c-3.96,-4.46 -6.89,-8.87 -8.94,-13.26l0,-64.76c16.68,15.25 40.11,27.43 68.13,36.44c32.3,10.31 70.79,16.24 112.15,16.25c55.16,-0.03 105.16,-10.5 142.31,-28.03c14.93,-7.08 27.69,-15.36 37.97,-24.79l0,64.88zm0,-99.63c-2.05,4.4 -4.98,8.81 -8.94,13.26c-12.78,14.4 -35.92,27.96 -65.77,37.44c-29.84,9.55 -66.29,15.23 -105.57,15.23c-52.37,0.02 -99.73,-10.14 -133.05,-25.94c-16.67,-7.87 -29.76,-17.15 -38.29,-26.73c-3.96,-4.45 -6.89,-8.86 -8.94,-13.26l0,-64.75c16.68,15.26 40.11,27.43 68.13,36.44c32.3,10.32 70.79,16.25 112.15,16.25c55.16,-0.03 105.16,-10.49 142.31,-28.03c14.93,-7.08 27.69,-15.36 37.97,-24.79l0,64.88zm0,-99.63c-2.05,4.4 -4.98,8.82 -8.94,13.27c-12.78,14.4 -35.92,27.95 -65.77,37.45c-29.84,9.55 -66.29,15.23 -105.57,15.22c-52.37,0.03 -99.73,-10.14 -133.05,-25.95c-16.67,-7.88 -29.76,-17.15 -38.29,-26.72c-3.96,-4.45 -6.89,-8.87 -8.94,-13.26l0,-15.4c0.01,-4.29 0.89,-8.47 2.77,-12.83c3.27,-7.61 9.85,-15.77 19.86,-23.56c14.97,-11.7 37.37,-22.25 64.52,-29.61c27.16,-7.4 59.06,-11.71 93.13,-11.7c51.91,-0.05 98.82,10.08 131.5,25.6c16.36,7.71 29.06,16.77 37.15,25.86c4.06,4.54 6.98,9.05 8.86,13.41c1.88,4.36 2.76,8.54 2.77,12.83l0,15.39z"/>
</svg>

its weird because, using one SVG from this same project (path src/renderer/images/svg/cube.svg), the look-and-feel are same...

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
    <path d="M21,16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V7.5C3,7.12 3.21,6.79 3.53,6.62L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.79,6.79 21,7.12 21,7.5V16.5M12,4.15L6.04,7.5L12,10.85L17.96,7.5L12,4.15Z" />
</svg>

In this case works.

Image

Application & Environment

  • Antares 0.7.30
  • OS name: Windows 11 Pro
  • OS version: 24H2

Metadata

Metadata

Assignees

Labels

bug 🪲Something isn't working

Type

No type

Projects

Status

✔ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions