Apparently some other commands had the same issue
This commit is contained in:
		
							parent
							
								
									ecef687ed8
								
							
						
					
					
						commit
						81c291ffa7
					
				
					 4 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
					@ -24,6 +24,8 @@ class BlurWorker : public Napi::AsyncWorker {
 | 
				
			||||||
      for_each(coalesced.begin(), coalesced.end(), blurImage(15));
 | 
					      for_each(coalesced.begin(), coalesced.end(), blurImage(15));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    for_each(coalesced.begin(), coalesced.end(), magickImage(type));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    optimizeImageLayers(&result, coalesced.begin(), coalesced.end());
 | 
					    optimizeImageLayers(&result, coalesced.begin(), coalesced.end());
 | 
				
			||||||
    if (delay != 0) for_each(result.begin(), result.end(), animationDelayImage(delay));
 | 
					    if (delay != 0) for_each(result.begin(), result.end(), animationDelayImage(delay));
 | 
				
			||||||
    writeImages(result.begin(), result.end(), &blob);
 | 
					    writeImages(result.begin(), result.end(), &blob);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -16,6 +16,7 @@ class FreezeWorker : public Napi::AsyncWorker {
 | 
				
			||||||
    readImages(&frames, in_path);
 | 
					    readImages(&frames, in_path);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    for_each(frames.begin(), frames.end(), animationIterationsImage(loop ? 0 : 1));
 | 
					    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));
 | 
					    if (delay != 0) for_each(frames.begin(), frames.end(), animationDelayImage(delay));
 | 
				
			||||||
    writeImages(frames.begin(), frames.end(), &blob);
 | 
					    writeImages(frames.begin(), frames.end(), &blob);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,5 @@
 | 
				
			||||||
#include <napi.h>
 | 
					#include <napi.h>
 | 
				
			||||||
#include <list>
 | 
					#include <list>
 | 
				
			||||||
#include <list>
 | 
					 | 
				
			||||||
#include <Magick++.h>
 | 
					#include <Magick++.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
using namespace std;
 | 
					using namespace std;
 | 
				
			||||||
| 
						 | 
					@ -27,6 +26,8 @@ class ReverseWorker : public Napi::AsyncWorker {
 | 
				
			||||||
      coalesced.reverse();
 | 
					      coalesced.reverse();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    for_each(coalesced.begin(), coalesced.end(), magickImage(type));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    optimizeImageLayers(&result, coalesced.begin(), coalesced.end());
 | 
					    optimizeImageLayers(&result, coalesced.begin(), coalesced.end());
 | 
				
			||||||
    if (delay != 0) for_each(result.begin(), result.end(), animationDelayImage(delay));
 | 
					    if (delay != 0) for_each(result.begin(), result.end(), animationDelayImage(delay));
 | 
				
			||||||
    writeImages(result.begin(), result.end(), &blob);
 | 
					    writeImages(result.begin(), result.end(), &blob);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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};
 | 
					      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.distort(Magick::PerspectiveDistortion, 16, arguments);
 | 
				
			||||||
      image.scale(Geometry("800x800>"));
 | 
					      image.scale(Geometry("800x800>"));
 | 
				
			||||||
 | 
					      image.magick(type);
 | 
				
			||||||
      mid.push_back(image);
 | 
					      mid.push_back(image);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue