![]() |
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
Member
Da Bomb
Join Date: Nov 2006
Posts: 788
|
Hi,
In my photo gallery script i have different size of images. I just want to place the limit to all the images not to show very big. Some images are smaller but some images are very big like 1000x700 resolution. Tell me the code so that image do not show more than 800x600 resolution? Thanks |
|
|
|
|
|
#2 (permalink) |
|
Member
Terrorist
Join Date: Nov 2006
Posts: 86
|
<img src="AA.jpg" width="XX" height="YY">
Where AA.jpg = Location of the Image File Itself XX = Width Size YY = Height Size So for you it would be <img src="AA.jpg" width="800" height="600"> Reply With Quote |
|
|
|
|
|
#3 (permalink) |
|
Member
Da Bomb
Join Date: Nov 2006
Posts: 788
|
But this way all small images will be sized 800x600 too.
I just want to stop all big images those are for big resolutions. Or simply put code that will explain not to expand more then 800x600. |
|
|
|
|
|
#4 (permalink) |
|
Member
Counter-Terrorist
Join Date: Nov 2006
Posts: 129
|
<a href="index.php?image_id=<?echo $nextpic ?>"><img src="<? echo $settings[1]."photos/".$image_filename ?>" alt="Click this picture for another random pic" border="0"></a>
This is the code in index.php page. |
|
|
|
|
|
#5 (permalink) |
|
Moderator
Da Bomb
Join Date: Nov 2006
Location: Ohio, USA
Posts: 818
|
Try this
PHP Code:
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|