refinerycms icon indicating copy to clipboard operation
refinerycms copied to clipboard

Image thumbnails not visible in Refinerycms 4.1.0

Open jussihirvi opened this issue 4 years ago • 2 comments

I installed refinerycms from the master branch and got version 4.1.0. The images engine works ok, but image thumbnails on the page /refinery/images are invisible. This is clearly because image width and height are both 0 in the source code:

      <img width="0.0" height="0.0" alt="myalt" title="mytitle" src="/system/refinery/images.... 

Seems simple enough, but how to fix this?

jussihirvi avatar Nov 18 '20 17:11 jussihirvi

I think I've encountered this recently. I did two things:

I added css

#image_grid li > img {
  height: inherit;
  width: inherit
}


When I look now I can see my thumbnails do have a width and height on them, but I did have a problem then.

anitagraham avatar Nov 30 '20 03:11 anitagraham

I now had this problem on another system, and it turned out ImageMagick was not installed in my OS. Duh! It would save some trouble if refinerycms could test for ImageMagick, for example by trying to show a thumbnail with geometry, and throw an informative error if IM is not detected. In that case the thumbnail is probably nil.

jussihirvi avatar Feb 02 '21 13:02 jussihirvi