PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Chun-Sheng, Li   Selective PHP Image Manipulation   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Selective PHP Image Manipulation
Perform several types of image manipulation
Author: By
Last change:
Date: 1 year ago
Size: 1,743 bytes
 

Contents

Class file image Download

selective/image

Image manipulation library.

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Features

  • Converting images to JPEG, GIF, PNG, BMP (16-Bit and 24-Bit)
  • Changing the size and sharpness of images

Requirements

  • The ```GD``` extension

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.