JBZoo\Image\Image::isJpeg PHP 메소드

isJpeg() 공개 메소드

public isJpeg ( ) : boolean
리턴 boolean
    public function isJpeg()
    {
        return Helper::isJpeg($this->_mime);
    }

Usage Example

예제 #1
0
파일: ImageTest.php 프로젝트: Ruyan/Image
 public function testGetInfoJpeg()
 {
     $original = Helper::getOrig('butterfly.jpg');
     $img = new Image($original);
     $info = $img->getInfo();
     is(640, $info['width']);
     is(478, $info['height']);
     is('image/jpeg', $info['mime']);
     is('landscape', $info['orient']);
     isTrue(is_array($info['exif']));
     isTrue($img->isJpeg());
 }