|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Is it possible to resize an image before placing it on the page??
I am transferring data from a csv file onto a page as per this thread http://forums.devshed.com/t56265/s.html[/URL] . The image names in the column in the csv file are being used to place the relevant images on the page. However, the images are of various sizes. Is there a way to check the width, and if it does not meet a specific size, then resize it (preferable with constraints on i.e. height to be resized correspondingly) to a specified width, and then place it on the page ?? And guidance, code, pseudo code.... is appreciated. Thanks |
|
#2
|
||||
|
||||
|
You could use GD http://www.php.net/manual/en/ref.image.php to resize the image, or if you want a quick botch job just use html image tags to force a size
![]()
__________________
Online Designer Baby Clothes Store FiftyFifty Web Page, advertising space, with 50% profit share Free web development scripts! Tattoo Blog Free graphical wedding tickers |
|
#3
|
||||
|
||||
|
you can use GD or if you want just resizing(but you will have the same space occupied on the harddisk and the image will load in the same time on the client) you can use getimagesize() and then use the values to resize using html tags.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > PHP Development > Resize image ?! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|