Please refer to http://drupal.org/node/214581 for a more detailed description.

Using Drupal 5.6, Image Module 5.x-2.x-dev and Lightbox V2 5.x-2.3.

In my Image module, I use the default three image settings - Thumbnail, Preview and Original. In Lightbox, I've set the display image to be "Preview".

When I import a folder of images using Image Import, for images that are the same size as or smaller than "Preview"'s defined dimensions (i.e. Preview is set to be 640x640 and my image is 640x480 or 520x520), the Image module does not create an "_Preview" image. This, according to the developers of the Image module, is by design.

When I view the gallery in Drupal using Lightbox V2, it hangs/chokes when it gets to this thumbnail image (for which no "_preview" image exists). Lightbox then fails to work on other images in the gallery as well. The page needs to be refreshed in order to get Lightbox to work on the other images in the gallery.

So, as suggested by the Image developers in http://drupal.org/node/214581, can you please either have a way to set a default/fallback display image of "Original", or automatically select the Original Image (and if it doesn't exist, the thumbnail or the image that was used in the gallery to trigger Lightbox) when the designated display image doesn't exist.

Please let me know if you need any further information.

Thanks.

Comments

stella’s picture

Assigned: Unassigned » stella

Marking #217280 as a duplicate of this issue.

stella’s picture

This is actually a two-part issue:

(a) the lightbox hangs if the display image can't be found
(b) preview images are not correctly supported.

I've implemented a fix for (a) and it can be found in the latest dev release (available shortly). I'll take a look at the second part now, and once it's confirmed as being fixed, will do another full release.

Cheers,
Stella

stella’s picture

Status: Active » Fixed

The second issue should now be fixed also. Please try out the next dev version which will be available later today (you can check the timestamp of the dev version on the release notes page). Don't forget to clear your browser cache.

Cheers,
Stella

stella’s picture

Released in Lightbox2 5.x-2.4.

Cheers,
Stella

MediocreFred’s picture

Thanks very much for the ultra-quick fix. Tested it and both parts of the fix work perfectly!

ryooki’s picture

Ty this is awesome & just what I was looking for. Thanks again for your awesome mod. :)

Anonymous’s picture

Status: Fixed » Closed (fixed)

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