mime_image: mime_image

View source: R/mime_image.R

mime_imageR Documentation

mime_image

Description

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

Usage

mime_image(filename)

Arguments

filename

character: file name

Value

character

Examples

mime_image("support.png")
mime_image("support.jpg")

sigbertklinke/exams2moodle documentation built on July 6, 2023, 3:26 p.m.