Hi,
This is to update you that the sample that you shared are not TIFF images. There is only one image [ISIS-6130 A4 600 DUP BW_00028.tif] that is a TIFF. All others are JPG files with incorrect TIFF extension.
CODE:
var createOptions = new TiffOptions(Default);
var fileStream = new FileStream(outputFilePath, FileMode.Create);
createOptions.Compression = TiffCompressions.None;
createOptions.Source = new StreamSource(fileStream);
using (var output = (TiffImage)Image.Create(createOptions, 100, 100))
{
foreach (var file in inputFiles)
{
using (var input = (TiffImage)Image.Load(file))
{
output.AddFrame(TiffFrame.CreateFrameFrom(input.Frames[0], createOptions));
}
}
output.ActiveFrame = output.Frames[1];
output.RemoveFrame(0);
output.Save();
}
Actually you are saying aren't TIFF images,but JPG files with incorrect TIFF extension.
How to find the give input files are in correct format or not ,is there any code in aspose to find that ,please send if any.
Thanks in advance.