Гость
01 Май 2013 05:08

Hello,

it would be useful to be able to customize the lightbox (for image field and gallery field) to fixed dimensions

right now it is showing the original image, which can be really large

also it would be definitely useful to have a responsive lightbox which adapts itself to the screen size

not sure if this can help, but these two features are already used by easyblog component, maybe you can take a look at how they solved the problem

Regards,

Nic

Последние изменения: 02 Март 2014


Konstantin
Total posts: 1,113
01 Май 2013 06:32

Our fields like image and gallery has width and height settings of uploaded image, if image larger this dimensions, then image resize. In this way images will take less space on host, and user get already small image. If lightbox will resize image,then user download big original image. Less image size - less traffic, more speed.


Гость
01 Май 2013 06:42

Yes, I understand that... and I use the "resize" feature... but ...

the setting "allow lightbox to show original" is my problem

because I do want the lightbox feature, but I'd like to set dimensions of the image displaied in the lightbox,

and I'd like the lightbox to be responsive too for smaller screens or mobile devices

I mean... the "resize" feature of image field is great, but if then I have a lightbox which opens up an image 1000 px x 1300px that is a problem I guess...


Konstantin
Total posts: 1,113
01 Май 2013 22:47

How I understand you wont upload image with size "1000 px x 1300px" but in popup show smaller, only download this big image?


Гость
02 Май 2013 03:38

I wasn't really thinking about the possibility to download the image...

I was just thinking about the average person (my client) who uploads an image let's say 1.000 px x 1.300 px

the software then create 3 resized images:

1 thumbnail for list view

1 thumbnail for full view

1 bigger image for lightbox (let's say max width: 600px) , or as an alternative the image inside the lightbox can still be the original big one (1.000 px x 1.300 px), but the lightbox size must still be max width 600px

AND the lightbox is responsive and adapts to screen size also


Sergey
Total posts: 13,748
02 Май 2013 06:55

First note is good to know that Cobalt does not generate thumbnails on upload. It has special mechanism to generate them on render but only once. It means that if you already saved few articles and then changed gallery field settings and thumbs sizes, you do not need to resave articles and thumbnails wil be regenerated from source picture.

In gallery we have 4 sizes.

  1. Thumb in list

  2. Thumb in full

  3. Litebox

  4. Original

And if you set light box to 600 then it will be 600 no matter if original is 1000


Гость
02 Май 2013 07:49

Thank you for the explanation.

I think that the possibility to resize the lightbox would be useful also for "image" field

and also the possibility to have a responsive lightbox - both for gallery and image field


pepperstreet VIP
Total posts: 3,837
02 Май 2013 08:54

I pray for a revival of "ShadowBox". Besides all media and content support, it has a special mode to handle oversized images! Shadowbox should be available as an option, or at least available in Cobalt's JS repository to make use of it in custom templates.


pepperstreet VIP
Total posts: 3,837
02 Май 2013 09:03

Alternatives to good 'ol ShadowBox are:

FancyBox

Fancybox2

PrettyPhoto

AFAIK, all adapt the image to the available screen size (not on window resize! you have to open a new image)


Гость
02 Май 2013 09:06

I like shadowbox, it's smart and responsive


pepperstreet VIP
Total posts: 3,837
02 Май 2013 10:47

Regarding a complete responsive alternative for Gallery field:

http://galleria.io


Sergey
Total posts: 13,748
03 Май 2013 06:04

Maik, the link you gave is excellent. We will adopt this as one of the options for gallery.

Работает на Cobalt