image

Photo Album / Picture Gallery Script with PHP


This is a all-in-one-file small and powerful image gallery script with PHP. Just upload your images to directory of script with FTP. It is free for private use. For a demo click on screenshot-image.

Features:

  • Scann directory and display images in web formats automagically
  • Create thumbnail images dynamically on the fly (from all JPEG, GIF, PNG)
  • Sort images by name, size or last modified time

Image watermark with PHP

To prevent quality images being stolen, we can use PHP to watermark web-images in popular formats like GIF/PNG/JPEG. We print a transparent gif-image on a jpeg-photo in this tutorial. For best results I prefer gif than png, because some png formats require extra functions to print a transparent image. We can convert this script to a batch-watermarker easily to watermark photo albums/galleries with multiple pictures by putting code in a loop or create a function.

Steps:

Best free image-editors for Windows

GIMP for Windows
http://www.gimp.org
GIMP is the most popular open-source image editor for Unix/Linux. Windows users can use GIMP with installing GTK additionaly.

XnView
http://www.xnview.com

Upload multiple images with PHP

<?php

/**
* Smart Image Uploader by @cafewebmaster.com
* Free for private use
* Please support us with donations or backlink
*/


$upload_image_limit = 5; // How many images you want to upload at once?
$upload_dir			= ""; // default script location, use relative or absolute path









################################# UPLOAD IMAGES
	
		foreach($_FILES as $k => $v){ 

			$img_type = "";

			### $htmo .= "$k => $v"; 	### print_r($_FILES);
Syndicate content

CafeWebmaster.com(CW) is a free online community for webdevelopers and beginners. Anybody can share their code, articles, tips, tutorials, code-examples or other webdesign related material on the site. Newbies can submit their questions and reply to existing questions. CW does not guarantee or warrant reliability of code, data and information published on the site. Use the site on your own risk. The site takes no responsibility of direct or indirect loss or any kind of harm to its users. The site also doesn't take responsibility of infected files or source code with any kind of infection or viruses, worms, spywares, malwares, trojan horses. CW reserves the right to edit, move, or delete any of content for any reason.