Page 1 of 1

Problem with Convert saying files do not exist

Posted: 2007-06-29T08:30:02-07:00
by setheridge
Hi all

I am having problems using Convert from within a windows script. All object instantiations work fine, but there seems to be a problem with Convert. This also happens when trying Convert from the command line.

For instance, the command line

"Convert c:\data\dev\image.eps c:\data\dev\image.jpg"

gives the following error messages:

"convert: unable to open 'c:\data\dev\image.eps' : no such file or directory
convert: missing an image filename 'c:\data\dev\image.jpg'."

I get the same error calling from within the script or directly as above. The files and directories exist.

When called from within the script (JavaScript), the error codes returned (with the same messages as above) are:

code 435 no such file or directory
code 410 missing an image filename

Any suggestions gratefully received.

Regards

Stephen

Re: Problem with Convert saying files do not exist

Posted: 2007-07-09T10:28:03-07:00
by andrewadperfect
The files might actually be there, but if convert is saying they aren't, they
must be in a different place than is being specified, or convert isn't understanding
the paths.

"Convert c:\data\dev\image.eps c:\data\dev\image.jpg"

If you are actually using the quotes, you might try:

convert "c:\data\dev\image.eps" "c:\data\dev\image.jpg"

The "missing" error is a secondary one because the first failed. The real problem is
that conver isn't "seeing" c:\data\dev\image.eps

I've used IM on both a Linux and Windows platform, and it recognizes paths fine
in both situations. Triple-check your filenames and the paths they are in.

Are you running the command through the DOS prompt? Cygwin? etc?

Re: Problem with Convert saying files do not exist

Posted: 2007-07-10T06:23:43-07:00
by setheridge
Andrew

I am running from the DOS prompt. I have also tried using jscript too.

Kind regards

Steve
andrewadperfect wrote:The files might actually be there, but if convert is saying they aren't, they
must be in a different place than is being specified, or convert isn't understanding
the paths.

"Convert c:\data\dev\image.eps c:\data\dev\image.jpg"

If you are actually using the quotes, you might try:

convert "c:\data\dev\image.eps" "c:\data\dev\image.jpg"

The "missing" error is a secondary one because the first failed. The real problem is
that conver isn't "seeing" c:\data\dev\image.eps

I've used IM on both a Linux and Windows platform, and it recognizes paths fine
in both situations. Triple-check your filenames and the paths they are in.

Are you running the command through the DOS prompt? Cygwin? etc?

Re: Problem with Convert saying files do not exist

Posted: 2007-07-10T08:13:38-07:00
by andrewadperfect
Make the process as simple as possible.

1) Open the DOS prompt and go to the folder where the EPS is.

2) Use the convert command without the path. This will be the most specific.

convert image.eps image.jpg

If you are using IM, we can assume you are not making an error with the
directory names or filenames. There's no way we can help with that kind
of thing.

If you are positive the files are there and convert still doesn't recognize it,
there's something else wrong.

Just thought of one more thing...

Maybe it's the EPS file. What if you just convert a JPG to another JPG or a GIF?