thoughtbot/paperclip — Issue #625: Paperclip's identify command seems to fail with ImageMagick 6.7.x due to appending [0] to filename
Author: nickgrim
Created: 2011-10-18 13:10:12+00:00
State: open

[This line](https://github.com/thoughtbot/paperclip/blob/master/lib/paperclip/geometry.rb#L22) of `Paperclip::Geometry#from_file` inserts an additional `[0]` on the end of the filename to be identified, and this is causing errors for me.

Compare the following (ImageMagick 6.6.6, on OS X):

```bash
$ identify | head -1
Version: ImageMagick 6.6.6-10 2011-05-24 Q8 http://www.imagemagick.org
$ ls
foo.png
$ identify 'foo.png'
foo.png PNG 1440x867 1440x867+0+0 8-bit DirectClass 226KB 0.000u 0:00.000
$ identify 'foo.png[0]'
foo.png[0]=>foo.png PNG 1440x867 1440x867+0+0 8-bit DirectClass 226KB 0.000u 0:00.000
```

with this (ImageMagick 6.7.3, on Linux):

```bash
$ identify | head -1
Version: ImageMagick 6.7.3-0 2011-10-13 Q16 http://www.imagemagick.org
$ ls
bar.png
$ identify 'bar.png'
bar.png PNG 1148x1150 1148x1150+0+0 8-bit DirectClass 505KB 0.000u 0:00.000
$ identify 'bar.png[0]'
identify: unable to open image `bar.png[0]': No such file or directory @ error/blob.c/OpenBlob/2589.
identify: no decode delegate for this image format `bar.png[0]' @ error/constitute.c/ReadImage/532.
```