Currently I'm trying to display .HEIC
images in Rails 6. I'm using ActiveStorage ImageMagic to use variant to display jpg
. Basically I'm trying to use
mogrify -format jpg myimage.heic
In the image to display jpg
.
I added Rails.application.config.active_storage.variant_processor
into application.rb to be able to use the variant. However it seems to break in the following line:
<%= image_tag post.image.variant(format: 'jpg'), class: "card-home__img" %>
Why is not working?
.variable?
means. Seems like a weird choice kinda unrelated to what it actually does – Empoverish