antialiasing problem / history graphs not showing
pepiqueta - May 19, 2006 - 06:31
| Project: | Graphstat |
| Version: | HEAD |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
render.php calls imageantialias() twice when rendering line graphs (the graphs in history tab).
Acording to PHP manual:
"Note: This function is only available if PHP is compiled with the bundled version of the GD library."
Requesting the image directly (view html source for path) should return:
<br />
<b>Fatal error</b>: Call to undefined function: imageantialias() in <b>/path/www.yourhost.com/modules/graphstat/render.php</b> on line <b>91</b><br />So if the daily graphs appear but history graphs don't, try commenting these two calls.
Hope this will be useful for someone.
ps. I know this is not exactly a bug, 'cause the code is ok, but may be a deployment issue. What about a bool in hook_settings for selecting antialiasing?

#1
+1 for this tips. users and nodes graphs were not showing and with this tips everything is working as espected. thank you. eric.
#2
I too had this issue. I discovered that it can be dealt with by calling function_exists(). For example:
if (function_exists("imageantialias")) {imageantialias($graph, TRUE);
}
-- Doug
#3
Thanks a lot! Works.