I've upgraded my Homebrew ImageMagick to 6.9.4-7
version (Mac OS 10.11.5), after which it doesn't understand brackets in file names anymore.
This command should consider the first frame of a picture:
identify -format '%wx%h,1' 'some_pic.jpg[0]'
For JPG it is actually just the picture, so the command is equivalent to:
identify -format '%wx%h,1' 'some_pic.jpg'
The bracket command works fine on my Ubuntu server and worked before on my Mac. But now it fails with
identify: unable to open image `some_pic.jpg[0]':
No such file or directory @ error/blob.c/OpenBlob/2705.
Btw, this is the reason behind Paperclip::Errors::NotIdentifiedByImageMagickError
on my local machine.