mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-18 03:37:35 +01:00
use sampleImage() on GIFs as it is much faster
This commit is contained in:
parent
52f23de783
commit
e19d4191f3
@ -187,7 +187,8 @@
|
|||||||
|
|
||||||
//if($i < $config['thumb_keep_animation_frames']) {
|
//if($i < $config['thumb_keep_animation_frames']) {
|
||||||
if(in_array($i, $keep_frames)) {
|
if(in_array($i, $keep_frames)) {
|
||||||
$frame->scaleImage($this->width, $this->height, false);
|
// $frame->scaleImage($this->width, $this->height, false);
|
||||||
|
$frame->sampleImage($this->width, $this->height);
|
||||||
$frame->setImagePage($this->width, $this->height, 0, 0);
|
$frame->setImagePage($this->width, $this->height, 0, 0);
|
||||||
$frame->setImageDelay($delay);
|
$frame->setImageDelay($delay);
|
||||||
$delay = 0;
|
$delay = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user