Hi
It is completely unclear to me what the problem is.
There is a note on
the image page stating 'These above (displayed) rendered images are
forced (by wikimedia politics) to an improper (even false) flag-ratio.
The correct ratio is 7:4 and to avoid some small render-bugs, the
height of the flag in pixels should be divisible by 3.'. Even though
I'm not sure what 'wikimedia politics' have to do with it, the ratio's
all look fine to me: the preview at [1], the 1000px png version [2]
and the svg version [3] all render to a 7:4 (=1.75) aspect ratio for
me (at least, that's what the Chrome dev tools tell me).
Could you try to explain your problem again? Please explain *where*
you see *which* aspect ratio, and, for instance, which browser you are
using. Please also explain how you determined the aspect ratio. The
more information you provide, the easier it is for us to understand
what's going on.
It is explained in detail at the (yes, very lengthened
section) who's URL
I pointed you at first.
But okay, I will repeat very thing relevant for you:
0) Where: on my personal/office monitor when displaying certain wikimedia pages.
1) I use different versions of Firefox 3 and 4 but the visual effect is
in always the same (running on different Linux flavors) (and not only at me).
2) If you like, take as a good example the URL
http://commons.wikimedia.org/wiki/File:Flag_of_Iran.svg
3) I triggered this here because I created the valid (last) version of this SVG-file and
people now come to me and complain about it's appearance on wikimedia and wikipedia.
Thus I dig done the problem and it seems to be out of my reach to correct this miss-design
by wikimedia but identified it to got founded in some wikimedia politics or history which
now noone seems to be responsable. :-/
Detailed explanation at example:
If there is a SVG-file on wikimedia, some fixed logic generates png-images for
the flag's description page generally. The first image, here 800 × 457, is
displayed very prominently always at the beginning of the SVG-description file,
others (320 × 183 pixels | 640 × 366 pixels | 1,024 × 585 pixels.) follows as
links. All these sizes seems to be bounding-boxes from historic used (maybe even today)
resolutions of (CRT-)monitors respecting aspect about ratio as near as
they can If horicontal OR vertical is maximized to this resolution.
Then some facts to the original SVG code is stated and than further fixed png-sized images
follows as links (This image rendered as PNG in other sizes: 200px, 500px, 1000px,
2000px.).
The last , in small font set explanation, I added for people to get an understanding of
the reasons lying behind the scene. :-/ [Only for thios flag].
This flag should have a ratio of 7:4 which has the SVG original, but NOT the
prominantly displayed first image (800 × 457 , 800 is not divisible by 7, nor 457 by 4)!
Because in this flag, there are these two strips of "Alkmar Allah" Tekbirs,
rendering artifacts can get easily visible if improper rendering occurs!
First reason is: flag height in pixles is not divisible by 3, so the three
green, white and red strip can't be of equal height (as demanded in the original
SVG-code)! And because the Tekbirs should be exact aligned at the border of the
green/white and red/white strip rounding errors may provocate a green or a red
one-pixel-thick line to appear between the white strip and the Tekbir as you
see in the 800x457 image! It seems the scaling and rendering is doing in the
wrong order (my guess, I also tried different work-arounds but got no satis-
factoring solution, because it is not a coding issue in SVG!).
I guess: IF one would FIRSTLY render the original SVG to its orignal size into
a fixed bitmap format and then scale this down to the wanted (png-)size,
several visibale artifacts (like the just mentioned MUST be gone!). So, this is
a rendering-design issue. Moreover to avoid further artifically introducted
problems by chosen thoughtless fixed sizes (500px), I propose NOT to use
multiples of 100 or 1000 nor historican monitor sizes as fixed image sizes
(which are out of control for the user/uploader!!), but sizes which consists
on many small primes, i.e. HCN (highly composite numbers). Thus my second
pointer in my first email to explain the background.
BTW: The same effect/statement is correct for SVG-templates like the one which
uses national flags displaying in info-boxes in articles. But here maybe I can
trigger guys responsible for these templates on XY-wikipedia (language specific).
I hope I have explained it righlty and (nearly) relevant completely now.
Thanks for your attention,
Achim