[Bioperl-l] SVG output with Bio::Graphics::Panel fails

Jonathan Crabtree crabtree at tigr.ORG
Wed Feb 28 16:40:52 EST 2007


I believe you must set 'image_class' to 'GD::SVG' when you create the 
Panel (and note that older versions of Bio::Graphics::Panel don't know 
anything about this parameter.)  Here's the relevant part of the Panel 

   -image_class To create output in scalable vector
                graphics (SVG), optionally pass the image
                class parameter 'GD::SVG'. Defaults to
                using vanilla GD. See the corresponding
                image_class() method below for details.


Sendu Bala wrote:
> I have GD 2.35 and GD::SVG 2.33 installed.
> I have a working script in which a Bio::Graphics::Panel object is made 
> and output with:
> print $panel->png;
> This is fine. Changing it to:
> print $panel->svg;
> Gives the error:
> Can't locate object method "svg" via package "GD:Image" at 
> /.../Bio/Graphics/Panel.pm line 971, <DATA> line 192.
> Am I supposed to do something else to get this to work?
> Cheers,
> Sendu.
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/bioperl-l

More information about the Bioperl-l mailing list