More input files from variable

ImageMagickObject is a Windows COM+ interface to ImageMagick. COM+, Visual Basic, and Delphi users should post to this discussion group.
Post Reply
Posts: 1
Joined: 2015-04-02T21:55:37-07:00
Authentication code: 6789

More input files from variable

Post by Jova » 2015-04-02T22:39:35-07:00


I have problem with syntax of method Convert in WHScript.

First part of this script will create more jpg files (about 300) with names according scheme RowIndex & "_" & ColumnIndex & "jpg" (example: 10_2.jpg, 16_12.jpg).

Names of created files are save in variable strInputFiles as string. After every done all files for Row, It should create horizont panorama.

When I write down names input files manualy, it's all right:

Code: Select all

dim objIMG

set objIMG = CreateObject("ImageMagickObject.MagickImage.1")

objIMG.create ("10_1.jpg","10_2.jpg","10_3.jpg","10_....","+append","outputFile.jpg")
But when I use variable strInputFiles, is this use only as one input file with name from strInputFiles.

Code: Select all

dim strInputFiles

strInputFiles = " ""10_1.jpg"",""10_2.jpg"",""10_3.jpg"",""10_...."" "

objIMG.create (strInputFiles,"+append", "outputFile.jpg")
I can't use *.jpg because files will be sort 1,10,11,1...,2,. It's for panorama impossible.

Posts: 9392
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: More input files from variable

Post by snibgo » 2015-04-02T23:43:05-07:00

I don't know, but you might use the technique shown in viewtopic.php?f=8&t=13198

When the order of images is important, it is better to use leading zeros in filenames, eg "01", "02" etc.
snibgo's IM pages:

Post Reply