multipage pdf to animated gif with [ in filename
Posted: 2011-03-11T14:37:31-07:00
Hi,
I have a multipage pdf and I want to convert it to animated gif.
If the operation is simple and the filenames have no strange characters everything works fine.
I simply run the command
# convert test.pdf test.gif
# ls -l
total 644
-rw-r--r-- 1 root root 143403 2011-03-11 13:18 test.gif
-rw-r--r-- 1 root root 500073 2011-03-11 11:34 test.pdf
All works perfectly. It creates the file test.gif taht is an animated gif as I expected. Good.
But if my Destination file name contains a [ (square brachet) it has a strange behaviour:
# convert test.pdf test[test.gif
# ls -l
total 644
-rw-r--r-- 1 root root 500073 2011-03-11 11:34 test.pdf
-rw-r--r-- 1 root root 143403 2011-03-11 13:16 test[test.pdf-0.gif
It added a suffix '-0' to the filename.
This happens only if the destination file has a '['.
I tried to put the destination filename (with the square brackets) in quotes, I tried to escape the [ with \[ but I had the same result.
I tried also with other characters instead of the [ but with all the ones I tried it works. Only the square brachet has this strange behaviour.
The generated file is correct, an animated gif as I expected, only the file name is unexpected.
I guess this is a bug.
I have a multipage pdf and I want to convert it to animated gif.
If the operation is simple and the filenames have no strange characters everything works fine.
I simply run the command
# convert test.pdf test.gif
# ls -l
total 644
-rw-r--r-- 1 root root 143403 2011-03-11 13:18 test.gif
-rw-r--r-- 1 root root 500073 2011-03-11 11:34 test.pdf
All works perfectly. It creates the file test.gif taht is an animated gif as I expected. Good.
But if my Destination file name contains a [ (square brachet) it has a strange behaviour:
# convert test.pdf test[test.gif
# ls -l
total 644
-rw-r--r-- 1 root root 500073 2011-03-11 11:34 test.pdf
-rw-r--r-- 1 root root 143403 2011-03-11 13:16 test[test.pdf-0.gif
It added a suffix '-0' to the filename.
This happens only if the destination file has a '['.
I tried to put the destination filename (with the square brackets) in quotes, I tried to escape the [ with \[ but I had the same result.
I tried also with other characters instead of the [ but with all the ones I tried it works. Only the square brachet has this strange behaviour.
The generated file is correct, an animated gif as I expected, only the file name is unexpected.
I guess this is a bug.