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 cannot not found, then the extension itself will be returned.

Usage

mime_image(filename)

mime_img(filename)

Arguments

filename

character: file name

Value

A character.

Examples

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

exams.forge documentation built on Aug. 21, 2025, 5:41 p.m.