2017 © Pedro Peláez
 

library image-size-finder

image

nexuslinkservices/image-size-finder

  • Friday, March 24, 2017
  • by nexuslinkservices
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Image Size Finder

Extension to get image details with size, height,width and valid flag value by mininum/maxinum size given in configuration., (*1)

Latest Version Software License Scrutinizer Code Quality Build Status, (*2)

Installation

If you use composer, you can add this package by running, (*3)

composer require galiteintechnologies/image-size-finder

Usage

Set minimum and maximum value in bytes in configuration file. like this, (*4)

image_size:
    minimum: 100
    maximum: 900

If you do not create configuration file it will from package., (*5)

<?php

use ImageSizeFinder\PictureParser;

$pictureParser = new PictureParser();

$images = ['https://raw.githubusercontent.com/nexuslinkservices/image-size-finder/master/web/samples/sample_image.png'];
$imageDetails = $pictureParser->fetchSize($images);

var_dump($imageDetails[0]);        

Output

array = [
        "url"=> "https://raw.githubusercontent.com/nexuslinkservices/image-size-finder/master/web/samples/sample_image.png",
        "size"=> 82966,
        "height"=> 512,
        "width"=> 512,
        "valid"=> true 
    ];

CONTRIBUTING:

Pull requests are always welcome., (*6)

The Versions

24/03 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php >=5.6.2

 

The Development Requires

by Nexuslink Services

26/09 2016

v1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

  • php >=5.6.2

 

The Development Requires

by Nexuslink Services