convert a tiff image to another format (using JAI ?)

Discussion in 'Java' started by cyril, Sep 8, 2003.

  1. cyril

    cyril Guest

    Hi,

    I wonder how can I convert a TIFF image into a jpeg or GIF image. JAI
    seems to offer a lot of functionnalities for the imaging process but I
    can't find a way todo this simply.

    Does anyone got a code snippet to do this ?

    Thanks

    Regards.
    cyril, Sep 8, 2003
    #1
    1. Advertising

  2. cyril

    cyril Guest

    Actually I found a way on a forum on the jdn :

    FileSeekableStream stream = new FileSeekableStream(TIFFImageAsfile);
    RenderedOp op = JAI.create("stream", stream);
    ParameterBlock pb = new ParameterBlock();
    pb.addSource(op);
    pb.add(jpgFilePath);
    pb.add("jpeg");
    JAI.create("filestore", pb);
    stream.close();

    Hope this could help others
    cyril, Sep 8, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chuck Taylor
    Replies:
    1
    Views:
    8,272
    Chuck Taylor
    Sep 4, 2003
  2. surendra
    Replies:
    1
    Views:
    8,254
    dipakPardesi
    Jun 21, 2008
  3. atusc
    Replies:
    1
    Views:
    4,184
  4. Armin Gajda

    JAI - How to convert PNG to TIFF

    Armin Gajda, Mar 6, 2006, in forum: Java
    Replies:
    2
    Views:
    7,847
    Thomas Weidenfeller
    Mar 6, 2006
  5. Armin Gajda
    Replies:
    1
    Views:
    1,484
    Andrey Kuznetsov
    Jun 13, 2006
Loading...

Share This Page