Is adding a new image class necessary for svg?


(MuĂ­ran ShĂ­oraĂ­) #1

Icwant use SVG and was curious if an additional img class needed to be added and where are the man instruction for doing it, if it is?


(Joshua Rosenfeld) #2

By default svg uploads are not allowed for posts, they are allowed for themes (in the admin panel). You can easily change which file formats can be uploaded by adding the extenstion to the authorized extensions site setting.


(MuĂ­ran ShĂ­oraĂ­) #3

Thank you, that’s what I needed to know.


(MuĂ­ran ShĂ­oraĂ­) #4

When I attempt to upload an svg file I get this message
Sorry, but we couldn't determine the size of the image. Maybe your image is corrupted?
What am I doing wrong?


(Jeff Atwood) #5

@zogstrip can you confirm there are no regressions with SVG image uploads?


(MuĂ­ran ShĂ­oraĂ­) #6

I don’t know what that is, regressions I mean.


(Christoph) #7

It means that something that once worked no longer works because of changes in the code. For you, right now, it means: wait, we’re looking into it.


(MuĂ­ran ShĂ­oraĂ­) #8

Ok, that makes sense. Thank you much :thumbsup:


(RĂ©gis Hanol) #9

This is a SVG. Works just fine.

@Muiran would you mind uploading your SVG file somewhere on the :cloud: so that I can have a look at it?


(MuĂ­ran ShĂ­oraĂ­) #10


(MuĂ­ran ShĂ­oraĂ­) #11

Ok, seems that I needed to specify pixels in dimensions when I exported the file. The problem was on my end, so thank you much for helping me figure this out. Sorry for the trouble.


(RĂ©gis Hanol) #12

Yeah, we require the height and width of the image, otherwise, there’s no way to know the size of the image :wink: