When upgrading from ImageField 5.x-2.2 to 6.x-3.0-alpha4 I ran into an odd issue in which no image was shown in the imagefield widget when editing a node for pre-existing images.

This also resulted in an inability to update alt text, titles, or descriptions. (Hitting save while editing the node had no effect after entering data into these fields.)

I found that this seems to be due to the new version of ImageField using a generated thumbnail file with a ".jpg.thumb" extension. It seems that during the upgrade process in the installer, it might be worthwhile to have it duplicate all existing images and save them with the ".jpg.thumb" extension in order to make the upgrade process more smooth. It seems unacceptable to require a user of the module to do this manually...

Workaround: When I go through and manually create new ".jpg.thumb" files for my pre-existing image fields, the problem is resolved. I can both see the image previews in the imagefield widget when editing the node, and I can adjust the alt text, titles, and descriptions without problems. (I'll probably run a batch in a graphics editor to duplicate and tack on the thumbnail extension for now.)

Comments

zooney’s picture

...quick update, it appears the filenames for the thumbnails are actually "extension.thumb.extension"

i.e. myimage.jpg.thumb.jpg

quicksketch’s picture

Status: Active » Closed (duplicate)

This is fixed in #397578: Uncouple ImageField from FileField Custom Hooks. Please try it out and update that issue with any problems.

quicksketch’s picture

Status: Closed (duplicate) » Postponed

Marking postponed so it shows up in the default issue list.

quicksketch’s picture

Status: Postponed » Fixed

I went ahead and committed #397578: Uncouple ImageField from FileField Custom Hooks, there was too much held up by its changes.

zooney’s picture

Thank you, I used a newer version of the module and this seems to have fixed everything.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.