MindTouch Developer Center > Deki > FAQ > File Management > How do I...Mass recreate image previews?

How do I...Mass recreate image previews?

Table of contents
No headers

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.

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.
Powered by MindTouch Deki v.8.08.2