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.
multipage pdf to animated gif with [ in filename
-
- Posts: 2
- Joined: 2011-03-11T14:07:31-07:00
- Authentication code: 8675308
-
- Posts: 2
- Joined: 2011-03-11T14:07:31-07:00
- Authentication code: 8675308
Re: multipage pdf to animated gif with [ in filename
I forgot to write that the version is the last one:
# convert --version
Version: ImageMagick 6.6.8-3 2011-03-11 Q16 http://www.imagemagick.org
And I had the same behaviour wirg version 6.6.3 (I upgraded before posting this message.
Thank you
# convert --version
Version: ImageMagick 6.6.8-3 2011-03-11 Q16 http://www.imagemagick.org
And I had the same behaviour wirg version 6.6.3 (I upgraded before posting this message.
Thank you
Re: multipage pdf to animated gif with [ in filename
We can reproduce the problem you reported and have a patch in ImageMagick 6.6.8-4 Beta available by sometime tomorrow. Thanks.