Skip to content

TinTran710/image-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Package for detacting an image format

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

Installation

The package can be installed via composer:

$ composer require tintran/image_checker

Usage

Detacting an image format from local path or online links, resources.

Instantiate a new instance:

$img = new ImageChecker($src);
// $src can be a local path or an online link

Get image format:

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

Supporting functions to check whether an image is a specified format

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages