Page 1 of 1

label:@-

Posted: 2014-01-22T23:09:34-07:00
by GreenKoopa
Something about newlines when using label:@- is causing a problem. Is this expected? Does this happen only on Windows?

Test 1-4 work as expected. Tests 5 & 6 give the error:
convert.exe: unable to read blob `-': No such file or directory @ error/blob.c/FileToBlob/1055.
If -size is specified for case 5 & 6, IM hangs.

Code: Select all

convert label:@"single.txt" test1.png
convert label:@- test2.png < "single.txt"
type "single.txt" | convert label:@- test3.png
convert label:@"multi.txt" test4.png
convert label:@- test5.png < "multi.txt"
type "multi.txt" | convert label:@- test6.png
ImageMagick 6.8.8-1 Q16 x64 2013-12-25 on Windows 7

Re: label:@-

Posted: 2014-01-23T00:01:58-07:00
by fmw42
try

convert label:"@single.txt" test1.png

or

convert label:@single.txt test1.png

Re: label:@-

Posted: 2014-01-23T00:40:42-07:00
by GreenKoopa
Yes, Windows is weird about quotes. But they are not the problem this time.

label:@filename reads from a file correctly (cases 1 & 4)
label:@- reads from a pipe correctly (cases 2 & 3)
label: handles newlines properly. (case 4, and as a direct string)
but when @- and newlines are mixed, nothing good happens (cases 5 & 6)

Re: label:@-

Posted: 2014-01-23T02:44:59-07:00
by snibgo
Problem confirmed for IM v6.8.8-0 on Windows 8.1.

Re: label:@-

Posted: 2014-01-24T03:26:31-07:00
by dlemstra
We are working on a fix. This is a windows only problem and will be fixed in ImageMagick 6.8.8-3.