I'd like my lightbox to use the image module resized preview version of the image instead of the original image. I know Lightbox resizes images to fit my brower, but when it does, the resized image is both unattractive and causes the white bar with tags/info to fall below the size of the window. Basically, users have to scroll down to see the entire white bar at the bottom of the image. I want to edit my lightbox to call the image.preview.jpg instead of image.jpg. I tried editing image_nodes.js as outlined in http://drupal.org/node/71446#comment-134151, but it didn't work. Any ideas?
Thanks!
Comments
Comment #1
ryooki commentedI found it. I had to edit image_nodes_galleries.js with the code mentioned in the post linked above.
Comment #2
bugz_nz commentedClosing.
Comment #3
ryooki commentedsorry, I re-opened it. I've discovered that if the original jpg is small enough that a preview was not made, I get a file not found error. Any advice how to revert to the original image if the preview is not available?
Comment #4
stella commentedHi,
See issue #111649. This issue, where no preview is generated when uploaded image size is smaller than preview size, has already been reported and patched in the image module. I have a version of this module from 5th June and a preview image is generated even when the uploaded image is tiny and much smaller than the preview size. Try upgrading the image module in your drupal installation to see if this fixes the problem. You may need to regenerate images that you have already uploaded.
Cheers,
Stella
Comment #5
(not verified) commented