Forum
Images not previewing in Asset Library
I recently uploaded a Perch website to a Linux turnkey server. The thumbnail previews within the assets library loads fine when working offline on a localhost. However when on the server images don't preview. The client's IT I'm dealing with are suggesting that the server has image processing installed. Ant idea why this is happening?
Summary information
Perch: 3.0.8, PHP: 5.6.30-0+deb8u1, MySQL: 5.5.55, with PDO
Server OS: Linux, apache2handler
Installed apps: content (3.0.8), assets (3.0.8), categories (3.0.8), perch_blog (5.5.1), perch_members (1.6.1)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_members', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /var/www/perch
PERCH_CORE: /var/www/perch/core
PERCH_RESFILEPATH: /var/www/perch/resources
Image manipulation: Imagick
PHP limits: Max upload 16M, Max POST 16M, Memory: 128M, Total max file upload: 16M
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
Resource folder writeable: Yes
HTTP_HOST: 217.112.148.242
DOCUMENT_ROOT: /var/www/
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
When you upload an image does the thumbnail file get added to the file system?
Hi Drew. The image preview appears to working only on certain pages. We have a selection of blocks for the client to use. On one page the previews of one block will display no problem, where as the exact same block template used on another page will not display!
Have you checked you error log? Does the same content work in both places?
Hi Drew, I've checked error logs and nothing is jumping out to me on either a block region page where images previews are failing:
or directly within the Asset Preview library:
"Does the same content work in both places?" I'm not sure exactly what you mean by this? All content works, it's just image previews on Perch are sporadically working within certain blocks and pages. And on the Asset Library window, image previews do not work at all. I believe this is a server issue of some sort as everything works fine for me on my virtual server. Can this be identified though by Perch?
It sounds like something you should ask your host about.
Hi Drew, In relation to the above. The hosting/IT have confirmed they have libmagickwand 6 installed on their server and are querying would libmagickwand dev work instead? Does Perch have any known limitations to it's image processing capabilities on servers?
Perch doesn't process the images itself - that's done by the libraries on the server. So the limitations are in memory availability, file upload allowances (a PHP setting), disk space etc.