multipage pdf to animated gif with [ in filename

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
massimobalestra
Posts: 2
Joined: 2011-03-11T14:07:31-07:00
Authentication code: 8675308

multipage pdf to animated gif with [ in filename

Post by massimobalestra »

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.
massimobalestra
Posts: 2
Joined: 2011-03-11T14:07:31-07:00
Authentication code: 8675308

Re: multipage pdf to animated gif with [ in filename

Post by massimobalestra »

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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: multipage pdf to animated gif with [ in filename

Post by magick »

We can reproduce the problem you reported and have a patch in ImageMagick 6.6.8-4 Beta available by sometime tomorrow. Thanks.
Post Reply