I've been playing with mscgen in a document for which I produce both
PDF (via fop) and HTML output.  When generating PDF, mscgen and the
associated filter work fine.  When generating HTML, the .png generated
seems to be fixed at a single, low resolution and isn't very readable
on high-resolution displays.

Generating a low resolution image and displaying it unscaled produces
a small, not-very-readable diagram when viewed on high-resolution
displays.  I believe that the size (subtended angle) of the figure
could be adjusted by adding a "width" tag to the HTML so that the
diagram was scaled to be some percentage of the column width.  But,
doing that with the current low-resolution .png file will look ugly.

ISTM that much better results would be obtained by generating a
high-resolution image (e.g. 600dpi), and letting the browser scale it
down to fit the desired space on the rendered page (scaling down works
a lot better than scaling up).  That would result in diagrams that

 1) Had a predictable size on the screen (compared to column width).

 2) Looks good even on high-resolution screens.

 3) Can be printed without looking bad (printing a 72dpi diagram at
    600 dpi is pretty ugly).

Is there some technical reason that won't work?
    
Taking another tack, what's the status of including SVG diagrams in
HTML output?  I tried that with another toolchain a few years ago, and
most browsers didn't seem up to the task of rendering such pages.
    
-- 
Grant Edwards               grant.b.edwards        Yow! Let me do my TRIBUTE
                                  at               to FISHNET STOCKINGS ...
                              gmail.com            

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to