Image size according browser size

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 !

Comments

  • acrylian Administrator, Developer
    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.
  • Soleil Member
    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.
  • flu Member
    Hi Soleil,
    I'm also interested in this feature and I've seen it on this site :
    http://gallery.gromoff.ru/
    It seems to be done with javascript but I have not enough time actually to really look further.

    If you go ahead on this, please let me know.
  • Soleil Member
    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.
  • flu Member
    Thanks. I'll give a try and let you know.
  • acrylian Administrator, Developer
    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).
  • flu Member
    Hi Acrylian,
    yes I've noticed that for sure as I'm actually trying to play with Zenphoto and some jquery plugins.
    Sometimes the last jquery version seems to be required.
    Would you have more infos about the dependency reasons ?

    Thank you.
  • acrylian Administrator, Developer
    I do not remember the specific dependencies but some of the jQuery plugins we used had a conflict. Will ask sbillard if he remembers.
  • 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.
Sign In or Register to comment.