Page MenuHomePhabricator

SVG2PNG image has some parts shifted thus the image is wrong
Closed, DeclinedPublic

Assigned To
None
Authored By
bzimport
Feb 18 2011, 8:55 AM
Referenced Files
F17861: Zrzut_ekranu_2014-12-02_07.52.33.png
Dec 2 2014, 6:54 AM
F17860: Zrzut_ekranu_2014-12-02_07.52.07.png
Dec 2 2014, 6:54 AM
F17859: Zrzut_ekranu_2014-12-02_07.51.42.png
Dec 2 2014, 6:54 AM
F7485: 3.png
Nov 21 2014, 11:26 PM
F7484: 2.png
Nov 21 2014, 11:26 PM

Description

Author: octavsly

Description:
Connected with item 1 in the bug

See the difference between the two pictures:

  1. converted to png:

http://en.wikipedia.org/wiki/File:Genetic_code.svg#filelinks
See also the 1.png

2.SVG version
http://upload.wikimedia.org/wikipedia/commons/3/37/Genetic_code.svg
See also the 2.png


Version: unspecified
Severity: normal
OS: Linux
Platform: Other
URL: http://en.wikipedia.org/wiki/File:Genetic_code.svg#file

Attached:

1.png (1×1 px, 156 KB)

Details

Reference
bz27525

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:26 PM
bzimport set Reference to bz27525.
bzimport added a subscriber: Unknown Object (MLST).

octavsly wrote:

Connected with item 2 in the bug

Attached:

2.png (854×1 px, 74 KB)

octavsly wrote:

SVG as seen in firefox 3.6.x

additional attachment to show some problems with some browsers with respect to SVG

Attached:

3.png (1×1 px, 97 KB)

This is still an issue, I tested it on Firefox 33.1, Chrome 39.0.2171.71 m and Internet Explorer 11

Zrzut_ekranu_2014-12-02_07.51.42.png (1×1 px, 228 KB)

Zrzut_ekranu_2014-12-02_07.52.07.png (1×1 px, 236 KB)

Zrzut_ekranu_2014-12-02_07.52.33.png (1×1 px, 255 KB)

Is this really a bug of SVG rendering. Consider SVG is not a WYSIWYG tool. Used space by letters depends on font rendering. Wikimedia uses font hinting which results in rounding letter position to pixel scale.

You seem to use three letter groups but put in one text element. Use a text element for each letter group.

Does this solve your problem?

Aklapper lowered the priority of this task from Medium to Low.
Aklapper subscribed.

Declining as per last (very reasonable) comment by Menner.

...plus the problem even exists looking at the SVG itself at https://upload.wikimedia.org/wikipedia/commons/3/37/Genetic_code.svg in Firefox 44...