Page 1 of 1

space in image file conversion?????

Posted: 2013-02-27T02:51:41-07:00
by Rajnishsingh
Hello To all respected expert,
Actually sir I am going to Convert .eps file to .jpg image..My conversion string is

Code: Select all

convert D:\\aa ss.eps -background white -flatten -density 300 -colors 512 -antialias  -normalize -units PixelsPerInch -quality 100 -colorspace RGB -resize 3425x3425  D:\\all.jpg 
Now My image Name contain blank space so it does not capable to Convert what when I remove space It successfully work....But I have Millons of files to convert ..so remove the space is not the better Idea ..Please help me to remove the error of space....with the space I does not get any error but not successful to convert..

Thanxx.....

Re: space in image file conversion?????

Posted: 2013-02-27T03:17:15-07:00
by snibgo
Put the file name in quotes:

Code: Select all

convert "D:\aa ss.eps" -background white ...

Re: space in image file conversion?????

Posted: 2013-02-27T03:27:08-07:00
by Rajnishsingh
Very very thanks sir for reply .......Actually Sir I use Imagemagick in c#..So My conversion string is
this..

Code: Select all

Process.StartInfo.Arguments = "convert D:\\aa ss.eps  -background white -flatten -density 300 -colors 512 -antialias  -normalize -units PixelsPerInch -quality 100 -colorspace RGB -resize 3425x3425  D:\\all.jpg ";
So in How Could I give Double quata.. ?? Please Help me.....
Thans again

Re: space in image file conversion?????

Posted: 2013-02-27T04:04:36-07:00
by snibgo
I don't know C#, but you probably need to escape it, just as you escaped the backslash:

Code: Select all

convert \"D:\\aa ss.eps\" -background white ...

Re: space in image file conversion?????

Posted: 2013-02-27T04:11:54-07:00
by Rajnishsingh
Verryyyyyy verrry thanx sir.....
It works for me.... :D