Jump to content

Image resize help


pleek

Recommended Posts

ok so i have this image upload script for my website. and all it does is upload the image and display the file path to it. I want to include a drop down box in the upload form to select a image size to resize it to. I have looked all over google and i can't find anything close to what i want.

 

Does anybody know how to do this?

 

(the div my upload form is in)

<div class="wrapper">
	<DIV ALIGN="center"><h1>Pleek'S Photo Upload</h1></DIV>
	<p>Browse file to upload</p>
	<form method="post" enctype="multipart/form-data" action="<?=$im->path?>">
		<input type="file" name="__upload" size="72" />
		<input type="submit" value="Upload" />
	</form>
	<p><?=$im->allowTypes();?></p>

		<?
			if ($im->_im_status == true)
			{
				echo '<h2>Upload Successful!</h2> 
				<IMG SRC="'.$im->imgurl.'">
				<p class="codes"><label for="codebb">Embed on bulletin boards:</label><br />
				<input type="text" size="40" value="[img='.$im->imgurl.']" onclick="javascript:this.focus();this.select();" readonly="true" /><br />
				<label for="codedirect">Direct link:</label><br />
				<input type="text" size="40" value="'.$im->imgurl.'" onclick="javascript:this.focus();this.select();" readonly="true" /></p>';	
			}
			elseif (!empty($im->errorStr))
			{
				echo '<div class="errors">'.$im->errorStr.'</div>';
			}
			else
			{
				echo '

				';
			}
		?>
	</div>

Link to comment
https://forums.phpfreaks.com/topic/104941-image-resize-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.