Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (89) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2015-08-26 (1 year ago) | Not yet rated by the users | Total: 235 | All time: 7,523 This week: 1,081 |
Version | License | PHP version | Categories | |||
image-manipulation 1.0.0 | MIT/X Consortium ... | 5.3 | PHP 5, Graphics |
Description | Author | |
This class can perform multiple image manipulation operations. |
<br/> Fork me on GitHub: https://github.com/elgervb/imagemanipulation
Library to manipulate images using PHP's GD library. Most of the functionality is available through the ImageBuilder
facade.
This way chaining of image filters and thumbnailing is possible, like:
ImageBuilder::create( new \SplFileInfo('image.jpg') )
->contrast( 20 ) // increase contrast
->colorize( '#DB3636' ) // apply a bit of red the the image
->flip( ImageFilterFlip::FLIP_VERTICALLY ) // flip image vertically
->save( new \SplFileInfo( 'image.new.png' ) ) // save the jpg image as png with filters applied
->render( 80 ); // render to browser with quality 80
"require" : {
"imagemanipulation" : "dev-master"
},
"repositories" : [{
"type" : "vcs",
"url" : "https://github.com/elgervb/imagemanipulation"
}
]
PHP version >= 5.3 with GD library
Lots of image filters. All of them listed below:
Use an image as overlay on another image. Can be configured with overlay opacity, start and end position and fill options.
Use the current image to make a reflection below the original image
Repeat images on a canvas, until it fits. This way we can create Warhol like images.
Rotate images in degrees. When rotating an image not equal to 90, 180, 270 or 360 degrees, then optionally you can specify a background color for those oncovered edges.
Create thumbnails on the fly. There are several strategies to use:
Add a watermark to your image. Possible positions are: top, bottom, left, right, center, top right, top left, bottom right, bottom left.
Files |
File | Role | Description | ||
---|---|---|---|---|
imagemanipulation (9 files, 8 directories) | ||||
tests (6 files, 1 directory) | ||||
composer.json | Data | Auxiliary data | ||
phar-bootstrap.php | Conf. | Configuration script | ||
PharClassLoader.php | Class | Configuration script | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Doc. | Auxiliary data |
Files | / | imagemanipulation |
File | Role | Description | ||
---|---|---|---|---|
color (4 files) | ||||
filter (37 files) | ||||
overlay (1 file) | ||||
reflection (1 file) | ||||
repeater (1 file) | ||||
rotate (1 file) | ||||
thumbnail (1 file, 1 directory) | ||||
watermark (2 files) | ||||
Coordinate.php | Class | Class source | ||
ImageBuilder.php | Class | Class source | ||
ImageImageResource.php | Class | Class source | ||
ImageResource.php | Class | Class source | ||
ImageResourceException.php | Class | Class source | ||
ImageType.php | Class | Class source | ||
ImageUtil.php | Class | Class source | ||
PresetFilter.php | Class | Class source | ||
ResourceFactory.php | Class | Class source |
Files | / | imagemanipulation | / | color |
File | Role | Description |
---|---|---|
Color.php | Class | Class source |
ColorFactory.php | Class | Class source |
ColorUtil.php | Class | Class source |
IColor.php | Class | Class source |
Files | / | imagemanipulation | / | filter |
Files | / | imagemanipulation | / | reflection |
File | Role | Description |
---|---|---|
ImageFilterReflection.php | Class | Class source |
Files | / | imagemanipulation | / | thumbnail |
File | Role | Description | ||
---|---|---|---|---|
pixelstrategy (4 files) | ||||
Thumbalizer.php | Class | Class source |
Files | / | imagemanipulation | / | thumbnail | / | pixelstrategy |
File | Role | Description |
---|---|---|
CenteredPixelStrategy.php | Class | Class source |
IPixelStrategy.php | Class | Class source |
MaxPixelStrategy.php | Class | Class source |
PercentagePixelStrategy.php | Class | Class source |
Files | / | imagemanipulation | / | watermark |
File | Role | Description |
---|---|---|
ImageFilterWatermark.php | Class | Class source |
WatermarkBuilder.php | Class | Class source |
Files | / | tests |
File | Role | Description | ||
---|---|---|---|---|
imagemanipulation (1 file, 2 directories) | ||||
ImageFilterTestCase.php | Test | Unit test script | ||
ImagemanipulationTestCase.php | Test | Unit test script | ||
PHPUnitBootstrap.php | Conf. | Configuration script | ||
sample.gif | Data | Auxiliary data | ||
sample.jpg | Data | Auxiliary data | ||
sample.png | Data | Auxiliary data |
Files | / | tests | / | imagemanipulation |
File | Role | Description | ||
---|---|---|---|---|
color (3 files) | ||||
filter (13 files) | ||||
ImageResourceTest.php | Test | Unit test script |
Files | / | tests | / | imagemanipulation | / | color |
File | Role | Description |
---|---|---|
ColorFactoryTest.php | Test | Unit test script |
ColorTest.php | Test | Unit test script |
ColorUtilTest.php | Test | Unit test script |
Files | / | tests | / | imagemanipulation | / | filter |
File | Role | Description |
---|---|---|
ImageFilterBrightnessTest.php | Test | Unit test script |
ImageFilterColorizeTest.php | Test | Unit test script |
ImageFilterContrastTest.php | Test | Unit test script |
ImageFilterConvolutionTest.php | Test | Unit test script |
ImageFilterDarkenTest.php | Test | Unit test script |
ImageFilterDodgeTest.php | Test | Unit test script |
ImageFilterEdgeDetectTest.php | Test | Unit test script |
ImageFilterEmbossTest.php | Test | Unit test script |
ImageFilterFindEdgesTest.php | Test | Unit test script |
ImageFilterFlipTest.php | Test | Unit test script |
ImageFilterGaussianBlurTest.php | Test | Unit test script |
ImageFilterGrayscaleTest.php | Test | Unit test script |
ImageFilterMeanRemoveTest.php | Test | Unit test script |
image-manipulation-2015-08-26.zip 66KB | |
image-manipulation-2015-08-26.tar.gz 33KB | |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Related pages |
Packagist Imagemanipulation on packagist |
GitHub repository The GitHub repository |