Table of contents
  1. 1. Lyons (9.02)
  2. 2. Kilen Woods (8.08)

If you've imported a mass number of images from a previous version of MindTouch Deki, your image previews may not have been created properly.

Lyons (9.02)

In Lyons, in order to force the thumbnail and webview images to be regenerated, you simply need to delete the files from the filesystem.  This will cause the API to regenerate the thumbnail and webview the next time the image is requested.

cd /var/www/dekiwiki/attachments
find . -name '*.thumb' -exec rm {} \;
find . -name '*.webview' -exec rm {} \; 

Kilen Woods (8.08)

Dekihost will attempt to create thumbnails for rows in the `attachments` mySQL database table if:

  • at_extension matches against the image list (this value is set from the configuration key files/imagemagick-extensions)
  • at_image_width and at_image_height are set to NULL values

So to force Dekihost to take another pass at preview generation, you'd want to run a SQL query like the following: (warning, back-up your attachments database prior to running this query; use at your own risk!)

UPDATE `attachments` SET at_image_width = NULL, at_image_height = NULL WHERE at_extension IN ('jpg', 'gif', 'jpeg', 'png', 'bmp') AND at_image_width = 0 AND at_image_height = 0;

After running this, try going to a page with images, and they should start showing previews.

Tag page
You must login to post a comment.