PHP code example of nexuslinkservices / image-size-finder

1. Go to this page and download the library: Download nexuslinkservices/image-size-finder library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nexuslinkservices / image-size-finder example snippets




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]);