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  : string = 'image/avif'
BMP  : string = 'image/bmp'
CUR  : string = 'image/x-icon'
GIF  : string = 'image/gif'
HEIC  : string = 'image/heic'
HEIF  : string = 'image/heif'
ICO  : string = 'image/vnd.microsoft.icon'
JPEG  : string = 'image/jpeg'
JPG  : string = 'image/jpeg'
PNG  : string = 'image/png'
SVG  : string = 'image/svg+xml'
TIF  : string = 'image/tiff'
TIFF  : string = 'image/tiff'
WEBP  : string = 'image/webp'

Constants

On this page

Search results