Unable to create BigTIFF >4GB using Aspose.Imaging BigTiffImage / BigTiffOptions

I am currently working on a requirement to merge a large number of single-page TIFF images into a single BigTIFF file where the final output size is expected to exceed 4GB.

While attempting this using Aspose.Imaging(version 25.11) for .NET, I have encountered several issues related to ‘BigTiffOptions’, ‘TiffOptions’, and ‘TiffExpectedFormat’, as well as unexpected behavior where the output file consistently remains below 4GB.
Clarify the correct way to reliably generate a BigTIFF larger than 4GB.

Environment Details

  • Aspose.Imaging Version: 25.11
  • .NET Framework: 4.8
  • Operating System: Windows 11 Enterprise (64-bit)
  • Development Environment: Visual Studio 2019
  • Application Type: Console Application

Hi Team, as per your guidance we tested the sample code, but we are still encountering the following exceptions. We are running the application under AnyCPU and using version 23.3.0. We also previously tested with version 25.11, but observed the same issue. We are not seeing the “BigTiff” option under TiffExpectedFormat.

image.png (151.3 KB)

@SAM_OFFICE_OPERATIONS_XEROX_COM Hello! Thank you for your interest in our product. To create BigTiff images, you can use the following code:

var options = new BigTiffOptions(TiffExpectedFormat.TiffLzwRgb)
{
    Source = new FileCreateSource(pathToLargeBigTiff, false)
};

using (var image = Image.Create(options, width, height))
{
    // ...
    image.Save();
}

or

var options = new BigTiffOptions(TiffExpectedFormat.TiffJpegYCbCr);
using (var image = new BigTiffImage(new TiffFrame(options, 64, 64)))
{
    // ...
}

For more precise guidance and debugging, we will need a code sample and preferably some test images on which we can run diagnostics.

Hello Aspose team,
I followed the BigTIFF sample patterns and forum guidance, but my merge fails with a Stream was too long exception.
While merging ~260 single-page TIFF files into one BigTIFF (expected output ≈ 6.34 GB) the process throws
“System.IO.IOException: Stream was too long.
at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at Aspose.Imaging.FileFormats.Tiff.TiffFrame.ProcessBuffer(…)
…”
I have attached the exact error message for your reference.And, also the code snippet, I’ve been using as per your suggestion.
Exception_Stream_was_too_long.png (233.3 KB)

BigTiff_CodeSnippet.png (22.7 KB)

Please confirm if this is a known limitation and how we should proceed to reliably create BigTIFF files >4GB.

@SAM_OFFICE_OPERATIONS_XEROX_COM
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): IMAGINGNET-7892

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Hi team,
Is there any updates on the ticket?
Issue ID(s): IMAGINGNET-7892
Kindly let us know regarding the status of the ticket.

@SAM_OFFICE_OPERATIONS_XEROX_COM Hello! Work on this task has not started yet. It will be completed according to the assigned priorities, and we cannot provide exact deadlines at this time.