Page MenuHomePhabricator

Image Resolution and ImageMaps
Closed, DeclinedPublic

Description

The GraphViz extension produces images that are too low-resolution -- 72 dpi by default. These appear pixelated on high-res displays (e.g., Mac retina).

I attempted to modify the dot command with the '-Gdpi=326' flag (using 326 dpi), but the images appeared quite large on the screen. Manually adjusting the size using the 'size' argument in the graphviz wiki tag brought the image back to a natural size, looking crisp.

However, ImageMaps are broken using this approach. They seem to reference numbers that are based on either the original 72dpi and some function of the scaled down image with the 'size' tag.

In summary, the points are:

  • Increase resolution of exported images
  • Present these in a natural size on the Wiki page
  • Ensure that ImageMaps are working properly with these adjusted resolutions.

I can potentially help contribute, but I will need some direction and have limited time.

Event Timeline

I can potentially help contribute, but I will need some direction and have limited time.

@Sjschneider: Thanks! See mw:How_to_become_a_MediaWiki_hacker and mw:Gerrit/Tutorial for development basics.
The code base is under mediawiki/extensions/GraphViz in Git/Gerrit.