Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of László Zsidi  >  Easy Resize Image  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Easy Resize Image
Resize images keeping the aspect ratio
Author: By
Last change:
Date: 2009-02-01 11:42
Size: 794 bytes
 

Contents

Class file image Download
<html>
    <head><title>Easy image resizer</title></head>

    <center>
        <table width=90%>
            <tr><td align=center><h2>Original image</h2></td></tr>
            <tr><td align=center><img src="foto.jpg" alt="" /></td></tr>

            <tr><td align=center><h2>Resized 600 px</h2></td></tr>
            <tr><td align=center><img src="image.php?thumb=600" alt="" /></td></tr>

            <tr><td align=center><h2>Resized 400 px</h2></td></tr>
            <tr><td align=center><img src="image.php?thumb=400" alt="" /></td></tr>

            <tr><td align=center><h2>Resized 200 px</h2></td></tr>
            <tr><td align=center><img src="image.php?thumb=200" alt="" /></td></tr>

            <tr><td align=center><h2>Resized 90 px</h2></td></tr>
            <tr><td align=center><img src="image.php?thumb=90" alt="" /></td></tr>
        </table>
    </center>
</html>