RSSAll Entries Tagged With: "image"

Image Resize Simple class

Image Resize Simple class

Here is a sample class file for image resize. imageResize.class Download the FileĀ  save it in web root and add .php extension to the fileĀ  . How to use ? <?php require_once(‘imageResize.class.php’); // Path to File imagejpeg(imageResize::Resize($fileSavePath,$width,$height),$newFileName); ?> $fileSavePath should be the pathname of source file. Say “uploads/arun.jpg”. $newFileName this should be the source File [...]

How to validate image File field using Javascript

<script type=”text/javascript”> function validateFileExtension(ld) { if(!/(\.bmp|\.gif|\.jpg|\.jpeg)$/i.test(ld.value)) { alert(“Invalid image file type.”); ld.form.reset(); ld.focus(); return false; } return true; } </script>

How to create thumbnails ( Logic ) in PHP

How to create thumbnails ( Logic ) How to create thumbnails ? To generate thumbnails we do the following: Scan a folder for JPG and PNG files (gd does not support GIF anymore, because the packing algorithm in GIF is copyrighted ). Take each of these images, and load it. Resize the image. Save the [...]

Videos, Slideshows and Podcasts by Cincopa Wordpress Plugin