467,222 Members | 1,416 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,222 developers. It's quick & easy.

converting 10 jpeg images to into a single tiff

hi all
i am doing a project in java where i need to convert 10 jpeg images into a single tiff image..conversion of single jpeg image to single tiff is happening but embedding all the 10 jpeg images into a single tiff is not happening..i hav tried out with single image conversion..
My code is

***********************

import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;

public class Convert
{
public static void main(String[] args)
{
File in = new File("b.jpeg");
File out = new File("b.tiff");
BufferedImage bufi;
try
{
bufi = ImageIO.read(in);
ImageIO.write(bufi, "tiff", out);
}
catch (IOException ex)
{
ex.printStackTrace();
}
}
}

*****************************************
can anyone pls help me how to do that
thanx in advance
May 3 '08 #1
  • viewed: 4560
Share:
2 Replies
MarkoKlacar
Expert 100+
Hi,

Sounds to me like you need to create a new image and copy the jpeg's into that one, if that made sence...

Need more info? Let us know
May 6 '08 #2
BigDaddyLH
Expert 1GB
Have you tried to use ImageWriter?
May 6 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by Albert Greinöcker | last post: by
16 posts views Thread by David Lauberts | last post: by
6 posts views Thread by usao | last post: by
2 posts views Thread by Imtiaz | last post: by
4 posts views Thread by Pushp | last post: by
6 posts views Thread by Krakatioison | last post: by
4 posts views Thread by sophie_newbie | last post: by
6 posts views Thread by Victory | last post: by
reply views Thread by Adict | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.