Graphics in GIF?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
liesse
Posts: 2
Joined: Fri May 09, 2008 3:36 pm
Location: Brazil

Graphics in GIF?

Post by liesse » Fri Jan 30, 2009 4:09 pm

My firewall blocks file of type PNG and JPEG files do not show a good quality.
The jFreeChart generates graphics in GIF?

:shock:

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Fri Jan 30, 2009 6:42 pm

Not directly, but you should be able to create a BufferedImage containing the chart then use ImageIO to write the image in GIF format (I'm assuming there's a GIF encoder for ImageIO out there somewhere - let me know if I'm wrong).
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Taqua
JFreeReport Project Leader
Posts: 698
Joined: Fri Mar 14, 2003 3:34 pm
Contact:

Post by Taqua » Fri Jan 30, 2009 6:48 pm

I'd rather pump up the quality of the JPG encoding (to 0.99 or so) than to go for a 256-color fileformat.

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Fri Jan 30, 2009 8:11 pm

Taqua wrote:I'd rather pump up the quality of the JPG encoding (to 0.99 or so) than to go for a 256-color fileformat.
Yes, that is true. Or find out WTF PNG files are being blocked by the firewall in the first place. Then let GIF die as it should. Have a good weekend!
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

RichardWest
Posts: 844
Joined: Fri Oct 13, 2006 9:29 pm
Location: Sunnyvale, CA

Post by RichardWest » Fri Jan 30, 2009 11:10 pm

david.gilbert wrote:Yes, that is true. Or find out WTF PNG files are being blocked by the firewall in the first place. Then let GIF die as it should. Have a good weekend!
PNG = PNG's not GIF
Richard West
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA

Locked