Upgrade from 5.x-1.2-rc1 to 6.x-3.0-alpha2 did not create admin thumbs for existing imagefields (5.x admin displayed full-size images, and thus had no thumbs).

Here is a function that adds a function to imagefield.install to create them.

Patch should be considered only a first draft, needing heavy reworking (for now, it tries to do all images in one pass; my site having few, it runs OK, but a site with lots of images will go PHP-timeout).

Patch is crafted to go after the one in #336259: Imagefield widget upgrades aren't working (more complete patch), but the install function that it adds could be pasted after a genuine 6.x-3.0-alpha2 imagefield.install a and run independantly from 336259.

Drupal 6.6
CCK 6.x-2.0
IF 6.x-3.0-alpha2
755 on tmp and files
download public

Comments

quicksketch’s picture

j0rd’s picture

StatusFileSize
new973 bytes

I've had another issue where thumbs got lost in D6 (upgrade from alpha -> beta, downgrade from beta -> alpha), so I created this helper module to re-create them. Posting the code for other people who run into this problem and find this thread via google.

code was written against imagefield DRUPAL-6--3-0-ALPHA4, and is un-tested in the beta branch. Providing the functions haven't changed names, it should work.

To make it work, enable the module and hit this link:
http://domain.tld/imagefield_thumbs

quicksketch’s picture

and is un-tested in the beta branch

Thumbnails are generated automatically in the beta versions, so there's no need to batch create them.