More input files from variable
Posted: 2015-04-02T22:39:35-07:00
Hello,
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:
But when I use variable strInputFiles, is this use only as one input file with name from strInputFiles.
I can't use *.jpg because files will be sort 1,10,11,1...,2,. It's for panorama impossible.
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")
Code: Select all
dim strInputFiles
strInputFiles = " ""10_1.jpg"",""10_2.jpg"",""10_3.jpg"",""10_...."" "
objIMG.create (strInputFiles,"+append", "outputFile.jpg")