• Post Reply Bookmark Topic Watch Topic
  • New Topic

Writing to gif file with ImageIO

 
Kerry Wilson
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using ImageIO to read / write from / to different formats. Every format ( bmp, jpg, png ) work except gif. What do I need to get gif format to work.
 
Kerry Wilson
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see now that I do not have a gif image writer. If I can find one how do you register it with ImageIO?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's one right here. The page has instructions.
 
Kerry Wilson
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I actually found an implementation here:

http://java.freehep.org/index.html

I don't know if one or the other is better or not. BTW, why can you read gif in the sun implementation, but cannot write?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
GIFs are kind of deprecated, and until last year they used to be encumbered by patent issues. PNG is a much better format in many regards, and is supported in just about all graphics applications these days, including all web browsers.
[ September 28, 2005: Message edited by: Ulf Dittmer ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!