Ruby on rails Rails:render.HEIC图像在浏览器中使用image_标记从Cloduinary转换为jpg

Ruby on rails Rails:render.HEIC图像在浏览器中使用image_标记从Cloduinary转换为jpg,ruby-on-rails,cloudinary,rails-activestorage,Ruby On Rails,Cloudinary,Rails Activestorage,我目前正试图通过Cloudinary在浏览器中显示HEIC图像。可以将图像的格式更改为显示为jpg,文档中还说明了对jpg的支持。但是,当我尝试从Cloudinary使用fetch_format选项时,浏览器仍然没有将HEIC图像呈现为JPEG格式,尽管图像已经存在。这就是我所尝试的: <%= image_tag post.image, :fetch_format=> 'jpg' , class: "card-home__img" %> 你能分享一下cl_image_tag方

我目前正试图通过Cloudinary在浏览器中显示HEIC图像。可以将图像的格式更改为显示为jpg,文档中还说明了对jpg的支持。但是,当我尝试从Cloudinary使用
fetch_format
选项时,浏览器仍然没有将HEIC图像呈现为JPEG格式,尽管图像已经存在。这就是我所尝试的:

<%= image_tag post.image, :fetch_format=> 'jpg' , class: "card-home__img" %>

你能分享一下cl_image_tag方法为你想要以JPEG格式返回的HEIC生成的URL示例吗?
对不起,我指的是这个重定向到的Cloudinary URL。此外,您是否可以尝试使用
格式
转换,而不是
获取格式
?这会产生相同的结果吗?格式不起作用。你能从Cloudinary共享图像的URL吗?
<%= cl_image_tag(url_for(post.image), :format => :png ,:type => 'fetch', class: "card-home__img") %>
Redirected to http://res.cloudinary.com/XXXXXXXXX/image/upload/xxxxxxxxxxxq3r4.HEIC
Completed 302 Found in 24ms (ActiveRecord: 16.1ms | Allocations: 2588)
[ActiveJob] [ActiveStorage::AnalyzeJob] [ac0d5880-xxxxxxxxxxxxxxxxxxxxxxxxxx]   Cloudinary Storage (338.6ms) Downloaded file from key: kjpith3bxxxxxxxxxxxxxxxx
[ActiveJob] [ActiveStorage::AnalyzeJob] [ac0d5880-a243-4fef-xxxxxxxxxxxxxxxxxxxx] Skipping image analysis because ImageMagick doesn't support the file