Different gallery with screen size?

General project discussion. NOT for help questions.
Locked
SolsWebdesign

Different gallery with screen size?

Post by SolsWebdesign »

Hi All,

I have searched the forum but I can't seem to find an easy answer to this :) So here goes: I would like to load different image sizes or galleries depending on the customer's screen size! This is for a site that should show almost full-size images on big screens and smaller images on handhelds. There are a couple of solutions that I'm thinking of, but I was just wandering, has anybody thought about this before?

The thing is, I do not want to load huge images in a gallery if the customer is viewing with a mobile or handheld, making the site slow and not a nice experience for those customers.

I could do 2 things: either make 2 galleries for all gallery pages (and I have 60+ galleries in this case) and somehow make an UDT to determine which gallery to show depending on the screen size.
Or I could fill all galleries with every image in 2 sizes and then use Rolf's great tutorial from cmscanbesimple (see http://www.cmscanbesimple.org/blog/gett ... -in-smarty to determine what images to show).

Anybody already experienced with this? Or any (other) ideas on this? :)
Isolde
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3483
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Different gallery with screen size?

Post by velden »

You could have a look at CGSmartImage module. It's possible to use it with Gallery and it has built-in detection of mobile devices.

Think the details are in the help.
SolsWebdesign

Re: Different gallery with screen size?

Post by SolsWebdesign »

Thank you, Velden, I'll have a look at CGSmartImage and see if I can get that combined with Gallery :)
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Different gallery with screen size?

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
SolsWebdesign

Re: Different gallery with screen size?

Post by SolsWebdesign »

Thanks, Rolf, I'll have a look at the PhotoSwipe too. I found that in your tutorial too and it just may be the best solution! :D
Locked

Return to “General Discussion”