1# Image 2 3- `v::image()` 4- `v::image(finfo $fileInfo)` 5 6Validates if the file is a valid image by checking its MIME type. 7 8```php 9v::image()->validate('image.gif'); // true 10v::image()->validate('image.jpg'); // true 11v::image()->validate('image.png'); // true 12``` 13 14All the validations above must return `false` if the input is not a valid file 15or of the MIME doesn't match with the file extension. 16 17This rule relies on [fileinfo](http://php.net/fileinfo) PHP extension. 18 19*** 20See also: 21 22 * [Directory](Directory.md) 23 * [Executable](Executable.md) 24 * [Exists](Exists.md) 25 * [Extension](Extension.md) 26 * [File](File.md) 27 * [Mimetype](Mimetype.md) 28 * [Readable](Readable.md) 29 * [Size](Size.md) 30 * [SymbolicLink](SymbolicLink.md) 31 * [Uploaded](Uploaded.md) 32 * [Writable](Writable.md) 33