space in image file conversion?????

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
Rajnishsingh
Posts: 4
Joined: 2013-02-27T02:33:25-07:00
Authentication code: 6789

space in image file conversion?????

Post 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.....
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post by snibgo »

Put the file name in quotes:

Code: Select all

convert "D:\aa ss.eps" -background white ...
snibgo's IM pages: im.snibgo.com
Rajnishsingh
Posts: 4
Joined: 2013-02-27T02:33:25-07:00
Authentication code: 6789

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

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post 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 ...
snibgo's IM pages: im.snibgo.com
Rajnishsingh
Posts: 4
Joined: 2013-02-27T02:33:25-07:00
Authentication code: 6789

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

Post by Rajnishsingh »

Verryyyyyy verrry thanx sir.....
It works for me.... :D
Post Reply