PHP Classes

PHP Image Round Corners: Create pictures with rounded corners from original

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
Not yet rated by the usersTotal: 68 All time: 10,330 This week: 71Up
Version License PHP version Categories
roundit 1.0.0Custom (specified...4.3.2PHP 5, Graphics
Description 

Author

This class can create pictures with rounded corners from original.

It takes an image in several different formats and creates a new image which is a rounded version of the original.

The class can round pictures of any size like the way user's avatar of many Web sites look like.

Picture of zinsou A.A.E.Moïse
  Performance   Level  
Name: zinsou A.A.E.Moïse <contact>
Classes: 50 packages by
Country: Benin Benin
Innovation award
Innovation award
Nominee: 23x

Winner: 2x

Example

<?php
require_once('simplyRoundit.class.php');
echo((new
roundit('./photo.PNG',300))->round());
echo((new
roundit('./photo.PNG',250))->round());
echo((new
roundit('./photo.PNG',200))->round());
echo((new
roundit('./photo.PNG',150))->round());
echo((new
roundit('./photo.PNG',100))->round());
echo((new
roundit('./photo.PNG',75))->round());
echo((new
roundit('./photo.PNG',50))->round());
echo((new
roundit('./photo.PNG',40))->round());
echo((new
roundit('./photo.PNG',20,'little','little','little'))->round());
echo((new
roundit('./photo.PNG',35,'little','little','little'))->roundItButResize('photo1.png'));
echo((new
roundit('./photo.PNG',10))->round());
echo((new
roundit('./photo.PNG',40))->round());
echo((new
roundit('./photo.PNG',50))->round());
echo((new
roundit('./photo.PNG',100))->round());
echo((new
roundit('./photo.PNG',150))->round());
echo((new
roundit('./photo.PNG',200))->round());
echo((new
roundit('./photo.PNG',250))->round());
echo((new
roundit('./photo.PNG',300))->round());

?>


Details

Roundit is simple class which allows user to round any size of picture just as the PHPCLASSES user's avatar and many other modern websites user's avatar look like... The package can be used on PHP >=4.3.2 See the testSimplyRoundit.php file for a how to use example... For bug reporting just use the forum or feel free to contact me at leizmo@gmail.com...

Screenshots (1)  
  • screenshot.PNG
  Files folder image Files (6)  
File Role Description
Accessible without login Plain text file license.txt Lic. license file
Accessible without login Image file photo.PNG Data auxilliary data
Accessible without login Plain text file readme.txt Doc. readme
Plain text file simplyRoundit.class.php Class class source
Accessible without login Plain text file testSimplyRoundit.php Example example script

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:68
This week:0
All time:10,330
This week:71Up