PHP Classes

Merge Pictures: Generate an image from the combination of 2 images

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 35%Total: 2,573 All time: 1,487 This week: 455Up
Version License PHP version Categories
mergepictures 1.2The PHP License5.0PHP 5, Graphics
Description 

Author

This class can be used to generate an image from the combination of two pictures.

It creates a new image pasting two given images in GIF, JPEG or PNG formats.

The new image has the width of the first image. The second image will be rescaled to appear with the same width as the first. The new image height is the sum of the first image height with the height of second image after rescaled.

The resulting image may show the first image at the top or below the second image. Alternatively, it may show the first image on the top of the second.

The final image may be stored to a file in the JPEG, GIF or PNG formats.

Picture of Germano
Name: Germano <contact>
Classes: 1 package by
Country: Brazil Brazil

  Files folder image Files (3)  
File Role Description
Plain text file mergePicture.php Class Main class
Plain text file foto.php Class class of image attributes
Accessible without login Plain text file imageTest.php Example example of mergePicture class use

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:2,573
This week:0
All time:1,487
This week:455Up
User Ratings User Comments (2)
 All time
Utility:50%StarStarStar
Consistency:53%StarStarStar
Documentation:-
Examples:46%StarStarStar
Tests:-
Videos:-
Overall:35%StarStar
Rank:4157
 
Useless example.
5 years ago (Abdul Basit)
0%Star
nice
12 years ago (syed nurul islam)
70%StarStarStarStar