• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Convert BMP Files to JPG

 
Ravi Kiran Tadiparthi
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am looking for an easier way to convert BMP files to JPG files dynamically inside a Java program. Can anyone provide me with some code for doing this?

Thanks in Advance.
Ravi.
 
D Rog
Ranch Hand
Posts: 472
Linux Objective C Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not have such code examples in exact form you need, but I can give you an idea:
1. check javax.imageio.*
2. find a provider for input image and use a reader on it
3. then use writer for target image
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to support older JVMs as well, there's JIMI, which can read and write the formats you mention.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic