how to merge single page tiff file to multi page tiff file

  • Hi

    I have a requirement to merge single page tiff files stroed in a table to a muli page tiff file...

    Can I accomplish this using SSIS?

    Thanks

    [font="Comic Sans MS"]
    ---------------------------------------------------

    Thanks [/font]

  • Not natively.

    If you can find a C#/VB solution, we can probably shoehorn it into SSIS somehow.

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.

  • You could certainly slam the data together but what you are looking for is more image handling. Phil is right, you need to look for an example in VB/C# that handles it and then see if you can rework it for SSIS. But out of the box, no, there is nothing to handle it.

    CEWII

  • Learner1 (10/27/2011)


    Hi

    I have a requirement to merge single page tiff files stroed in a table to a muli page tiff file...

    Can I accomplish this using SSIS?

    Thanks

    For image manipulation I would recommend ImageMagick. It is open-source and actively maintained and enhanced.

    ---
    SSIS Tasks Components Scripts Services | http://www.cozyroc.com/

  • Not natively.

    If you can find a C#/VB solution, we can probably shoehorn it into SSIS somehow.

    that's true ,here I would like share with u C# solution .check merge two tiff files sample codes for C#[/url]

    using RasterEdge.Imaging.TIFF;

    using RasterEdge.Imaging.Basic.Core;

    using RasterEdge.Imaging.Basic;

    namespace WindowsApplication1

    {

    public partial class Form1 : Form

    {

    public Form1()

    {

    InitializeComponent();

    }

    public static string FolderName = "c:/";

    private void button1_Click(object sender, EventArgs e)

    {

    string fileName1 = FolderName + "Sample1.tif";

    string fileName2 = FolderName + "Sample2.tif";

    string fileNameMerged = FolderName + "Merged.tif";

    REDocument doc1 = REFile.OpenDocumentFile(fileName1, new TIFDecoder());//use TIFDecoder open one tif file

    REDocument doc2 = REFile.OpenDocumentFile(fileName2, new TIFDecoder());//use TIFDecoder open another tif file

    BaseDocument docMerged = doc1.MergeDocument(doc2);//merge two tif

    REFile.SaveDocumentFile((REDocument)docMerged, fileNameMerged, new TIFEncoder());//save new tif

    }

    }

    }

  • taler6868 (7/22/2013)


    Not natively.

    If you can find a C#/VB solution, we can probably shoehorn it into SSIS somehow.

    that's true ,here I would like share with u C# solution .check merge two tiff files sample codes[/url] for C#

    using RasterEdge.Imaging.TIFF;

    using RasterEdge.Imaging.Basic.Core;

    using RasterEdge.Imaging.Basic;

    namespace WindowsApplication1

    {

    public partial class Form1 : Form

    {

    public Form1()

    {

    InitializeComponent();

    }

    public static string FolderName = "c:/";

    private void button1_Click(object sender, EventArgs e)

    {

    string fileName1 = FolderName + "Sample1.tif";

    string fileName2 = FolderName + "Sample2.tif";

    string fileNameMerged = FolderName + "Merged.tif";

    REDocument doc1 = REFile.OpenDocumentFile(fileName1, new TIFDecoder());//use TIFDecoder open one tif file

    REDocument doc2 = REFile.OpenDocumentFile(fileName2, new TIFDecoder());//use TIFDecoder open another tif file

    BaseDocument docMerged = doc1.MergeDocument(doc2);//merge two tif

    REFile.SaveDocumentFile((REDocument)docMerged, fileNameMerged, new TIFEncoder());//save new tif

    }

    }

    }

    thanks for sharing, that's awesome but somewhat overpriced for me who will just use it only once, do you have some cheaper or even free versions, any suggestion will be appreciated!

  • ImageMagick is free.

    ---
    SSIS Tasks Components Scripts Services | http://www.cozyroc.com/

  • To merge tiff files[/url] you can use this demo code:

    using RasterEdge.Imaging.TIFF;

    using RasterEdge.Imaging.Basic.Core;

    using RasterEdge.Imaging.Basic;

    namespace WindowsApplication1

    {

    public partial class Form1 : Form

    {

    public Form1()

    {

    InitializeComponent();

    }

    public static string FolderName = "c:/";

    private void button1_Click(object sender, EventArgs e)

    {

    string fileName1 = FolderName + "Sample1.tif";

    string fileName2 = FolderName + "Sample2.tif";

    string fileNameMerged = FolderName + "Merged.tif";

    REDocument doc1 = REFile.OpenDocumentFile(fileName1, new TIFDecoder());//use TIFDecoder open one tif file

    REDocument doc2 = REFile.OpenDocumentFile(fileName2, new TIFDecoder());//use TIFDecoder open another tif file

    BaseDocument docMerged = doc1.MergeDocument(doc2);//merge two tif

    REFile.SaveDocumentFile((REDocument)docMerged, fileNameMerged, new TIFEncoder());//save new tif

    }

Viewing 8 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic. Login to reply