mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-05-20 18:34:53 +00:00
Nevermind lol
This commit is contained in:
parent
417a0cb959
commit
697e41e913
1 changed files with 1 additions and 9 deletions
10
upload.php
10
upload.php
|
@ -73,16 +73,8 @@
|
||||||
// If image is gif
|
// If image is gif
|
||||||
if ($image_format == 'GIF') {
|
if ($image_format == 'GIF') {
|
||||||
$image_thumbnail = $image_thumbnail->coalesceImages();
|
$image_thumbnail = $image_thumbnail->coalesceImages();
|
||||||
foreach ($image_thumbnail as $frame) {
|
|
||||||
$frame->thumbnailImage(300, null);
|
|
||||||
$frame->setImagePage(300, null, 0, 0);
|
|
||||||
}
|
|
||||||
// Put image back together
|
|
||||||
$image_thumbnail = $image_thumbnail->deconstructImages();
|
|
||||||
}else{
|
|
||||||
// Image not gif
|
|
||||||
$image_thumbnail->resizeImage(300,null,null,1,null);
|
|
||||||
}
|
}
|
||||||
|
$image_thumbnail->resizeImage(300,null,null,1,null);
|
||||||
// Save image
|
// Save image
|
||||||
$image_thumbnail->writeImage("images/thumbnails/".$image_basename);
|
$image_thumbnail->writeImage("images/thumbnails/".$image_basename);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue