Advertisement
by Afsharid Persia » Mon Oct 25, 2021 10:22 pm
by Ispravlennaja Tsekovija » Tue Oct 26, 2021 11:04 am
Afsharid Persia wrote:So how do we actually upload the svg file? I tried changing my flag and it said:
The flag you're uploading does not appear to be a valid image format (JPEG/JPG, PNG, or GIF).
My flag file is an svg and it shows up fine in the preview
by [violet] » Wed Oct 27, 2021 9:20 pm
Raccoon Creek wrote:Since I have begun using an .svg file for my national flag, I have noticed that the search suggestions when logging into the website and on the 'World' page only display my nation's name and no longer my nation's name plus the national flag. Below is an image of what I am mentioning.
https://i.imgur.com/vMPZ58v.png
by Window Land » Wed Oct 27, 2021 10:11 pm
Woodie Flowers wrote:If you’re anti-science, you’re pro-stupid.
Evelyn Beatrice Hall wrote:I disapprove of what you say, but I will defend to the death your right to say it.
Winston Churchill wrote:Democracy is the worst form of government – except for all the others that have been tried.
Free SpeechRandall Munroe wrote: I can't remember where I heard this, but someone once said that defending a position by citing free speech is sort of the ultimate concession; you're saying that the most compelling thing you can say for your position is that it's not literally illegal to express.
by [violet] » Thu Oct 28, 2021 9:33 pm
Window Land wrote:The upload flag page still says you can only upload JPEG, PNG, and GIF files, you probably should update the description to include SVGs.
by USS Juneau » Mon Nov 01, 2021 3:44 am
by Afsharid Persia » Mon Nov 01, 2021 9:43 pm
Ispravlennaja Tsekovija wrote:Afsharid Persia wrote:So how do we actually upload the svg file? I tried changing my flag and it said:
The flag you're uploading does not appear to be a valid image format (JPEG/JPG, PNG, or GIF).
My flag file is an svg and it shows up fine in the preview
violet said it's pretty harsh about potential security issues. if you link a pastebin of the file contents i (or others) would be able to look for potential causes
by Trotterdam » Tue Nov 02, 2021 12:46 am
viewBox="0 0 400 NaN"
by [violet] » Tue Nov 02, 2021 4:53 pm
Trotterdam wrote:Umm...I don't know if that's the source of the problem, but I don't think NaN is supposed to be there.
- Code: Select all
viewBox="0 0 400 NaN"
by [violet] » Tue Nov 02, 2021 4:54 pm
USS Juneau wrote:When I attempt to upload a .svg flag, I immediately get kicked over to Cloudflare checking my browser. After the check is complete, it then fails the upload as it has no file attached. I have tried on both Chrome and Firefox.
Browser: Google Chrome 95.0.4638.54, Firefox 93.0 (64 bit)
Device: Windows 10 20H2, build 19042
by USS Juneau » Tue Nov 02, 2021 10:54 pm
[violet] wrote:USS Juneau wrote:When I attempt to upload a .svg flag, I immediately get kicked over to Cloudflare checking my browser. After the check is complete, it then fails the upload as it has no file attached. I have tried on both Chrome and Firefox.
Browser: Google Chrome 95.0.4638.54, Firefox 93.0 (64 bit)
Device: Windows 10 20H2, build 19042
Can you share the image you're trying to upload? It might let me trigger a CloudFlare check so I can see what's happening.
by Ispravlennaja Tsekovija » Wed Nov 03, 2021 7:31 am
USS Juneau wrote:[violet] wrote:Can you share the image you're trying to upload? It might let me trigger a CloudFlare check so I can see what's happening.
Sure, no problem. http://img.chaylia.net/chaylia.svg
by USS Juneau » Wed Nov 03, 2021 11:17 am
[violet] wrote:FYI that image, while technically an SVG, is actually made up of large embedded PNGs. Even if CloudFlare stops blocking it, it won't be accepted by our server as it's over 1MB.
by Ispravlennaja Tsekovija » Wed Nov 03, 2021 11:31 am
USS Juneau wrote:[violet] wrote:FYI that image, while technically an SVG, is actually made up of large embedded PNGs. Even if CloudFlare stops blocking it, it won't be accepted by our server as it's over 1MB.
Oops, good to know. I've never designed a SVG before, so that's something I didn't consider. I'll see whether or not changing the PNGs to bitmaps fixes anything there.
by USS Juneau » Wed Nov 03, 2021 11:58 am
Ispravlennaja Tsekovija wrote:USS Juneau wrote:Oops, good to know. I've never designed a SVG before, so that's something I didn't consider. I'll see whether or not changing the PNGs to bitmaps fixes anything there.
it won't. SVG is a vector file storage format. it is not designed to carry raster images and when it is used for such it will not take up less space (it might take more). changing the format the raster image is stored in will have zero effect whatsoever.
RIGHT above this post i posted an almost 100% precise conversion of the image you posted into actual vector format. you can use it if you want to use an SVG file. otherwise don't try to fit a square peg into a round hole by putting raster images into a vector format, just use a PNG.
by Ispravlennaja Tsekovija » Wed Nov 03, 2021 12:37 pm
USS Juneau wrote:Ispravlennaja Tsekovija wrote:it won't. SVG is a vector file storage format. it is not designed to carry raster images and when it is used for such it will not take up less space (it might take more). changing the format the raster image is stored in will have zero effect whatsoever.
RIGHT above this post i posted an almost 100% precise conversion of the image you posted into actual vector format. you can use it if you want to use an SVG file. otherwise don't try to fit a square peg into a round hole by putting raster images into a vector format, just use a PNG.
I used Path -> Trace Bitmap in Inkscape and cut the size down to 149kb, so... not sure what I'm doing wrong. Do you have a tutorial to link on this?
by The Kingdom of the Three Isles » Thu Nov 04, 2021 12:02 am
Ispravlennaja Tsekovija wrote:USS Juneau wrote:
I used Path -> Trace Bitmap in Inkscape and cut the size down to 149kb, so... not sure what I'm doing wrong. Do you have a tutorial to link on this?
i don't have a tutorial for you, but i do suggest you use something called common sense, i.e., not trying to do the labor of converting raster graphics to vector graphics seemingly without a good reason and without basic background knowledge when somebody already did said labor for you.
Those who say they are based aren’t based. Those who say they are humble ain’t humble. Those who say they are chads ain’t chads.Ordo Theutonicorum wrote: they have a cross-pattee on their flag??
by Afsharid Persia » Mon Nov 08, 2021 5:34 pm
Trotterdam wrote:Umm...I don't know if that's the source of the problem, but I don't think NaN is supposed to be there.
- Code: Select all
viewBox="0 0 400 NaN"
by [violet] » Mon Nov 08, 2021 7:08 pm
Afsharid Persia wrote:It looked fine when the file itself was viewed on Chrome, but once it was applied to the nation on NS, it had some weird lines around it, almost like an outline.
by Luna Amore » Wed Nov 10, 2021 7:31 am
Wymondham wrote:What is the current maximum upload size for a SVG flag?
[violet] wrote:SVG post-compression filesize limit has been raised from 12KB to 60KB.
I also confirmed that they're served over the network with gzip / brotli compression, when your browser supports it, so in terms of network bandwidth they arrive at somewhere around 30% of this size. So that's pretty great.
by Wymondham » Wed Nov 10, 2021 7:49 am
Luna Amore wrote:Wymondham wrote:What is the current maximum upload size for a SVG flag?
Looks to be 60kb:[violet] wrote:SVG post-compression filesize limit has been raised from 12KB to 60KB.
I also confirmed that they're served over the network with gzip / brotli compression, when your browser supports it, so in terms of network bandwidth they arrive at somewhere around 30% of this size. So that's pretty great.
by Trotterdam » Wed Nov 10, 2021 1:40 pm
Not technically. SVG allows comments and arbitrary whitespace and such, so if you wanted you could easily create a totally-valid conforms-to-all-standards one-terabyte SVG file that describes an image that could have been encoded in only a few hundred bytes.Wymondham wrote:How much compression does the site usually manage in terms of getting it down to size, obviously it varies from case to case, but is there a theoretical maximum raw size beyond which the site cannot compress it down enough?
Advertisement
Users browsing this forum: General TM, Mavenu, TNP-ED, United States of Dictators
Advertisement