resgh
resgh

Reputation: 984

Merge Images via Commandline

I'm looking for a way to merge several png images with identical dimensions together into a single file via commandline, like this:

file 1: ----------------
        ----------------
        ----------------
file 2: ................
        ................
        ................
result of merging files 1 and 2:
        ----------------
        ----------------
        ----------------
        ................
        ................
        ................

I've already done some googling but couldn't find anything useful so far. FYI, I'm trying to achieve this in a Powershell script. Thanks in advance.

Upvotes: 3

Views: 3772

Answers (1)

vonPryz
vonPryz

Reputation: 24091

Why wouldn't you use ImageMagic? The montage option is likely providing the functionality you are looking for.

If you insist on re-inventing the wheel, use System.Drawing.Bitmap to load and create bitmaps.

Upvotes: 4

Related Questions