Re: Resize Picture
| From: | Daniel James | Date: | Thu, 09 Aug 2001 06:12:14 +0000 |
| Subject: | Re: Resize Picture | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-61949@lists.php.net to get a copy of this message | ||
try this...
<?
if (!isset($width)) {
$width=100;
$height=100;
}
?>
<html>
<body>
<img src="/path/to/image.ext" width="<?=$width?>"
height="<?=$height?>">
<form><p>
Image width: <input type="text" name="width"
size="4"><br \>
Image height: <input type="text" name="height"
size="4"><br \>
<input type="submit" value="Resize!">
</p></form>
</body>
</html>
hope that's what you meant.
Twigman...
On Thu, 9 Aug 2001, Mark Lo wrote:
> Hi,
>
> I would like to know ..is it possible to let my client resize the
> picture from the browser instead of having a default height and width. If
> yes, can you give me some idea of how to do it.
>
> Thanks
>
> Mark
>
>
>
--