This commit is contained in:
parent
ab0ac45415
commit
9196bf07a7
5 changed files with 8 additions and 10 deletions
|
|
@ -112,10 +112,8 @@ class ImgTools {
|
|||
$mimeType = $imgInfo['mime'];
|
||||
//find gif
|
||||
if ($mimeType == "image/gif") {
|
||||
$imagetype = 'png';
|
||||
//full image name
|
||||
$Dot = '.';
|
||||
$newFilename = "$filename$Dot$imagetype";
|
||||
// Replace .gif extension with .png
|
||||
$newFilename = preg_replace('/\.gif$/i', '.png', $filename);
|
||||
//convert
|
||||
$img = new Imagick($filename);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue