このページは2007年 9月 24日, 21:52に更新されました by RoyK

How do I...Mass recreate image previews?

From $1

目次
ヘッダーがありません

If you've imported a mass number of images from a previous version of Deki Wiki, 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.

 
コメント(0)
あなたはコメントを投稿するには ログイン しなければなりません。