![]() |
|
Image size according browser size - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Image size according browser size (/thread-5544.html) |
Image size according browser size - Soleil - 2009-07-27 Is there a way to have the image size changed according to the browser size, for instance width 1200 pixels for large browsers and width 600 for small browsers. Is any of the themes supporting this feature? Has anybody a php script to make this feature work? Your answer will be very much appreciated ! Image size according browser size - acrylian - 2009-07-27 No, there is no theme with this and no script. It surely would be possible, but you will have to build your own and you will probably need additional JavaScript for this, too. Image size according browser size - Soleil - 2009-07-27 Thanks a lot, acrylian, I'll have to think it over and would be happy to post the results if I manage to find something. Image size according browser size - flu - 2009-07-27 Hi Soleil, If you go ahead on this, please let me know. Image size according browser size - Soleil - 2009-07-27 Hello flu, I had seen this feature also in the beautiful gromoff site. My problem is time too and my little knowledge of javascript, but I will try nevertheless. Maybe this link could be of help: http://atomgiant.com/2006/05/30/resize-images-with-javascript/ (see also the discussion). I hope someone else has ideas too! Seems to be an important feature. Image size according browser size - flu - 2009-07-27 Thanks. I'll give a try and let you know. Image size according browser size - acrylian - 2009-07-27 Remember Zenphoto comes with jQuery as default js libary that makes life easier sometimes (note we still use jQuery 1.2.6 for several dependency reasons). Image size according browser size - flu - 2009-07-27 Hi Acrylian, Thank you. Image size according browser size - acrylian - 2009-07-27 I do not remember the specific dependencies but some of the jQuery plugins we used had a conflict. Will ask sbillard if he remembers. Image size according browser size - sbillard - 2009-07-27 The latest versions of jQuery break the image/album drag & drop sorting when using Internet Explorer. Sadly, our developer who made these sorts has gone inactive and the javascript error seem not obvious. It is actually the jQueryUI plugin which exhibits the problem, but of course, we have to run a jQuery level compatible with that code. |