Get Mime-Type for image-type returned by getimagesize, exif_read_data, exif_thumbnail, exif_imagetype in PHP

Description

The following code shows how to get Mime-Type for image-type returned by getimagesize, exif_read_data, exif_thumbnail, exif_imagetype.

Example


<?php
header("Content-type: " . image_type_to_mime_type(IMAGETYPE_PNG));
?>




















Home »
  PHP Tutorial »
    Image »




Color
Create
Font
Operation
Shape
Text