• Notice regarding image hosts and attachments. See here.

Photo size limiting....?

Soldato
Joined
17 Mar 2004
Posts
8,259
Not sure if this is even possible, but current code as follows

</tr></table><br>
<table border="0" align="center" cellspacing="10" class="lee">
<td width="260" align="center"><a href="pages/Blackswan_jpg.htm"><img src="thumbnails/Blackswan_jpg.jpg" border="0"></a>
<br>
Blackswan.jpg</td>
Works fine, shows a thumbnail, but when you click on the picture it is massive i.e. 10mega pixel size!

Can I add a piece of code to the above to show the image once you have clicked on the thumbnail to a specific size?

Many thanks :)
 
Your HTML is incorrect firstly matey... ;)

This part alone...

Code:
<table border="0" align="center" cellspacing="10" class="lee">
<td width="260" align="center"><a href="pages/Blackswan_jpg.htm"><img src="thumbnails/Blackswan_jpg.jpg" border="0"></a>
<br>
Blackswan.jpg</td>
The table has no opening tag for the table row or <tr>....

I'm assuming you're just supplying the area of code with the problem, but all the same the code is bad...

Regarding the thumbnail...........

Code:
<a href="yourfolder/image_full.jpg"><img src="yourfolder/image_thumb.jpg" /></a>
The image shown first will be your thumbnail at it's actual size.... so for example 100px by 100px. And when clicked will show the full image at it's actual size... XXXpx by XXXpx ... where XXX is the width and height.....

Of course you can set the height and width, but really you should be resizing your images rather then resizing them to save bandwidth etc.... etc...

Though the code you supplied suggests the full image loads inside a HTML document rather then on it's own.....

I'd guess (if the image isn't displaying at it's natural res) that it's due to the code of that given page....

If you want to set the image shown in the HTML page at a set size, you'll need to look at how that page displays the image. If the img tag is generated then just set a height or width, and the other to auto, and you should get the desired result...

Any case it could be done at both a CSS, HTML or PHP level, but it really depends on the code you're working with...

Supply more code from the actual page generating the image perhaps??
 
Last edited:
Back
Top Bottom