PHP Classes

PHP Mosaic: Display of mosaic composed of multiple images

Recommend this page to a friend!
  Info   Example   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 35%Total: 680 All time: 4,772 This week: 74Up
Version License PHP version Categories
phpmosaic 1.0GNU Free Document...4Graphics
Description 

Author

This class can be used to display of mosaic composed of multiple images.

It can read a given directory to open all contained image files in JPEG format.

The class generates a single image with all read images tiled as a mosaic.

The resulting image is saved to a given file also in JPEG format.

Picture of johno dread
Name: johno dread <contact>
Classes: 7 packages by
Country: United States United States
Innovation award
Innovation award
Nominee: 1x

Example

<?php

/**
 * @copyright 2009
 */


/* EXAMPLE */

include_once("Mosaic.php");

//$outfile = "/mosaic.jpg";
$outfile = null;
$quality = 75;
$dir = "C:\wamp\www\Practice files";


$res = new buildMosaic($dir,$outfile,$quality);
header('Content-type: image/jpeg');
$res->makeMos();

?>


Screenshots (1)  
  • sample_output.jpeg
  Files folder image Files (3)  
File Role Description
Plain text file Example.php Example Sample file for Mosaic.php
Plain text file Mosaic.php Class Build a mosaic from photos in a directory

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:680
This week:0
All time:4,772
This week:74Up
 User Ratings  
 
 All time
Utility:50%StarStarStar
Consistency:58%StarStarStar
Documentation:-
Examples:41%StarStarStar
Tests:-
Videos:-
Overall:35%StarStar
Rank:4152