__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

namespace Nextend\Framework\FastImageSize\Type;

class TypeSvg extends TypeBase {

    /**
     * {@inheritdoc}
     */
    public function getSize($filename) {

        $data = $this->fastImageSize->getImage($filename, 0, 100);

        preg_match('/width="([0-9]+)"/', $data, $matches);
        if ($matches && $matches[1] > 0) {
            $size          = array();
            $size['width'] = $matches[1];

            preg_match('/height="([0-9]+)"/', $data, $matches);
            if ($matches && $matches[1] > 0) {
                $size['height'] = $matches[1];
                $this->fastImageSize->setSize($size);

                return;
            }
        }

        preg_match('/viewBox=["\']([0-9]+) ([0-9]+) ([0-9]+) ([0-9]+)["\']/i', $data, $matches);

        if ($matches) {
            $this->fastImageSize->setSize(array(
                'width'  => $matches[3] - $matches[1],
                'height' => $matches[4] - $matches[2],
            ));
        }

    }
}

Filemanager

Name Type Size Permission Actions
TypeBase.php File 712 B 0664
TypeGif.php File 1.26 KB 0664
TypeInterface.php File 658 B 0664
TypeJpeg.php File 4.9 KB 0664
TypePng.php File 1.3 KB 0664
TypeSvg.php File 998 B 0664
TypeWebp.php File 4.13 KB 0664
Filemanager