Sample> Thumbnails

<?php

// include TPLN
include('TPLN/TPLN.php');

$TPLN = new TPLN;

// create thumbnails +> smile2.png from smile.jpg
$TPLN->imgThumbnailSetOriginal('./smile.jpg');
$TPLN->imgThumbnail(150150false''"2"'png');

// create thumbnails -> smile3.png from smile.jpg
$TPLN->imgThumbnailSetOriginal('./smile.jpg');
$TPLN->imgThumbnail(150150true, array(255,255,255), "3"'png');


$TPLN->open("thumbnails.html");
$TPLN->write();

?>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>thumbnails</title>
  <link href="../style.css" rel="stylesheet" type="text/css" />
</head>

<body>

    <h1>Plugin Image: create thumbnails</h1>

    <strong>Original image :</strong>
    <br />
    <img src="smile.jpg" alt="Smile" />
    <br />
    <br />

    <table>
    <tr>
        <td align="center">
            Resize image in width: 150px + png conversion + no constraint
            <br />
            <img src="smile2.png" alt="Smile PNG" />
        </td>
        <td align="center">
            Resize image in width: 150px + png conversion + constraint + background white
            <br />
            <img src="smile3.png" alt="Smile black PNG" />
        </td>
    </tr>
    </table>


</body>
</html>