<?php
	$baseURL = $_SERVER["HTTP_REFERER"];
?>
<html>
<head>
<title>画像の縮小表示</title>
</head>

<body>
<form enctype="multipart/form-data" method=post action="gd_sample.php" target=_brank>
<h1 align=center>画像の縮小表示</h1>
<p>
	<a href="PHOT000000000007571E.jpg" target="_new"><img src="gd_resize.php?tmp_name=PHOT000000000007571E.jpg&ResizeX=300"></a>
	<img src="gd_resize.php?tmp_name=PHOT000000000007571C.jpg&ResizeX=200">
	<img src="gd_resize.php?tmp_name=PHOT00000000000756F2.jpg&ResizeX=100">
	<br>
	<img src="gd_resize.php?tmp_name=PHOT000000000007572F.jpg&ResizeX=300">
	<img src="gd_resize.php?tmp_name=PHOT000000000007572E.jpg&ResizeX=200">
	<img src="gd_resize.php?tmp_name=PHOT00000000000756AA.jpg&ResizeX=100">
	<br>
	<img src="<?php echo $baseURL; ?>image.php/PHOT000000000007571E.jpg?width=300&height=300&image=<?php echo $baseURL; ?>PHOT000000000007571E.jpg" alt="Coffee Bean" />
	<img src="<?php echo $baseURL; ?>image.php/PHOT000000000007571C.jpg?width=200&height=200&image=<?php echo $baseURL; ?>PHOT000000000007571C.jpg" alt="Coffee Bean" />
	<img src="<?php echo $baseURL; ?>image.php/PHOT00000000000756F2.jpg?width=100&height=100&image=<?php echo $baseURL; ?>PHOT00000000000756F2.jpg" alt="Coffee Bean" />
</p>

</form>
</body>
</html>