2017 © Pedro Peláez
 

library image_checker

Package for checking type of an image

image

tintran/image_checker

Package for checking type of an image

  • Wednesday, June 13, 2018
  • by TinTran710
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Package for detacting an image format

This package is used for detacting image formats. Currently supported formats: JPG, JPEG, PNG, BMP, GIF., (*1)

Installation

The package can be installed via composer: ``` bash $ composer require tintran/image_checker, (*2)


## Usage Detacting an image format from local path or online links, resources. Instantiate a new instance: ```php $img = new ImageChecker($src); // $src can be a local path or an online link

Get image format:, (*3)

echo $img->getImageFormat();
// return 'JPG', 'PNG', 'GIF', 'BMP', ...

Supporting functions to check whether an image is a specified format, (*4)

$img->isJPG();
$img->isPNG();
$img->isGIF();
$img->isBMP();
// return true or false

The Versions

13/06 2018

dev-master

9999999-dev

Package for checking type of an image

  Sources   Download

MIT

The Development Requires

by Tran Quang Tin