Limiting lightboxjs image sizes

Are there any good methods of limiting (depth/width) the size on lightboxjs images displayed?

My client wants to upload photo’s but I can’t guarantee he’s got the suitable/constant sizes for a browser window.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Just thought I’d nudge this up the list, if anyone had come across this problem before?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Just came across this while looking up something else:

http://www.absforums.com/?showtopic=14369

Hopefully it helps in your search.

Automatically resizes image at time of upload by user. It is not a ‘turn-key’ solution, but should point you toward a prospective solution for your inquiry.

I guess a return question is how the images are being uploaded to the server? standard FTP? some web upload form?

if (FTP) then some server-side script would need to be executed at the time of the lightbox image request to automatically resize the image. This would get very taxing if dynamically served each time or complicated if the images were cached for speed. Although a Google search would likely return better solutions in this regard.

if (webform submit) then a loop to resize the image4 at the time of upload could be employed. This would have the advantage of only needing to run once. Again, odds are there are already canned routines to do exactly this.

I would think the better solution would be to establish a ‘gateway’ or interface for the client to upload the images under circumstances that you could better control.

Some other questions:
How are the images being ‘fed’ to the lightbox on the html page? are links generated dynamically based on folder/database contents or the like? Or ar the links already present and the larger, popup image just fluctuates?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The images are uploaded through WebYep. WepYep creates a 72dpi image for the web page, and a larger image for pop-ups when clicked on - which lightbox processes. The trouble with that is, the end user often upload a shot way too big for the computer screen, having no idea about image resolution, so I need lightbox.js to limit the image size displayed in the browser window to create uniform pop-up images.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

This sounds like a job for WebYep to handle! If it’s already
thumbnailing the originals, perhaps it can be coerced into making a
second “full screen” version if the original is too large. I haven’t
looked into the depths of this code (not sure if it’s even published
in an open source) so I don’t know how hard that would be. But I
imagine if you posted it as a request on the WebYep site, they could
at least count it as a feature request for a future version, or maybe
point you to a work-around that would do the trick.

I don’t think that you should look to make this happen in lightbox,
since that would mean you were scaling an enormous image for display,
not creating a right-sized image in the first place. The result will
be a long download for a smallish image.

Walter

On Jun 26, 2008, at 11:30 AM, WebWorker wrote:

The images are uploaded through WebYep. WepYep creates a 72dpi
image for the web page, and a larger image for pop-ups when clicked
on - which lightbox processes. The trouble with that is, the end
user often upload a shot way too big for the computer screen,
having no idea about image resolution, so I need lightbox.js to
limit the image size displayed in the browser window to create
uniform pop-up images.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I don’t think WebYep is open source. The files upload size is limited by settings in WebYep. So really massive files are stopped.

I found this to edit the lightbox.js file:

http://www.huddletogether.com/forum/comments.php?DiscussionID=1798&page=1#Item_0


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options