I'm running rails 4.1 and paperclip 4.2, after I deploy to AWS Elastic Beanstalk I cannot save files with paperclip to S3, I am getting an error:
Command :: file -b --mime '/tmp/308f17f99f5a4157c8839634d039b1c620141002-22818-7crhx4.jpg'
Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/308f17f99f5a4157c8839634d039b1c620141002-22818-xo8669.jpg[0]' 2>/dev/null
[paperclip] An error was received while processing: #<Paperclip::Errors::CommandNotFoundError: Could not run the `identify` command. Please install ImageMagick.>
Any ideas? How do I install ImageMagick to ELB?
Turns out, you can SSH into your EC2 instance and install ImageMagick manually, the caveat is that manual changes will not persist if there are updates to the instance itself. The best way to do this is to create an .ebextensions folder and add a config file. Something that looks like this:
packages:
yum:
ImageMagick-devel: []
Also, your .ebextensions should not be in your gitignore.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With