Item8495: The plugin does not set the size of generated <object> elements

pencil
Priority: Enhancement
Current State: Closed
Released In:
Target Release: n/a
Applies To: Extension
Component: DirectedGraphPlugin
Branches:
Reported By: BryanThale
Waiting For:
Last Change By: GeorgeClark
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?

-- BryanThale - 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.

-- GeorgeClark - 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 command.

-- GeorgeClark - 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.

-- BryanThale - 16 Feb 2010
 
Topic revision: r10 - 09 Mar 2010, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy