You are viewing the documentation for Intervention Image 2, this version has reached 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