On 2011-07-30, Lex Trotman <[email protected]> wrote: > [...] ?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). > > 4) Use a lot more bandwidth on low speed connections
Compression of 2-color text/line images is pretty good. I doubt the high res files wold be much larger. > 5) use a lot more cpu on low power devices like phones. Phones are going to have to scale it anyway, but starting with a 600dpi image would slow it down a little. > So it shouldn't be the default. > >> Is there some technical reason that won't work? > > If mscgen can do different resolution pngs, no, but with a quick look > I can't see how? I was looking at mscgen, and I don't think it can -- so my scheme would require changes to both mscgen and the filter. :/ Another issue I'm having with mscgen is that it places a lot of white-space on either side of my diagrams. When I set hscale to a large enough value to make room for the labels, the white space also expands and pushes the diagram off the right margin. I suppose I could tweak the filter so as to auto-crop the .png files. >> 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. > > IIUC only IE9 and later support SVG, most other recentish browsers > support it ok. Well, anything I can do to discourage use of IE, would be a bonus. :) Switching to SVG embedded in HTML would probably be a better solution. I may give that a try, since it involves changing only the filter. -- Grant -- 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.
