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

  • sql_learner29

    SSCrazy Eights

    Points: 9107

    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]

  • Phil Parkin

    SSC Guru

    Points: 244578

    Not natively.

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

    If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.
    See https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help/ for details of how to post T-SQL code-related questions.

  • Elliott Whitlow

    SSC Guru

    Points: 102296

    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

  • COZYROC

    One Orange Chip

    Points: 28499

    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/

  • taler6868

    Valued Member

    Points: 65

    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

    }

    }

    }

  • charles_frazier64

    SSC Enthusiast

    Points: 118

    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!

  • COZYROC

    One Orange Chip

    Points: 28499

    ImageMagick is free.

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

  • challenge85

    SSC Enthusiast

    Points: 143

    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 8 (of 8 total)

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