GT7 SVG request thread.

  • Thread starter Thread starter daan
  • 6,341 comments
  • 555,645 views
It's not just you, lately some fully functional SVGs, once uploaded on GTP, result in somehow corrupted files, not every single one, but too many anyway.
For example, this is how that one looks on SVGOMG after I downloaded it from GTP:

View attachment 1477004

The only reason that file doesn't work is that it's a png that's been renamed *.svg


1757061966724.webp



Open any file that's not working in Notepad....

If it looks like the one on the right, you've saved a PNG file with an SVG extension. It should be human readable XML like the one on the left.

1757063390307.webp
 
Last edited:
testing

edit: not necessary.
There's a way to replicate this, I noticed that a zipped folder with the svg in it works as a workaround. Download the zip, you'll get a working 14.8kb svg (not a png renamed), then attach it unzipped and see the result: I get an 11.7kb corrupted file.

@MatskiMonk edit: I can't open your 13.5 kb file anywhere, neither as an svg nor as a raster image (it still retains the .svg extension)
 

Attachments

Last edited:
then upload it unzipped and see the result: I get an 11.7kb corrupted file.
edit: downloaded file was indeed corrupt

except it's not "corrupt" svg, change the file name to *.png...

and you get a working PNG... (with transparent background, not black)

1757072779016.webp



The forum is obviously deciding to convert svg to png on some uploads, without changing the file name.

... but this hasn't happened with everything, I've downloaded other SVGs on the page which have worked (I did so in order to make that notepad screen shot earlier)

Perhaps the forum now needs the <?xml version> meta tag to be present in the file in order to not convert to a PNG? it was in the 'ogp' file I grabbed earlier, but not in you drawing-1 file.

@Jordan, sorry to drag you in to this, but have any recent changes been likely to affect the SVG uploaded function?
 

Attachments

Last edited:
I can't open your 13.5 kb file anywhere, neither as an svg nor as a raster image (it still retains the .svg extension)

Yeah this was just a copy of what I'd opened from your zip. Change the extension to png and it'll work in anything that opens pngs.

It's attached here, but it's white, so it doesn't show up (for light mode users).

edit: of course the forum now changes that to webp. Pretty sure it's all part of the same issue.
 

Attachments

  • drawing-1(1) (1).webp
    drawing-1(1) (1).webp
    13.5 KB · Views: 1
Last edited:
I changed the color in Inkscape: no problem. Changed it again back to white: same issue.
I can test and see the result even without saving the post or edited post.
Can you open the WHITE file you uploaded (i.e. the file from your computer) and post the contents here?... as in the text from the file...
 
Last edited:
Can you open the WHITE file you uploaded (i.e. the file from your computer) and post the contents here?... as in the text from the file...
I don't know anything about codes, that's why I attached the zipped original that I have in my computer so you could have a look at it.
 
Back