locked
Combine / Merge Multiple .tif files into a single .tif file. RRS feed

  • Question

  • User-279994127 posted

    Hi,

    Hope this is the right forum to ask for help.

    I want to combine or merge multiple .tif files into a single .tif file in .net

    Please point me to any resource/code relating to this. Thanks in advance.

    Tuesday, July 14, 2009 9:27 PM

Answers

  • User-279994127 posted

    Thanks sirdneo for your reply.

    I tried http://www.bobpowell.net/generating_multipage_tiffs.htm and http://www.dotnetmonster.com/Uwe/Forum.aspx/dotnet-csharp/70308/Craete-tiff-Image-Page-by-Page

    I am able to merge some of the tif files but most of the files are giving Out of memory exception when I try to read from file using Image.FromFile. Verified the accessibility of the files as mentioned in other posts there is no issue with that.

    I tried Image.FromStream as advised in 2nd link but getting some other errors.

    Now converting the .tif files to LZW format using IrfanView and then merging using the code in 1st link. It seems ok.

    hope this helps for others who are into the same issue.

    Cheers.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 15, 2009 11:19 PM

All replies

  • User-481631678 posted

    See this artcile:-


    http://www.codeproject.com/KB/GDI-plus/tiffmanager.aspx

    Wednesday, July 15, 2009 4:00 AM
  • User-279994127 posted

    Thanks sirdneo for your reply.

    I tried http://www.bobpowell.net/generating_multipage_tiffs.htm and http://www.dotnetmonster.com/Uwe/Forum.aspx/dotnet-csharp/70308/Craete-tiff-Image-Page-by-Page

    I am able to merge some of the tif files but most of the files are giving Out of memory exception when I try to read from file using Image.FromFile. Verified the accessibility of the files as mentioned in other posts there is no issue with that.

    I tried Image.FromStream as advised in 2nd link but getting some other errors.

    Now converting the .tif files to LZW format using IrfanView and then merging using the code in 1st link. It seems ok.

    hope this helps for others who are into the same issue.

    Cheers.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 15, 2009 11:19 PM
  • User-481631678 posted

    Thanks srnilagiri for sharing your solution, it will be really helpful for others as well who are having similar issues.

    Thursday, July 16, 2009 12:17 AM