Learn R Programming

exams.forge (version 1.0.10)

mime_image: MIME Image

Description

Returns the MIME type of an image based on the filename extension. If a MIME type for a file extension cannot not found, then the extension itself will be returned.

Usage

mime_image(filename)

mime_img(filename)

Value

A character.

Arguments

filename

character: file name

Examples

Run this code
mime_image("support.png")
mime_image("support.jpg")

Run the code above in your browser using DataLab