33balabol2017-08-01 13:15:36
33balabol, 2017-08-01 13:15:36

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

2 answer(s)
Denis Sle, 2017-08-01

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;

Viktor Yanyshev, 2017-08-01

get exif from gif and if frame > 1 then don't skip

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question