Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2023-05-05 (4 months ago) ![RSS 2.0 feed](/graphics/phpclasses/rss2.png) | | Not yet rated by the users | | Total: 70 | | All time: 10,170 This week: 78![Up](/graphics/phpclasses/up.png) |
|
Description | | Author |
This class can perform several types of image manipulation.
It can load images from JPEG, PNG, GIF, and BMP files and perform several manipulations.
Currently, it can:
- Convert images into other formats
- Add a watermark image
- Resize the image
- Copy one image into another image | |
![Picture of Chun-Sheng, Li Picture of Chun-Sheng, Li](/picture/user/1311705.jpg) |
|
Innovation award
![Innovation award](/graphics/phpclasses/innovation-award-logo.png) Nominee: 12x
Winner: 1x |
|
Details
selective/image
Image manipulation library.
![Total Downloads](https://img.shields.io/packagist/dt/selective/image.svg)
Features
-
Converting images to JPEG, GIF, PNG, BMP (16-Bit and 24-Bit)
-
Changing the size and sharpness of images
Requirements
Installation
composer require selective/image
Usage
Create the image resource.
$image = new \Selective\Image\Image();
$imgSrc = $image->getImage('/path/to/odan.jpg');
Convert the image to the specific image type and get converted image data string.
$image->convertImage($imgSrc, '/path/to/odan.png', 0);
$imageData = $image->getImageData($imgSrc, 'png'));
Convert the image to the specific image type and get converted image data string.
$image->convertImage($imgSrc, '/path/to/odan.png', 0);
$imageResource = $image->getImage('/path/to/odan.png');
If you want more details and examples about usage, please read the documentation.
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.