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:
- php gd xml thumb tuto (3)
- generate thumb from video in php (3)
- php gd library tutorial (3)
- create thumb in php (2)
- php GD create pdf thumbnail (2)
- create thumbnail php (2)
- php create thumbnail when file load (2)
- creating video thumbnails jquery php (2)
- gd pdf thumbnail (2)
- php make thumb gd sharp (2)
- gd2 tutorial (2)
- php generate thumbails of swf video (2)
- create thumbnail in php (2)
- php gd2 tutorials (2)
- how to thumbnail in php video tutorial (2)
- thumbnail from pdf GD (2)
- pdf thumbnail with gd2 (1)
- pdf thumbnail via php gd (1)
- php gd pdf library (1)
- php gd pdf to jpg (1)
- pdf thumbnail script php (1)
- php gd swf file (1)
- php gd thumb sharp plugin (1)
- php gd with jquery examples (1)
- pdf thumbnail php gd (1)
- make thumbnail of swf file using php (1)
- pdf to jpg thumbnail php gd library (1)
- php gd pdf certificate genrate (1)
- generate thumbnail in a video in php without any libraries (1)
- php creating thumbnails while uploading videos (1)
- php curl gd thumbnail (1)
- php gd @getimagesize (1)
- php create thumbnail (1)
- php create PDF thumb (1)
- php gd image fixed size (1)
- php gd library create thumbnail (1)
- PDF: php gd tutorials (1)
- pdf to thumb online php gd library (1)
- php create thumbnail image from video (1)
- php gd2 image resize from a folder using a php loop (1)
You will also be interested in ,
- To Remove An Empty Element From An Array Using PHP
- Captcha using php
- Using PHP_SELF best practices
- Php mysql example image gallery blob storage
- Locking a text file database using php
- Database Connection And Pagination In PHP Using Symfony Framework
- ScriptAlias and Alias in httpd.conf at a glance
- Export MySQL to CSV (Excel) using php
- Find any day before a given date using php
- Remove Non-Alphanumeric Characters using php


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….