Postponed
Project:
Thickbox
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Oct 2008 at 18:05 UTC
Updated:
23 Apr 2010 at 17:45 UTC
If an uploaded image is smaller that the defined dimensions for the 'preview' version, no preview version is created.
However, Thickbox always links to image.preview.jpg, whether it exists or not. It ought to check that the preview version exists. If not, then it should link to the full version. (image.jpg)
Comments
Comment #1
lakyljuk commentedYes, the same behaviour is with Thickbox for Drupal 5. If there is no preview derivative present, thickbox just fades screen and shows loading image. Obviously no image is loaded, because there is no check, if preview derivative is present or not. As you say - it should load another derivative available automatically. Hope this can be solved.
Thanks
Comment #2
frjo commentedI don't use the image module myself so I hope someone will contribute a patch for this.
Comment #3
Robbert commentedSince the Thickbox Javascript code is unable to check whether the 'preview' version exists, I solved this issue with the following piece of code in my 'workarounds' module.
It basically copies the original image for each image that refers to the original. It's probably not the nicest solution, but it solves it for us.
Comment #4
frjo commentedPlease check out the Colorbox module and see if it handles this better.
Colorbox will most likely be the recommended upgrade path for Thickbox users.
The Thickbox script is getting a bit old and the Colorbox script is a nice modern replacement.