Apparently some other commands had the same issue

This commit is contained in:
TheEssem 2020-09-10 21:04:09 -05:00
parent ecef687ed8
commit 81c291ffa7
4 changed files with 6 additions and 1 deletions

View File

@ -24,6 +24,8 @@ class BlurWorker : public Napi::AsyncWorker {
for_each(coalesced.begin(), coalesced.end(), blurImage(15));
}
for_each(coalesced.begin(), coalesced.end(), magickImage(type));
optimizeImageLayers(&result, coalesced.begin(), coalesced.end());
if (delay != 0) for_each(result.begin(), result.end(), animationDelayImage(delay));
writeImages(result.begin(), result.end(), &blob);

View File

@ -16,6 +16,7 @@ class FreezeWorker : public Napi::AsyncWorker {
readImages(&frames, in_path);
for_each(frames.begin(), frames.end(), animationIterationsImage(loop ? 0 : 1));
for_each(frames.begin(), frames.end(), magickImage(type));
if (delay != 0) for_each(frames.begin(), frames.end(), animationDelayImage(delay));
writeImages(frames.begin(), frames.end(), &blob);

View File

@ -1,6 +1,5 @@
#include <napi.h>
#include <list>
#include <list>
#include <Magick++.h>
using namespace std;
@ -27,6 +26,8 @@ class ReverseWorker : public Napi::AsyncWorker {
coalesced.reverse();
}
for_each(coalesced.begin(), coalesced.end(), magickImage(type));
optimizeImageLayers(&result, coalesced.begin(), coalesced.end());
if (delay != 0) for_each(result.begin(), result.end(), animationDelayImage(delay));
writeImages(result.begin(), result.end(), &blob);

View File

@ -28,6 +28,7 @@ class WallWorker : public Napi::AsyncWorker {
double arguments[16] = {0, 0, 57, 42, 0, 128, 63, 130, 128, 0, 140, 60, 128, 128, 140, 140};
image.distort(Magick::PerspectiveDistortion, 16, arguments);
image.scale(Geometry("800x800>"));
image.magick(type);
mid.push_back(image);
}