The following PHP code will create thumbnail images on the fly and since it uses the PHP GD2 library, you will need an installation of PHP with at least GD 2.0.1 enabled.. This is a very simple script and very easy to customise.
<?php
header (“Content-type: image/jpeg”);
$image = $_GET['thumimg'];
if(!isset($w) && !isset($h)){
$w = 110; //default width if $w is not set
$h = 135; //default height if $h is not set
} $x = @getimagesize($image);// get image size
$sw = $x[0];// width
$sh = $x[1];// height
$im = @ImageCreateFromJPEG ($image) or // Read JPEG Image
$im = false; // If image is not JPEG
$w = 110; //default width if $w is not set
$h = 135; //default height if $h is not set
} $x = @getimagesize($image);// get image size
$sw = $x[0];// width
$sh = $x[1];// height
$im = @ImageCreateFromJPEG ($image) or // Read JPEG Image
$im = false; // If image is not JPEG
if (!$im)
readfile($image);// return the actual message if error occurs.
else {
// Create the resized image destination
$thumb = @ImageCreateTrueColor ($w, $h);
// Copy from image source, resize it, and paste to image destination
@ImageCopyResampled ($thumb, $im, 0, 0, 0, 0, $w, $h, $sw, $sh);
// Output resized image
@ImageJPEG ($thumb);
}
?> save the above code as thumbimg.php.
How to use:
<–without specifying the width and height–>
<img src=”http://www.mysite.com/thumbimg.php?thumimg=example.jpg” />
<–without specifying the width and height–>
<img src=”http://www.mysite.com/thumbimg.php?thumimg=example.jpg” />
<–with height and width–>
<img src=”http://www.mysitee.com/thumbimg.php?thumimg=example.jpg&w=100&h=100″ />
Incoming search terms:
- generate thumb from video in php (3)
- geocoder geocode how to create thumb through gd library (3)
- php gd library tutorial (3)
- thumbnail from pdf GD (2)
- php create thumbnail when file load (2)
- creating video thumbnails jquery php (2)
- create thumbnail in php (2)
- gd2 tutorial (2)
- create thumbnail php (2)
- php GD create pdf thumbnail (2)
- create thumb in php (2)
- how to thumbnail in php video tutorial (2)
- gd pdf thumbnail (2)
- php generate thumbails of swf video (2)
- php gd2 tutorials (2)
- jquery thumb image fix size (1)
- php create thumbnail (1)
- php gd pdf to jpg (1)
- php create thumbnail image from video (1)
- php gd image fixed size (1)
- php gd pdf library (1)
- php creating thumbnails while uploading videos (1)
- php gd pdf certificate genrate (1)
- php jquery make image thumbnail (1)
- php gd library create thumbnail (1)
- php create swf thumbnail jquery (1)
- jquery load php gd generate image (1)
- jquery pdf thumbnail (1)
- jquery thumb pdf (1)
- library create video thumbnails php (1)
- make image from swf file using php library (1)
- make thumb gd in php (1)
- make thumbnail of html file using php script (1)
- make thumbnail of swf file using php (1)
- pdf thumbnail via php gd (1)
- pdf thumbnail with gd2 (1)
- pdf to jpg thumbnail php gd library (1)
- pdf to thumb online php gd library (1)
- PDF: php gd tutorials (1)
- php create PDF thumb (1)
You will also be interested in ,
- Arrays In PHP
- Store Data In Remote DataBase Using cUrl or Execute a HTTP POST Using PHP CURL
- PHP E-mail with attachment
- Redirect webpage using php
- Avoid direct access to a file in php enhanced version
- Get youtube video screenshot using simple php and javascript
- How to run a SQL query in phpMyAdmin
- Simple Example Of Database Connection Using PEAR In PHP
- Email address validation using php
- ScriptAlias and Alias in httpd.conf at a glance

Hello use this
its so simple,if u have any queries mail at karthid@in.com
$ffmpeg = “ffmpeg Installed path”
$flvfile = “source video file with root path”
$png_path ” “Destination video file with root path and file type”
exec(“$ffmpeg -y -i $flvfile -vframes 1 -ss 00:01:60 -an -vcodec png -f rawvideo -s 110×90 $png_path”);
all the best….