Fixed characters not being properly encoded, fixed images not being properly appended, more fixes
This commit is contained in:
parent
0bd8905829
commit
4caec5aefa
12 changed files with 14 additions and 7 deletions
|
@ -16,7 +16,6 @@ class CaptionWorker : public Napi::AsyncWorker {
|
|||
list <Image> coalesced;
|
||||
list <Image> captioned;
|
||||
list <Image> result;
|
||||
Blob caption_blob;
|
||||
readImages(&frames, in_path);
|
||||
|
||||
size_t width = frames.front().baseColumns();
|
||||
|
@ -39,6 +38,7 @@ class CaptionWorker : public Napi::AsyncWorker {
|
|||
images.push_back(caption_image);
|
||||
images.push_back(image);
|
||||
appendImages(&appended, images.begin(), images.end(), true);
|
||||
appended.repage();
|
||||
appended.magick(type);
|
||||
captioned.push_back(appended);
|
||||
}
|
||||
|
|
|
@ -37,6 +37,7 @@ class CaptionTwoWorker : public Napi::AsyncWorker {
|
|||
images.push_back(image);
|
||||
images.push_back(caption_image);
|
||||
appendImages(&appended, images.begin(), images.end(), true);
|
||||
appended.repage();
|
||||
appended.magick(type);
|
||||
captioned.push_back(appended);
|
||||
}
|
||||
|
|
|
@ -47,6 +47,7 @@ class MirrorWorker : public Napi::AsyncWorker {
|
|||
mirrored.push_front(mirror);
|
||||
}
|
||||
appendImages(&final, mirrored.begin(), mirrored.end(), vertical);
|
||||
final.repage();
|
||||
final.magick(type);
|
||||
mid.push_back(final);
|
||||
}
|
||||
|
|
|
@ -54,6 +54,7 @@ class MotivateWorker : public Napi::AsyncWorker {
|
|||
to_append.push_back(top);
|
||||
if (bottom_text != "") to_append.push_back(bottom);
|
||||
appendImages(&final, to_append.begin(), to_append.end(), true);
|
||||
final.repage();
|
||||
final.magick(type);
|
||||
mid.push_back(final);
|
||||
}
|
||||
|
|
|
@ -29,10 +29,12 @@ class TileWorker : public Napi::AsyncWorker {
|
|||
duplicated.push_back(image);
|
||||
}
|
||||
appendImages(&appended, duplicated.begin(), duplicated.end());
|
||||
appended.repage();
|
||||
for (int i = 0; i < 5; ++i) {
|
||||
montage.push_back(appended);
|
||||
}
|
||||
appendImages(&frame, montage.begin(), montage.end(), true);
|
||||
frame.repage();
|
||||
frame.scale(Geometry("800x800>"));
|
||||
mid.push_back(frame);
|
||||
}
|
||||
|
|
|
@ -36,6 +36,7 @@ class WatermarkWorker : public Napi::AsyncWorker {
|
|||
to_append.push_back(image);
|
||||
to_append.push_back(watermark);
|
||||
appendImages(&final, to_append.begin(), to_append.end(), true);
|
||||
final.repage();
|
||||
} else if (mc) {
|
||||
image.backgroundColor("white");
|
||||
image.extent(Geometry(image.columns(), image.rows() + 15));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue