isJpeg() public method

public isJpeg ( ) : boolean
return boolean
示例#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());
 }