Problem with Convert saying files do not exist

ImageMagickObject is a Windows COM+ interface to ImageMagick. COM+, Visual Basic, and Delphi users should post to this discussion group.

Problem with Convert saying files do not exist

Postby setheridge » 2007-06-29T08:30:02+00:00

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
setheridge
 

Re: Problem with Convert saying files do not exist

Postby andrewadperfect » 2007-07-09T10:28:03+00:00

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?
andrewadperfect
 
Posts: 14
Joined: 2007-04-03T09:31:34+00:00

Re: Problem with Convert saying files do not exist

Postby setheridge » 2007-07-10T06:23:43+00:00

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?
setheridge
 

Re: Problem with Convert saying files do not exist

Postby andrewadperfect » 2007-07-10T08:13:38+00:00

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?
andrewadperfect
 
Posts: 14
Joined: 2007-04-03T09:31:34+00:00


Return to Windows COM+ & Visual Basic

Who is online

Users browsing this forum: No registered users and 2 guests