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
--
DavidBaker - 11 Jan 2006
Answer
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