When I use Active Storage, and when someone upload a .webp image, and when I run file.attach(io: webp_file, filename: 'file.webp')
it works, and then ActiveStorage automatically run a job ActiveStorage::AnalyzeJob
But this job raises :
MiniMagick::Error (`identify -format %[orientation] /tmp/ActiveStorage-114989-20180905-4-wak8ob.webp[0]` failed with error:
identify-im6.q16: delegate failed `'dwebp' -pam '%i' -o '%o'' @ error/delegate.c/InvokeDelegate/1919.
identify-im6.q16: unable to open file `/tmp/magick-1400SWBHj-p67HrV': No such file or directory @ error/constitute.c/ReadImage/544.
Although I am on Heroku-18, and so there is a lib called "libwepb6" (https://devcenter.heroku.com/articles/stack-packages) 🤔
Do I have to create a Heroku buildpack?
rails_admin
did not work nicely however and after some digging I realized I had to addwebp
to this line github.com/sferik/rails_admin/blob/…. I'm leaving this here in case it helps others in the future. – Harassed