Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2009
    Posts
    14
    Rep Power
    0

    Default Merged TIF file size is more larger than the sum of single TIF files

    HI,
    I am merging 10 tif (each 5 KB) files into one Multi tif file using ImageIO of java api. But after merging the finaly file size is very huge than the sum of the 10 individual pages.. Example 10 * 5 KB = 50 KB but I am getting more than 700 KB etc... May be the format should be changed. I am using the "tif" format as follows.

    Iterator writers = ImageIO.getImageWritersByFormatName("tif");
    ImageWriter imageWriter = (ImageWriter) writers.next();
    File destinationFile = new File(finalDestinationFilePath);

    Is there any compressed format to minimized the size of final merged file.

  2. #2
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    I'd look at the documentation for the TIF format, to see what might be causing that. I believe TIF supports compression.

  3. #3
    Join Date
    Jan 2009
    Posts
    14
    Rep Power
    0

    Default

    Hi,
    When files are megered with IIOImage which I notieced is the merged file also displaying the thumbnail format . But the single files (which I need to merger) are not showing any image with thumnail. ( May be by default thumbnail is becoming enable, so size of mergedfile getting increased) How can I reduce the size of merged file ?

  4. #4
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    Try taking a single image and outputting it. If the size increases, it's something to do with IIOImage. Check the API to see if it suggests anything.

Similar Threads

  1. Replies: 7
    Last Post: 10-28-2008, 02:41 PM
  2. Saving and updating a single file
    By AkisV in forum Advanced Java
    Replies: 1
    Last Post: 09-27-2008, 03:42 PM
  3. File size
    By eva in forum New To Java
    Replies: 2
    Last Post: 12-19-2007, 10:27 AM
  4. Replies: 1
    Last Post: 06-06-2007, 05:20 AM
  5. Replies: 1
    Last Post: 05-20-2007, 09:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •