This is a typical command I’m running:
Code: Select all
strConvertResult = objMagImage.convert ("(", "c:\test1\Preprod\Trk1Seg65.png", "-repage", "+200+0", ")", "(", "c:\test1\Preprod\Trk1Seg66.png", "-repage", "+600+0", ")", "(", "c:\test1\Preprod\Trk1Seg67.png", "-repage", "+1000+0", ")", "(", "c:\test1\Preprod\Trk1Seg68.png", "-repage", "+1400+0", ")", "(", "c:\test1\Preprod\Trk1Seg69.png", "-repage", "+1800+0", ")", "(", "c:\test1\Preprod\Trk1Seg70.png", "-repage", "+2200+0", ")", "(", "c:\test1\Preprod\Trk1Seg71.png", "-repage", "+2600+0", ")", "(", "c:\test1\Preprod\Trk1Seg72.png", "-repage", "+3000+0", ")", "(", "c:\test1\Preprod\Trk1Seg73.png", "-repage", "+3400+0", ")", "-layers", "mosaic", "c:\test1\Preprod\TLTrack1.png")
Code: Select all
convert ( c:\test1\Preprod\Trk1Seg65.png -repage +200+0 ) ( c:\test1\Preprod\Trk1Seg66.png -repage +600+0 ) ( c:\test1\Preprod\Trk1Seg67.png -repage +1000+0 ) ( c:\test1\Preprod\Trk1Seg68.png -repage +1400+0 ) ( c:\test1\Preprod\Trk1Seg69.png -repage +1800+0 ) ( c:\test1\Preprod\Trk1Seg70.png -repage +2200+0 ) ( c:\test1\Preprod\Trk1Seg71.png -repage +2600+0 ) ( c:\test1\Preprod\Trk1Seg72.png -repage +3000+0 ) ( c:\test1\Preprod\Trk1Seg73.png -repage +3400+0 ) -layers mosaic c:\test1\Preprod\TLTrack1.png
So two questions:
1 What would be the correct format of a text file for that ridiculously complex command line parameter?
2 How exactly do I call ImageMagick object to read the text file?
Thanks!