File talk:Hammer and sickle.svg

From RationalWiki
Jump to navigation Jump to search

This isn't an SVG at all. From what I can tell, it's probably a PNG. The Sensitive Man 18:43, 3 October 2009 (UTC)

You're both right and wrong. The image as shown on the page is a PNG because the MediaWiki software renders it that way. However, if you open the file in a new window (by right clicking on it) then it is displayed as an SVG.  Lily Inspirate me. 18:51, 3 October 2009 (UTC)
So it is. Weird, the one on RobS' talk page is showing up blurry, for some reason. The Sensitive Man 19:20, 3 October 2009 (UTC)
I just looked at that and it is a PNG (right-click properties = 256px-Hammer_and_sickle.svg.png )although the requested file is the SVG. Perhaps our SVG rendering engine isn't working properly.  Lily Inspirate me. 19:52, 3 October 2009 (UTC)
Well, the wiki code tells it to size it to 256px there, so maybe it first renders it to PNG and then resizes it oddly? --Sid 19:56, 3 October 2009 (UTC)
No, I'm fairly certain it doesn't do that. I'll replace the svg with a different one from WP, maybe that'll help. -- Nx / talk 20:01, 3 October 2009 (UTC)
I'm no expert on this stuff but I think what might be happening is that the default image size for the SVG is 75px. Whenever I've looked at SVGs on WP the nominal size has been hundreds or even thousands of pixels. So if you use a size larger than the nominal it stretches the png. Just a theory.  Lily Inspirate me. 20:06, 3 October 2009 (UTC)
The nominal size shouldn't matter, because SVG is scalable. It only matters if the svg contains bitmap data. Take for example File:Robothead.svg. The nominal size is small, yet it scales nicely for the bot pledge -- Nx / talk 20:09, 3 October 2009 (UTC)
In fact I changed our svg renderer because of that image. The previous one scaled like this... it's possible that the 256px version on RobS's talk page was made by the old renderer and stayed in the cache. -- Nx / talk 20:11, 3 October 2009 (UTC)
Yes, that is in fact what happened. Observe:

Hammer and sickle.svg

This is the old image, with the small nominal size and with no whitespace. -- Nx / talk 20:13, 3 October 2009 (UTC)