Tags:
create new tag
view all tags

Question

Hi, I've installed the DirectedGraphPlugin (V1.300) and now the Plug in seems to work except when antialias is enabled (in General or for one picture).
I've enabled debug and see a message which seems to say the plugin or one of it's components can't handle pngs, but there are a few in the ExamplePage???

The TWiki.DirectedGraphPlugin Topic produces a few DirectedGraph Error (1):

/tmp/DirectedGraphPlugin9943.err
Error: image type "png" not supported in PostScript output
Error: image type "png" not supported in PostScript output
Error: image type "png" not supported in PostScript output
Error: image type "png" not supported in PostScript output
Error: image type "png" not supported in PostScript output
Error: image type "png" not supported in PostScript output

/tmp/DirectedGraphPlugin.pl.log
Calling dot; got parameters:
/usr/bin/dot
/var/www/dsl-wiki/pub/TWiki/DirectedGraphPlugin
/tmp/DirectedGraphPlugin9943
ps
/var/www/dsl-wiki/pub/TWiki/DirectedGraphPlugin/graphabc501d36571551b63ae071f3b30ac6b.ps
/tmp/DirectedGraphPlugin9943.err
Built command line: GV_FILE_PATH="/var/www/dsl-wiki/pub/TWiki/DirectedGraphPlugin/" /usr/bin/dot -Tps /tmp/DirectedGraphPlugin9943-o /var/www/dsl-wiki/pub/TWiki/DirectedGraphPlugin/graphabc501d36571551b63ae071f3b30ac6b.ps 2> /tmp/DirectedGraphPlugin9943.err

from /lib/TWiki/Plugins/DirectedGraphPlugin.pm:

use File::Path;

my $HASH_CODE_LENGTH    = 32;
my %hashed_math_strings = ();

# path to dot, neato, twopi, circo and fdp (including trailing /)
my $enginePath = '/usr/bin/';

my $dotHelperPath = "/var/www/dsl-wiki/tools/DirectedGraphPlugin.pl";
my $execCmd       = "/usr/bin/perl %HELPERSCRIPT|F% %DOT|F% %WORKDIR|F% %INFILE|F% %FORMAT|S% %OUTFILE|F% %ERRFILE|F% ";

my $antialiasCmd = "/usr/bin/convert -density %DENSITY|N% -geometry %GEOMETRY|S% %INFILE|F% %OUTFILE|F%";

my $tmpFile = '/tmp/' . $pluginName . "$$";

# =========================
sub initPlugin
can anyone help me?

thank you very much!!!

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins: DefaultPlugin, CommentPlugin, DirectedGraphPlugin, EditTablePlugin, PreferencesPlugin, RenderListPlugin, SlideShowPlugin, SmiliesPlugin, SpreadSheetPlugin, TablePlugin, WysiwygPlugin
Server OS: ubuntu dapper
Web server: Apache/1.3.34 (Ubuntu)
Perl version: v5.8.7
Client OS: WinXP
Web Browser: Firefox 2.0
Categories: Plugins

-- RolandAigner - 19 Dec 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.

anti-aliasing is handled by convert, which is provided by either the ImageMagick or GraphicsMagick package. If the plugin works without anti-aliasing, but fails with anti-aliasing, then convert is the culprit.

I can't make heads-or-tails of the error messages you've posted, however ... they are not typical of convert.

-- ScottHoge - 20 Dec 2006

Som of the demo graphs in the plugin topic uses png files to display a symbol for i.e. a router. dot needs to be compiled with this option to work properly.

But Scott is right, it is the convert utility that is causing you problems now, please check the paths and that you can redo the command lines manually.

-- SteffenPoulsen - 20 Dec 2006

One thing I noticed is that there is no space between the input filename and the -o for the output file (in the Build Command Line in /tmp/DirectedGraphPlugin.pl.log). I'm not sure if this was a cut/paste problem or not, but if this is really what was executed, you will have problems (though I would not think you would get this error)

-- KevinKalmbach - 20 Dec 2006

I've now tried to reproduce this over the command line and it seems the messages "Error: image type "png" not supported in PostScript? output" don't come from convert but from dot.

Here some command line output:

root@wiki-island:/var/www/dsl-wiki# GV_FILE_PATH="/var/www/dsl-wiki/pub/TWiki/DirectedGraphPlugin/" /usr/bin/dot -Tps /tmp/DirectedGraphPlugin15611 -o /var/www/dsl-wiki/pub/TWiki/DirectedGraphPlugin/graphcae9b41389e173b619655377015a3180.ps
Error: couldn't open image file Sun_Workstation.png
Error: No or improper shapefile="Sun_Workstation.png" for node "Workstation"
Error: couldn't open image file Printer.png
Error: No or improper shapefile="Printer.png" for node "Printer"
Error: couldn't open image file Cloud-Filled.png
Error: No or improper shapefile="Cloud-Filled.png" for node "Internet"
Error: couldn't open image file Wireless_Router.png
Error: No or improper shapefile="Wireless_Router.png" for node "Router"
Error: couldn't open image file Workgroup_Switch.png
Error: No or improper shapefile="Workgroup_Switch.png" for node "Switch"
Error: couldn't open image file Laptop.png
Error: No or improper shapefile="Laptop.png" for node "Laptop"
Error: image type "png" not supported in PostScript output
Error: image type "png" not supported in PostScript output
Error: image type "png" not supported in PostScript output
Error: image type "png" not supported in PostScript output
Error: image type "png" not supported in PostScript output
Error: image type "png" not supported in PostScript output

The images are located under /var/www/dsl-wiki/pub/TWiki/DirectedGraphPlugin/Cloud-Filled.png which should also be the right topic because I set:

Default topic to read library icons (shapefiles) from
    * Set LIBRARY = DirectedGraphPlugin 

@KevinKalmbach: Hmm, I've tried this and it makes no difference.
The "man dot" says
-ofile - Write output to 'file'
so it seems to be right.

thanks to all so far...

-- RolandAigner - 20 Dec 2006

I've also tried to shift the "Set LIBRARY = DirectedGraphPlugin" to an other topic which leads to the same errors...

-- RolandAigner - 20 Dec 2006

Hi,

thank you very much for you help, but our managers decided to cancel the new wiki project (not by reason of my problem here (more political reasons ;-)) )) cya by

-- RolandAigner - 21 Dec 2006

Change status to:
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2006-12-21 - RolandAigner
 
  • 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.