Own 1.0.x component with jpgraph outputs PNG image as text?
Posted: Mon Feb 11, 2008 9:08 am
I am writing some own component (for 1.0.x) that uses JPGraph to draw images/charts.
If I use the JPGraph classes/methods in a standalone .php file, the output is correct.
However, if I use the same code in my component, at the place of $graph->Stroke(); I get the following error:
If I use the JPGraph classes/methods in a standalone .php file, the output is correct.
However, if I use the same code in my component, at the place of $graph->Stroke(); I get the following error:
and in the html source code shows (besides the regular html output):The image “[some URL]” cannot be displayed, because it contains errors.
‰PNG
���
IHDR��Â��Â���óz^�� �IDATxœì½m¬¥gu|?ûœùöÌxðØ31ãOlÇÁÆ0~IÛ¡©¢¤„¤)Uª¸Pµ¢”¨UZ寖ÚTUÓäG“V‘ˆ"EU"UÅrCÄ7¨Ôƒ&؃mlìñöÌìçý±=ë\Ïuµž{Ì×>Ïúq´
÷ý¬{k]÷ú¸÷9gÎ4e