Fixed issue with speed on gifvs

This commit is contained in:
TheEssem 2020-09-10 20:50:52 -05:00
parent 7f5c6ab8f9
commit ecef687ed8

View file

@ -13,7 +13,6 @@ class SpeedWorker : public Napi::AsyncWorker {
void Execute() {
list <Image> frames;
list <Image> blurred;
readImages(&frames, in_path);
int new_delay = slow ? delay * 2 : delay / 2;
@ -25,6 +24,8 @@ class SpeedWorker : public Napi::AsyncWorker {
for_each(frames.begin(), frames.end(), animationDelayImage(new_delay));
}
for_each(frames.begin(), frames.end(), magickImage(type));
writeImages(frames.begin(), frames.end(), &blob);
}