Page 1 of 1

Backslashes in -set profile

Posted: 2018-12-16T15:12:16-07:00
by snibgo
Windows 8.1, IM v7.0.7-28.

Backslashes work in "-profile", but they are ignored in "-set profile".

Code: Select all

magick xc: -profile \web\im\sRGB.icc NULL:
... Works fine.

This fails:

Code: Select all

magick xc: -set profile \web\im\sRGB.icc NULL:

magick: unable to open file 'webimsRGB.icc': No such file or directory @ error/blob.c/FileToBlob/1304.

Re: Backslashes in -set profile

Posted: 2018-12-16T15:18:37-07:00
by fmw42
Just checking and forward slashes work fine on my Mac.

Code: Select all

magick xc: -set profile /Users/fred/images/profiles/sRGB.icc NULL:

Re: Backslashes in -set profile

Posted: 2018-12-16T16:23:34-07:00
by snibgo
In Windows, "-set profile" works fine with forward slashes. But backslashes are interpreted, eg backslash-n is interpreted as newline:

Code: Select all

f:\web\im>%IMG7%magick xc: -set profile \web\nim\sRGB.icc NULL:

magick: unable to open file 'web
imsRGB.icc': Invalid argument @ error/blob.c/FileToBlob/1304.
That interpretation (correctly) doesn't occur in "-profile".