File: showThumbnail.php

Recommend this page to a friend!
  Classes of Vinay Yadav  >  phpExifRW  >  showThumbnail.php  >  Download  
File: showThumbnail.php
Role: Application script
Content type: text/plain
Description: Script to display thumbnail
Class: phpExifRW
EXIF information reader and writer
Author: By
Last change: Minor changes to work with modified system
Date: 16 years ago
Size: 750 bytes


Class file image Download
  * Script to show thumbnail extracted from EXIF information of an JPEG Image
  * Vinay Yadav <>
  * Changes on 6-June-2003

header("Content-Type: image/jpeg");

$file = $_GET["file"];

$chacheFolder = dirname(__FILE__)."/.cache_thumbs";

file_exists("$chacheFolder/$file")) {
$fp = fopen("$chacheFolder/$file","rb");
$tmpStr = fread($fp,filesize("$chacheFolder/$file"));

/* assumed to get the filename with full path though GET method. */
$er = new phpExifReader($file);

For more information send a message to info at phpclasses dot org.