Page 1 of 1

Cannot open file with : in the path name

Posted: 2012-06-29T01:53:35-07:00
by tlichev
I'm using ImageMagick 6.7.7-9 Q16 on Linux
This is my convert command:

Code: Select all

/opt/ImageMagick-6.6.7-bin/bin/convert /S:/store/snowman_138060_0.psd[0] -flatten -rotate 0 -interpolate bicubic -resize 320x320! -verbose -depth 8 GIF:/S:/temp/media6669569482882550110.gif
As you can see there is a colon in the source path name and I'm getting an error (doesn't matter if the colon is escaped or not - /S:/... or /S\:/...)

Code: Select all

convert: unable to open image `/store/snowman_138060_0.psd': No such file or directory @ error/blob.c/OpenBlob/2638
It works if the source file name is without [0] or there is no colon in the path

Re: Cannot open file with : in the path name

Posted: 2012-06-29T11:22:11-07:00
by fmw42
try quotes around your file names (single or double?)

"/S:/store/snowman_138060_0.psd[0]"


Also search the archives and I seem to recall something about this not too long ago.

see viewtopic.php?f=3&t=19215&p=75045&hilit ... ame#p75045

Re: Cannot open file with : in the path name

Posted: 2012-06-30T02:34:39-07:00
by tlichev
Tried with quotes, doesnt help much ...
And as far as I see from the post this problem has been reproduced in 6.7.3 and I dont know if it has been fixed in 6.7.7

Re: Cannot open file with : in the path name

Posted: 2012-06-30T09:41:22-07:00
by fmw42
Post the problem to the Bugs forum and ask if it was fixed or somehow got reverted.

Re: Cannot open file with : in the path name

Posted: 2012-07-04T18:50:18-07:00
by anthony
Quotes are for the shell or DOS. The ':' problem is with Imagemagick. It thinks you have a 'coder' as part of the filename.

Backslash the ':' - ensuring the backslash is also passed to IM by doubling it.

See IM examples, File Handling, Meta-Character Handling
http://www.imagemagick.org/Usage/files/#read_meta

This was extracted from that discussion Fred remembered.

Re: Cannot open file with : in the path name

Posted: 2013-03-08T06:31:58-07:00
by tlichev
The same problem is reproducible in Linux with 6.8.3-7
There is no way to parse colon as part of the path. Tried escaping (single, double, triple), quotes, both ... no luck.