Tags:
create new tag
view all tags

Question

I've just installed the FlowChartPlugin but can't get it to work. ImageMagick appears to be installed and correctly configured but the plugin doesn't generate the .svg or .png files. I've verified that ImageMagick works by converting an svg file on the command line and manually adding it to the topic.

Permissions look OK.

Any suggestions as to what might be going wrong would be appreciated. Thanks.

Environment

TWiki version: TWikiRelease04Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Linux
Web server: Apache
Perl version: 5.8.5
Client OS: Windows 2000
Web Browser: Explorer
Categories: Plugins

-- DavidBaker - 11 Jan 2006

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

After a bit of investigation, it seems that the system call to convert, in the plugin, is doing nothing. I tried adding another system call with a complete convert string i.e. system ("convert fname.svg fname.png") This did nothing - not even an error message but the same call run on the command line works fine.

-- DavidBaker - 11 Jan 2006

Just looked in the apache log to see the following error generated when system("convert..." is executed:

convert: Extra content at the end of the document

This still doesn't help because the same command run from the command line works!

I'm about to give-up with this plugin!

-- DavidBaker - 11 Jan 2006

Try changing the line that calls convert into a full path. The webserver may have a different PATH env setting.

-- MartinCleaver - 12 Jan 2006

Nice idea but no luck unfortunately. I added a line to the plugin: system("convert path/fname.svg path/fname.png"); but that did nothing. As mentioned above, I could cd to path and run convert fname.svg fname.png and that worked. This is a strange one!

-- DavidBaker - 12 Jan 2006

I added a note about this to FlowchartPluginDev. Check it out; I think it will solve your problem. You need to add a newline to the generated .svg file.

-- PaulSmith - 18 Jan 2006

Paul, perhaps you could update the plugin with your fixes and rev the code?

-- SteveRJones - 19 Jan 2006

Just managed to get my installation working! I discovered there was another program named convert (or maybe just an old version) located in /usr/bin that was being called in preference to the latest version in /usr/local/bin - the default installation location for ImageMagick? 6.2.5.

-- DavidBaker - 19 Jan 2006

Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2006-01-19 - DavidBaker
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.