Closed antontre1 closed 1 year ago
You don't have libvips or ImageMagick installed, right? https://guides.rubyonrails.org/active_storage_overview.html#requirements
Thank you very much for your reading and question Mitsuhiro. Yes I'm supposed to have ImageMagick installed: Version: ImageMagick 7.1.0-62 Q16-HDRI x86_64 20885 https://imagemagick.org Copyright: (C) 1999 ImageMagick Studio LLC License: https://imagemagick.org/script/license.php Features: Cipher DPC HDRI Modules OpenMP(5.0) Delegates (built-in): bzlib fontconfig freetype gslib heic jng jp2 jpeg jxl lcms lqr ltdl lzma openexr png ps raw tiff webp xml zlib Compiler: gcc (4.2)
You already installed ImageMagick. I see. Then the next step is to find out why thumbnail requests are failing. Do they reach to the Rails server? If yes, what does the log say?
Thank you for your answer Mitsuhiro.
If I understand well, there is something link to libvips as you've early said. Nevertheless I'm supposed to have ImageMagicks.
Based on this, I've forced my rails 7 config to use ImageMagicks, as it was not in my config file originally (cf stackoverflow answer here). Pictures are now shown correctly :)
below you can see the log with original error
Please, let me know if I can contribute in order to help other people facing the same issue ?
Great that you could solve this. It's always better to find the root cause, not to make an ad-hoc fix 👍
Describe the bug As you can see in this picture, can't get correct thumbnail of the picture via activestorage in the index view of a table.
Reproduction steps Install rails_admin go to the dashboard go to one table with picture attached try to see the thumbnail in the index view of this table
Expected behavior Expected to see the thumbnail of the picture, as you can see normaly in this screenshot
Additional context
rails
version: 7.0.4.2rails_admin
version: 3.1.1rails_admin npm package version
: 3.1.1npm version
: 8.0.11Proposed fix:
thumb_url
inimage_html = v.image_tag(thumb_url, class: 'img-thumbnail') by resource_url