Item8495: The plugin does not set the size of generated <object> elements
Current State: Closed
Target Release: n/a
The plugin does not set the size of the <object> element created for the "Component architecture (inline SVG)" example which causes the graph to be displayed in a default 300x150 pixel display area. In Firefox/Win 3.5.7, this causes the image to be scaled down to fit. On Safari/Win 3.2.3, the full size image must be scrolled within the restricted viewing area. Since the size of the image being generated is known, shouldn't the plugin set the size of the <object> element to the size of the image unless directed otherwise by a parameter setting?
- 11 Feb 2010
I'll work on the issue. It's a bit more complex because of the image caching. The plugin only has the dimensions of the graph when it's generated. Subsequent views add the object tag with the cached file without doing any file access. I could use ImageMagick
to query the image dimensions, but that adds overhead for every view. The other options is to cache the image dimensions in the working directory so they can be reapplied when viewing the page.
- 13 Feb 2010
I have a version working that inserts the image sizes into the <img> and <object> tags. It's 1.7 RC2 - attached to the Development.DirectedGraphPlugin
topic. The image sizes are determined by using the ImageMagic identify
- 13 Feb 2010
Tried out 1.7RC2 and it works great with FF/Win 3.5.7, Safari/Win 3.2.3, and IE8! Thanks George.
- 16 Feb 2010