axo,
Thanks for the hint on thumbnails.
Indeed, you are correct that the width and height will be the same as the original image. However if the width of the thumbnail is going to be constant, a quick mental arithmetic exercise completes the thumbnail image.
$size = getimagesize("mypic.jpg"); // gives the image height and width
$myHeight=300*$size[1]/$size[0]; // assumes all thumnails will be 300 px wide
You can then insert the image:
<img src="mypic.jpg" width="300" height=$myHeight>
Works a treat!
Once again, my thanks.