MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / write_thumbnail

Function write_thumbnail

tests/Frame.cpp:58–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58QImage write_thumbnail(
59 const std::shared_ptr<Frame>& frame,
60 const std::string& path,
61 bool ignore_aspect,
62 ScaleType scale_mode = SCALE_FIT) {
63 frame->Thumbnail(path, 98, 64, "", "", "#000000", ignore_aspect, "PNG", 100, 0.0f, scale_mode);
64 QImage result(QString::fromStdString(path));
65 std::remove(path.c_str());
66 return result;
67}
68
69void check_thumbnail_dimensions(const QImage& image) {
70 REQUIRE_FALSE(image.isNull());

Callers 1

Frame.cppFile · 0.85

Calls 1

ThumbnailMethod · 0.80

Tested by

no test coverage detected