I'm using ImageMagick along with paperclip to upload images in a RoR application. The problem is that the command 'identify' is causing trouble. My app throws the following error "Image Paperclip::Errors::NotIdentifiedByImageMagickError". Looking deep into the logger, I found:
Command :: identify -format '%wx%h,%[exif:orientation]' "C:/Users/<...>" 2>NUL
[paperclip] An error was received while processing: #<Paperclip::Errors::NotIdentifiedByImageMagickError: Paperclip::Errors::NotIdentifiedByImageMagickError>
Command :: identify -format '%wx%h,%[exif:orientation]' "C:/Users/<...>" 2>NUL
[paperclip] An error was received while processing: #<Paperclip::Errors::NotIdentifiedByImageMagickError: Paperclip::Errors::NotIdentifiedByImageMagickError>
And then I tried to wirte the problematic commad into my cmd and it throws
identify: unknown image property "%[exif:orientation]" @ warning/property.c/InterpretImageProperties/3904
I'm using Windows and I have installed ImageMagick 7.0.7 with legacy options.
The problem isn't that I don't know how to get the orientation. The problem is that when I upload an image and try to create the 'profiles'
has_attached_file :image,
styles: { thumb: ["64x64#", :jpg],
original: ['500x500>', :jpg] },
convert_options: { thumb: "-quality 75 -strip",
original: "-quality 85 -strip" }
Paperclip makes an automatic call to that command to get the orientation and my console does not seem to recognize that command.