Lightwindow Image Resize Problem

Subscribe to Lightwindow Image Resize Problem 11 post(s), 9 voice(s)

 
Avatar mkzzz 4 post(s)

When lightwindow is used in a browser window, which is not maximized to the full screen, and the loaded image(s) is larger than the browser window, it is not correctly resized. It is actually cropped and it looks pretty ugly. The text in the caption is cropped too. Also there is 1or2 px cropped from the lower right side of the caption frame.
It affects IE6 and Opera, Firefox is fine (exept for the croped caption). Obviously there is some problem with the code. If you can please fix that.
Try the demo http://www.stickmanlabs.com/lightwindow/ at browser window size < image size

Mike
Thanx

 
Avatar drakkeon 2 post(s)

Similarly, if the image being viewed is larger than the browser window, Lightwindow 2.0 will resize & distort/pixelate the image to make it fit the window. It looks terrible. Unfortunately I didn’t realize this until I launched my site with it! (Yikes!) Is there a way to get it to display the entire image at full size without resizing & distorting it?

Thanks – I hope you can help!

 
Avatar fapri 235 post(s)

hmmm, i’m using ie7 and i don’t see the cropped image. i do see the cropped captions though.. =/

 
Avatar aiwetir 16 post(s)

i just started working with this on my site and i have the same problem in both IE6 and IE7, it’s a deal breaker for me if it can’t be figured out

anyone ?

i just edited the css for the caption and it’s fine for the most part, you just have to keep the captions short for now

cheers

 
Avatar nostra 4 post(s)

Hi guys!
I spent a lot of time on this problem and just found the solution:
In lightwindow.js, on lines 1231 to 1233, you got this:
$(‘lightwindow_image_’+i).setStyle({
height: ‘100%’
});

Add this :
height: ‘100%’, width: ‘100%’

Works fine under IE6!

PS: Hey, impressive works, thank you very much for LigthWindow!

 
Avatar grannystone 2 post(s)

Thanks nostra! I was also experiencing this jpeg image resize / cropping issue in IE7. With your fix it now appears to be functioning properly.

 
Avatar nostra 4 post(s)

My pleasure! ;)

 
Avatar skyfyre 10 post(s)

hi nostra, first thx for your fix, it also works in IE7. But there are restraints: it only works if you have a fast internet connection or the image is cached.

It seems to me that when the lightwindow popup loads it can’t get the width and height of the image it should load and so it fails to resize itself in IE6/ IE7. I reproduced this scenario on several Windows XP/ Vista PCs and even in a Safari 2.0.4 on a mac.

Has anyone an idea how to solve this problem? Maybe with a kind of preload?

 
Avatar skyfyre 10 post(s)

sorry… didn’t mentioned an old forms rule: use the search first!

found this in another topic: http://forum.stickmanlabs.com/viewtopic.php?pid=1172#p1172

and it works, fine in ff, ie6, ie7 (windows xp/ vista)... but in a Safari 2 on mac you still need tow clicks

 
Avatar ElectricPig 8 post(s)

Nostra, that fix seems to have worked for me! Thanks very much indeed!

 
Avatar rgracia 10 post(s)

It still doesn’t work for me. Too frustrated now to continue implementing this. Might have to go back to JQuery and ThickBox for my gallery. If you guys have more suggestions please let me know.