The readbitmap package enables users to read the three main general purpose bitmap image formats (jpeg, png, bmp) without having to specify the image type directly. This is provided by a single function read.bitmap, which uses a second function image_type, which is also exported for users, to identify the image type of a file using appropriate magic values encoded in the first few bytes of the image header. Images can therefore have any file extension.

See also

image_type, read.bitmap