Oihana PHP

ImageMimeTypeTrait

The trait to register all image mime types.

This trait provides constants for widely used image MIME types, which can be used to validate or set content-type headers safely.

Tags
author

Marc Alcaraz (ekameleon)

since
1.0.0

Table of Contents

Constants

AVIF  = 'image/avif'
BMP  = 'image/bmp'
CUR  = 'image/x-icon'
GIF  = 'image/gif'
HEIC  = 'image/heic'
HEIF  = 'image/heif'
ICO  = 'image/vnd.microsoft.icon'
JPEG  = 'image/jpeg'
JPG  = 'image/jpeg'
PNG  = 'image/png'
SVG  = 'image/svg+xml'
TIF  = 'image/tiff'
TIFF  = 'image/tiff'
WEBP  = 'image/webp'

Constants


        
On this page

Search results