Problem convert tif to pdf " @ blob.c/OpenBlob/2480."
Posted: 2010-06-07T14:05:14-07:00
Hello,
I use LINUX system and something really strange occured.
When I used the command to convert a tif image into a pdf image (notice that has spaces in the names of images):
thats ok!
But when I used variables (cause I wanna put this code into a script):
returned the error:
So I try to see the mistake:
(equal to the first code ????)
I don't know where is the problem, I already used similar code with another commands in LINUX, then I tried to search what's wrong and I just find windows and mac similiar problems, but they don't help me.
Thanks for reading !
I use LINUX system and something really strange occured.
When I used the command to convert a tif image into a pdf image (notice that has spaces in the names of images):
Code: Select all
$ convert "/tmp/image 16832.tif" "/tmp/image 16833.tif" "/tmp/test alpha.pdf"
But when I used variables (cause I wanna put this code into a script):
Code: Select all
$ image="\"/tmp/image 16832.tif\" \"/tmp/image 16833.tif\""
$ path="\"/tmp/test alpha.pdf\""
$ convert $image $path
Code: Select all
convert: unable to open image `"/tmp/image':No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `16832.tif"': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `"/tmp/image': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `16833.tif"': No such file or directory @ blob.c/OpenBlob/2480.
convert: unable to open image `"/tmp/test': No such file or directory @ blob.c/OpenBlob/2480.
convert: missing an image filename `alpha.pdf"' @ convert.c/ConvertImageCommand/2838.
Code: Select all
$ echo convert $image $path
convert "/tmp/image 16832.tif" "/tmp/image 16833.tif" "/tmp/test alpha.pdf"
I don't know where is the problem, I already used similar code with another commands in LINUX, then I tried to search what's wrong and I just find windows and mac similiar problems, but they don't help me.
Thanks for reading !