Lightbox2 image gallery view block

Jerome F - January 27, 2010 - 16:45
Project:Lightbox2
Version:6.x-1.9
Component:Javascript
Category:support request
Priority:normal
Assigned:Jerome F
Status:closed
Description

The automatic image handling of a block with image module gallery view does work, but the lightbox displays the thumbnail size instead of the selected size.

Thank you for your attention.

___

I intentionnaly created a duplicate of :
http://drupal.org/node/620052
because it was not short enough
___

According to Joachim, image module maintainer, this is not an image module bug, but a feature request for lightbox2.

#1

ibis - January 28, 2010 - 01:51

This is both image module and lightbox2 bug named as files.filename issue. See http://drupal.org/node/564690 or another:

If you installed Filefield paths module (and optionally with Pathauto module), then this modules with default settings remove the '.' from derivative images filename (eg. filename.thumbnail.jpg -> filenamethumbnail.jpg) upon images uploading or derivative images building.
Set this's modules to leave '.' characters in filenames and Lightbox to run again on Image module gallery pages.
(Lightbox auto_image_handling.js use RegExp to replace in gallery images src the 'image_node_sizes' words (.thumbnail, .preview etc.) to 'display_image_size' word , then put the result to image link href).

#2

Jerome F - February 5, 2010 - 16:58

Ok I see
These are my upload paths settings :

file path
images/[vocab-raw]/[term-raw]/[image-derivative]

file name
[yyyy]_[mm]_[dd]_[title-raw]_[image-derivative].[filefield-extension-original]

What should I use instead ?

file name
[yyyy]_[mm]_[dd]_[title-raw].[image-derivative].[filefield-extension-original]

But then the original image will have 2 points (name..ext)

#3

Jerome F - February 19, 2010 - 23:25
Category:feature request» support request
Assigned to:Anonymous» Jerome F
Status:active» fixed

I finally understood this. Here's the result for those who might be interested.

The automatic image handling relys effectively on the naming of the image derivatives. the dot is necessary.

The image derivatives are not automatically generated with image import. I understand they are generated on page load the first time they are needed. This automatic generation of the derivatives creates itself the correct syntax in the names.

Every image derivative is now correctly named (for example : 2009_09_06_mouvement.png -> 2009_09_06_mouvement.preview.png)

I use filefield path.
My upload paths settings are :
the file path :
images/[vocab-raw]/[term-raw]
the file name :
[yyyy]_[mm]_[dd]_[title-raw].[filefield-extension-original]

It works for both my displays in views : as well a "block" display as a "gallery page"
http://www.virginie-larcher-naturopathe.fr/galeries_photos/galerie/5
http://www.virginie-larcher-naturopathe.fr/galeries_photos

A big thank you ibis !
And Stella for this awesome module !

#4

System Message - March 5, 2010 - 23:30
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.