0
Not a bug

Previews not loading for larger pictures

wonx 2 months ago • updated by Vlad R 2 months ago 8

I am using the last version of FileRun (2019.05.21). I have observed that some preview pictures (when  you double click on a thumbnail) are not generated correctly. A spinning circle appears over the thumbnail, and after a second or two, a gray "landscape" icon appears. In only happens with larger pictures (e.g. larger than 3MB or so, or in pictures with a higher resolution), while smaller pictures load instantly.

Why could that be happening? I don't think it's a processing power issue. Is there a log file I can use to troubleshoot the issue?

Thanks in advance.

Answer

Answer

Ok, solved it!

Filerun by default tries to save the preview picture at the same path the original file is. In my case, the www-data does not have write access to that path (nor I want it to).

I just created a folder to store the thumbnails (e.g. "/var/www/html/filerun/thumbnail_cache"), and then created a configuration file at /var/www/html/filerun/customizables/config.php including the following content:

<?php
    $config['path']['thumbnail_cache'] = '/var/www/html/filerun/thumbnail_cache/';
?>

Problem solved!

PS: but then... why some preview pictures (for smaller pictures) were generated correctly?

Under review

Thumbnails and image previews require ImageMagick (http://docs.filerun.com/imagemagick). Do you have that installed and enabled? 

Yes, it is installed:



root@box-media:~# convert -version
Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib

And also checked in FileRun's settings. The thumbnails are generated correctly (I use the supplied script in a cron job to accelerate the process).

We cannot guess what might go wrong for you, so if you wish, you can contact us to provide access to your installation for troubleshooting: https://filerun.com/contact

Answer

Ok, solved it!

Filerun by default tries to save the preview picture at the same path the original file is. In my case, the www-data does not have write access to that path (nor I want it to).

I just created a folder to store the thumbnails (e.g. "/var/www/html/filerun/thumbnail_cache"), and then created a configuration file at /var/www/html/filerun/customizables/config.php including the following content:

<?php
    $config['path']['thumbnail_cache'] = '/var/www/html/filerun/thumbnail_cache/';
?>

Problem solved!

PS: but then... why some preview pictures (for smaller pictures) were generated correctly?

Smaller picture files are just served as they are, no processing.

Hi,

I think that is a really bug beacause :
* filerun create a shadow folder who contains thumbnails in your folder where are your pictures
* creation thumbnails is very slow.

* and it's impossible to create thumbnails for ARW format pictures. Usely, ImageMagick know this format.

I disagree with everything you wrote. If you are having problems with your particular installation, with thumbnails generation being slow, or if you want to know how to configure FileRun to handle additional file formats, you are welcome to start a proper thread.