Suddenly all paths to images from Gallery assist nodes changed from /drupal/sites/default/files/gallery_assist/UID/gallery_name_NID/image.jpg to /drupal/sites/default/files/gallery_assist/UID/gallery_name_NID/prev/image.jpg. So now all images are 550x550 pixels maximum.

Are there some settings which changed this path? At your demo site paths are normal...

Comments

dzhu’s picture

Status: Active » Needs review

Update.

It was actually Gallery assist lightbox issue.

Here is the code example, from file gallery_assist_lightboxes_display.inc :

$my_item_link = l($my_img, $base_url .'/'. $item->ppath, array('attributes' => array('class' => 'prettyPhoto', 'rel' => 'prettyPhoto[gallery'. $item->gid .']'),'html' => TRUE));

I have tried to change ppath variable to opath, and all pathes came back to normal.

But I have also found another strange thing, when I have tried just to turn off Gallery assist lightbox module, nothing was changed. Only after editing the file I have seen the result I needed.

dzhu’s picture

Project: Gallery Assist » Gallery Assist Lightboxes
Version: 6.x-1.8-beta1 » 6.x-1.2-beta1

Changed project to Gallery Assist Lightboxes.

jcmc’s picture

issue or support request

fixed with update.

jcmc’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

dzhu’s picture

Version: 6.x-1.2-beta1 » 6.x-1.3
Status: Closed (fixed) » Needs review

The same issue appeared in the new version, 1.3. This is an example of part of code, to show image with fancybox:

$my_item_link = l($my_img, file_create_url($item->ppath), array('attributes' => array('title' => $my_copy . $item->ptitle, 'rel' => $item->my_nid), 'html' => TRUE));

I have changed ppath to opath because I don't want to pictures be downsized to the size of the preview...

$my_item_link = l($my_img, file_create_url($item->opath), array('attributes' => array('title' => $my_copy . $item->ptitle, 'rel' => $item->my_nid), 'html' => TRUE));

Other parts of the code, for another light boxes, should be changed accordingly.

jcmc’s picture

Hello dzhu,

Not all lightboxes support the resize feature.

I think, a configuration parameter satisfy your request. It is a good idea.
So can people choose beetwen original and preview path.
I will commit this feature to the dev. Please give me feedback after testing.

Regards

dzhu’s picture

I see...

So, in this case, it would be better to make and option in admin page.

Thank you for the response.