Answer the question
In order to leave comments, you need to log in
Animated pictures?
As many on the forums write, animated pictures in jpg format are obtained by simply changing their name from gif.
Answer the question
In order to leave comments, you need to log in
It's better to use the exif_imagetype() function . If there is no access to install PHP modules, then here is a universal solution:
function getRealMimeType($filename) {
$mimetype = false;
if (function_exists('finfo_fopen')) {
$mimetype = finfo_fopen($filename);
} elseif (function_exists('getimagesize')) {
$mimetype = getimagesize($filename);
} elseif (function_exists('exif_imagetype')) {
$mimetype = exif_imagetype($filename);
} elseif (function_exists('mime_content_type')) {
$mimetype = mime_content_type($filename);
}
return $mimetype;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question