Can you try this patch to RT? It should work with other GD versions 

--- Chart       (revision 12018)
+++ Chart       (local)
@@ -76,7 +76,15 @@ while ( my $entry = $tix->Next ) {
     }

     my $plot = $chart->plot( [ [EMAIL PROTECTED], [EMAIL PROTECTED] ] ) or die 
$chart->error;
-    $r->content_type('image/png');
-    $m->out( $plot->png );
+    if ($plot->can('png') ) {
+        $r->content_type('image/png');
+        $m->out( $plot->png );
+    } elsif ($plot->can('gif')) {
+        $r->content_type('image/gif');
+        $m->out( $plot->gif );
+
+    } else {
+        die "Your GD library appears to support neither PNG nor GIF";
+    }
     $m->abort();
 </%init>

_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


We're hiring! Come hack Perl for Best Practical: 
http://bestpractical.com/about/jobs.html

Reply via email to