Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to write a script that makes thumbnails then uses a javascript to open the image in a new window. When the image is uploaded, it's height and size are recorded using Image::Info. The problem is, if the image is 100x100 (this is just an example, it does this with all size images), the thumbnail works fine but when the thumbnail is clicked the window isn't the right size. The window is always too small and ends up cutting off part of the picture.
It recognizes the image dimensions because I print them to screen, which are correct. The window just doesn't seem to be the right size though. Can anyone make a guess as to why?
Thank you!
my ( $filename, $width, $height ) = split ( /::/, $upload{$_} ); print qq(<td valign="top" width="120" height="120">), qq[<A HREF="javascript:window.open('$imagelocation', '','toolbar=no width=$width height=$height scrolling=yes'); void('');" +>],
janitored by ybiC: Retitle from "Mathematical error"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Image dimensions don't match window size
by Roger (Parson) on Dec 16, 2003 at 02:19 UTC | |
by pg (Canon) on Dec 16, 2003 at 04:31 UTC | |
|
Re: Image dimensions don't match window size
by edoc (Chaplain) on Dec 16, 2003 at 02:19 UTC |