Image::mime

Get MIME Type of the current image

2.9M Downloads / Month

Open Source MIT License

You are viewing the documentation for Intervention Image 2, this version has reached end of life (EOL). Please consider upgrading to version 3.

public Intervention\Image\Image mime()

Read MIME Type of current image instance, if it's already defined.

Parameters

none

Return Values

MIME Type of current image.

Examples

// read mime type of image
$mime = Image::make('public/foo.jpg')->mime();

See also

Edit