montage with spaces in filenames
Posted: 2012-08-01T01:15:41-07:00
Hello.
I am using this command
p.StartInfo.Arguments = @"montage -tile 9x1 -geometry +0+0 ";
for(i = 0; i < 9; i++)
p.StartInfo.Arguments += " " + pathImages;
p.StartInfo.Arguments += " " + subdir + @"\final.jpeg ";
Here i am adding 9 jpg files from pathImages but it doesnt work if the images have spaces in names. How can i solve this?
Ex:
p.StartInfo.Arguments = @"montage -tile 9x1 -geometry +0+0 p11.jpg p22.jpg final.jpg "; OK
p.StartInfo.Arguments = @"montage -tile 9x1 -geometry +0+0 p1 1.jpg p22.jpg final.jpg "; WRONG because: p1 1.jpg image.
Thanks!
I am using this command
p.StartInfo.Arguments = @"montage -tile 9x1 -geometry +0+0 ";
for(i = 0; i < 9; i++)
p.StartInfo.Arguments += " " + pathImages;
p.StartInfo.Arguments += " " + subdir + @"\final.jpeg ";
Here i am adding 9 jpg files from pathImages but it doesnt work if the images have spaces in names. How can i solve this?
Ex:
p.StartInfo.Arguments = @"montage -tile 9x1 -geometry +0+0 p11.jpg p22.jpg final.jpg "; OK
p.StartInfo.Arguments = @"montage -tile 9x1 -geometry +0+0 p1 1.jpg p22.jpg final.jpg "; WRONG because: p1 1.jpg image.
Thanks!